mds/app-admin/pulse2-launcher/pulse2-launcher-1.2.0.ebuild
2009-04-07 14:40:13 +00:00

54 lines
1.3 KiB
Bash

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils
WOL_PV="0.7.1"
# ESVN_REPO_URI="http://mds.mandriva.org/svn/mmc-agent"
DESCRIPTION="The pulse2 launchers and its Python plugins."
HOMEPAGE="http://pulse2.mandriva.org/"
SRC_URI="http://mds.mandriva.org/pub/pulse2/sources/${PV}/${P}.tar.gz
mirror://sourceforge/ahh/wol-${WOL_PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="nls"
SLOT="0"
RDEPEND=">=dev-python/twisted-web-0.7.0
>=app-admin/pulse2-common-1.2.0"
DEPEND=">=dev-python/setuptools-0.6_rc1"
src_compile() {
cd ../wol-${WOL_PV}
econf $(use_enable nls) || die "configure failed"
emake || die "make failed"
}
# from marienz's setuptools.eclass:
src_install() {
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
dosbin bin/*
newsbin ../wol-${WOL_PV}/src/wol pulse2-wol
insinto etc/mmc/pulse2/launchers/keys
doins -r conf/launchers/keys/*
insinto etc/mmc/pulse2/launchers
doins -r conf/launchers/*.ini
# insinto etc/pulse2/plugins
# doins -r conf/plugins/*.ini
insinto usr/share/doc/${P}
doins -r contrib
dodoc Changelog
newinitd "${FILESDIR}"/pulse2-launchers.initd pulse2-launchers
}
src_test() {
"${python}" setup.py test || die "tests failed"
}