2009-04-07 16:35:53 +02:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit distutils
|
|
|
|
|
2009-04-16 13:20:05 +02:00
|
|
|
DESCRIPTION="Open Source Computer System Management and its Python plugins."
|
2009-04-07 16:42:18 +02:00
|
|
|
HOMEPAGE="http://pulse2.mandriva.org/"
|
2009-04-07 16:35:53 +02:00
|
|
|
SRC_URI="http://mds.mandriva.org/pub/pulse2/sources/${PV}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
2009-04-08 10:04:21 +02:00
|
|
|
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
2009-04-07 16:35:53 +02:00
|
|
|
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_unpack() {
|
|
|
|
unpack ${A}
|
2009-04-08 10:16:02 +02:00
|
|
|
cd "${S}"
|
2009-04-07 16:35:53 +02:00
|
|
|
epatch "${FILESDIR}"/${PN}-1.2.0-python-1.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
# from marienz's setuptools.eclass:
|
|
|
|
src_install() {
|
|
|
|
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
|
2009-04-16 13:20:05 +02:00
|
|
|
dosbin bin/* || die "bin install failed"
|
2009-04-07 16:35:53 +02:00
|
|
|
insinto etc/mmc/pulse2/scheduler/keys
|
2009-04-16 13:20:05 +02:00
|
|
|
doins -r conf/scheduler/keys/* || die "key install failed"
|
2009-04-07 16:35:53 +02:00
|
|
|
insinto etc/mmc/pulse2/scheduler
|
2009-04-16 13:20:05 +02:00
|
|
|
doins -r conf/scheduler/*.ini || die "ini install failed"
|
2009-04-07 16:35:53 +02:00
|
|
|
insinto usr/share/doc/${P}
|
2009-04-16 13:20:05 +02:00
|
|
|
doins -r contrib || die "config samples install failed"
|
2009-04-07 16:35:53 +02:00
|
|
|
dodoc Changelog
|
|
|
|
|
|
|
|
newinitd "${FILESDIR}"/pulse2-scheduler.initd pulse2-scheduler
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
"${python}" setup.py test || die "tests failed"
|
|
|
|
}
|
|
|
|
|