diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-06 17:59:12 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-06 17:59:12 +0000 |
commit | 2ef4a861db87fcdf23681743731ee1e0d7b442ba (patch) | |
tree | fd5680421bf375b37cfe64373a91ae3c449460a5 /app-admin/kedpm | |
parent | Use Python 2 (bug #308331). (diff) | |
download | gentoo-2-2ef4a861db87fcdf23681743731ee1e0d7b442ba.tar.gz gentoo-2-2ef4a861db87fcdf23681743731ee1e0d7b442ba.tar.bz2 gentoo-2-2ef4a861db87fcdf23681743731ee1e0d7b442ba.zip |
Use Python 2 (bug #308271).
(Portage version: 2.2.0_alpha29_p10/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/kedpm')
-rw-r--r-- | app-admin/kedpm/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/kedpm/kedpm-0.4.0-r1.ebuild | 31 |
2 files changed, 25 insertions, 14 deletions
diff --git a/app-admin/kedpm/ChangeLog b/app-admin/kedpm/ChangeLog index aa6acea31ab6..957964b90ef8 100644 --- a/app-admin/kedpm/ChangeLog +++ b/app-admin/kedpm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/kedpm -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/ChangeLog,v 1.15 2007/01/09 20:50:55 dev-zero Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/ChangeLog,v 1.16 2011/04/06 17:59:12 arfrever Exp $ + + 06 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + kedpm-0.4.0-r1.ebuild: + Use Python 2 (bug #308271). 09 Jan 2007; Tiziano Müller <dev-zero@gentoo.org> -kedpm-0.4.0.ebuild, kedpm-0.4.0-r1.ebuild: diff --git a/app-admin/kedpm/kedpm-0.4.0-r1.ebuild b/app-admin/kedpm/kedpm-0.4.0-r1.ebuild index 8c70866d0a47..8b8121e5b49f 100644 --- a/app-admin/kedpm/kedpm-0.4.0-r1.ebuild +++ b/app-admin/kedpm/kedpm-0.4.0-r1.ebuild @@ -1,6 +1,9 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/kedpm-0.4.0-r1.ebuild,v 1.2 2007/01/09 20:50:55 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/kedpm-0.4.0-r1.ebuild,v 1.3 2011/04/06 17:59:12 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" inherit distutils eutils @@ -13,14 +16,18 @@ SLOT="0" KEYWORDS="x86 ppc amd64" IUSE="gtk" -DEPEND=">=sys-apps/sed-4" -RDEPEND="dev-python/pycrypto +DEPEND="dev-python/pycrypto gtk? ( >=dev-python/pygtk-2 )" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS CHANGES NEWS" -src_unpack() { - unpack ${A} - cd "${S}" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} +src_prepare() { # We want documentation to install in /usr/share/doc/kedpm # not in /usr/share/kedpm as in original setup.py. epatch "${FILESDIR}/setup-doc.patch" @@ -30,13 +37,13 @@ src_unpack() { use gtk || sed -i -e 's/"gtk" # default/"cli" # default/' scripts/kedpm } +src_test() { + PYTHONPATH="build/lib" "$(PYTHON)" run_tests || die "Tests failed" +} + src_install() { - DOCS="AUTHORS CHANGES NEWS" distutils_src_install + # menu item domenu "${FILESDIR}/${PN}.desktop" } - -src_test() { - ./run_tests || die "tests failed" -} |