diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-22 19:25:32 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-22 19:25:32 +0000 |
commit | 429f2a2316350a56bf8a5b2d2255a78bc424eeb1 (patch) | |
tree | 9671b6bda3ed32d6063e668830df04ab04e11446 /x11-misc/menumaker | |
parent | Version Bump #316579, fixes for new PYTHON ABI things (diff) | |
download | gentoo-2-429f2a2316350a56bf8a5b2d2255a78bc424eeb1.tar.gz gentoo-2-429f2a2316350a56bf8a5b2d2255a78bc424eeb1.tar.bz2 gentoo-2-429f2a2316350a56bf8a5b2d2255a78bc424eeb1.zip |
Use Python 2.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/menumaker')
-rw-r--r-- | x11-misc/menumaker/ChangeLog | 8 | ||||
-rw-r--r-- | x11-misc/menumaker/menumaker-0.99.7.ebuild | 44 |
2 files changed, 35 insertions, 17 deletions
diff --git a/x11-misc/menumaker/ChangeLog b/x11-misc/menumaker/ChangeLog index e3064d792189..7cbfa4a8575b 100644 --- a/x11-misc/menumaker/ChangeLog +++ b/x11-misc/menumaker/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for x11-misc/menumaker -# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/menumaker/ChangeLog,v 1.7 2009/02/25 16:28:19 neurogeek Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/menumaker/ChangeLog,v 1.8 2010/04/22 19:25:32 arfrever Exp $ + + 22 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + menumaker-0.99.7.ebuild: + Use Python 2. *menumaker-0.99.7 (25 Feb 2009) diff --git a/x11-misc/menumaker/menumaker-0.99.7.ebuild b/x11-misc/menumaker/menumaker-0.99.7.ebuild index 76e89b8318e6..15bae75db592 100644 --- a/x11-misc/menumaker/menumaker-0.99.7.ebuild +++ b/x11-misc/menumaker/menumaker-0.99.7.ebuild @@ -1,8 +1,11 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/menumaker/menumaker-0.99.7.ebuild,v 1.1 2009/02/25 16:28:19 neurogeek Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/menumaker/menumaker-0.99.7.ebuild,v 1.2 2010/04/22 19:25:32 arfrever Exp $ -inherit autotools +EAPI="3" +PYTHON_DEPEND="2" + +inherit python DESCRIPTION="Utility that scans through the system and generates a menu of installed programs" HOMEPAGE="http://menumaker.sourceforge.net/" @@ -13,31 +16,42 @@ SLOT="0" KEYWORDS="~amd64 ~amd64 ~ppc ~x86 ~x86-fbsd" IUSE="doc" -DEPEND="virtual/python - doc? ( sys-apps/texinfo )" -MAKEOPTS="-j1" +DEPEND="doc? ( sys-apps/texinfo )" +RDEPEND="" + +pkg_setup() { + python_set_active_version 2 +} -src_unpack() { - unpack ${A} - cd "${S}" - eautoreconf +src_configure() { + econf PYTHON="$(PYTHON)" } src_compile() { - econf - emake || die "emake failed" + emake -j1 || die "emake failed" if use doc; then - cd "${S}/doc" && make html || die "Could not build docs" + cd doc + emake html || die "Generation of documentation failed" fi } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake -j1 DESTDIR="${D}" install || die "emake install failed" + + find "${D}" "(" -name "*.pyc" -o -name "*.pyo" ")" -print0 | xargs -0 rm -fr + dodoc ChangeLog README NEWS AUTHORS INSTALL if use doc; then - dohtml "${S}"/doc/mmaker.html/* + dohtml doc/mmaker.html/* fi +} + +pkg_postinst() { + python_mod_optimize /usr/$(get_libdir)/menumaker +} +pkg_postrm() { + python_mod_cleanup /usr/$(get_libdir)/menumaker } |