cc3544c89a
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@940 6952d904-891a-0410-993b-d76249ca496b
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
inherit distutils
|
|
|
|
# ESVN_REPO_URI="http://mds.mandriva.org/svn/mmc-agent"
|
|
DESCRIPTION="The pulse2 mmc and its Python plugins."
|
|
HOMEPAGE="http://pulse2.mandriva.org/"
|
|
SRC_URI="http://mds.mandriva.org/pub/pulse2/sources/${PV}/${P}.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
|
|
>=app-admin/mmc-agent-2.3.1"
|
|
|
|
DEPEND=">=dev-python/setuptools-0.6_rc1"
|
|
|
|
# from marienz's setuptools.eclass:
|
|
src_install() {
|
|
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
|
|
insinto etc/mmc/plugins
|
|
doins -r conf/plugins/*.ini
|
|
# insinto etc/pulse2/plugins
|
|
# doins -r conf/plugins/*.ini
|
|
insinto usr/share/doc/${P}
|
|
doins -r contrib
|
|
dodoc Changelog
|
|
python_version
|
|
# we need to remove this file because it collides with the one
|
|
# from mmc-agent (which we depend on).
|
|
rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/mmc/__init__.py"
|
|
rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/mmc/plugins/__init__.py"
|
|
}
|
|
|
|
src_test() {
|
|
"${python}" setup.py test || die "tests failed"
|
|
}
|
|
|