diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-02-22 23:59:07 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-02-22 23:59:07 +0000 |
commit | 4f7d31cd68a90005e12317eb17a1cedffbe35be3 (patch) | |
tree | 7a27fac45dc31e56baa1f18a2ef5c5609483ca2e /media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild | |
parent | Fix openldap automagic dependency. Bug #336973 (diff) | |
download | gentoo-2-4f7d31cd68a90005e12317eb17a1cedffbe35be3.tar.gz gentoo-2-4f7d31cd68a90005e12317eb17a1cedffbe35be3.tar.bz2 gentoo-2-4f7d31cd68a90005e12317eb17a1cedffbe35be3.zip |
Set SUPPORT_PYTHON_ABIS (bug #313547).
(Portage version: 2.2.0_alpha24_p28/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild')
-rw-r--r-- | media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild b/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild index 4e83a0368c8c..b8204086e555 100644 --- a/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild +++ b/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild @@ -1,9 +1,13 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild,v 1.1 2010/02/11 17:09:07 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/tunepimp/tunepimp-0.5.3-r3.ebuild,v 1.2 2011/02/22 23:59:07 arfrever Exp $ -EAPI=2 -inherit autotools eutils distutils multilib +EAPI="3" +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" + +inherit autotools distutils eutils multilib MY_P=lib${P} @@ -35,6 +39,12 @@ MAKEOPTS="${MAKEOPTS} -j1" S=${WORKDIR}/${MY_P} +pkg_setup() { + if use python; then + python_pkg_setup + fi +} + src_prepare() { epatch \ "${FILESDIR}"/${P}-gcc43.patch \ @@ -58,6 +68,12 @@ src_configure() { src_compile() { default + + if use python; then + pushd python > /dev/null + distutils_src_compile + popd > /dev/null + fi } src_install() { @@ -65,11 +81,24 @@ src_install() { dodoc AUTHORS ChangeLog README TODO if use python; then - cd python + pushd python > /dev/null distutils_src_install insinto /usr/share/doc/${PF}/examples doins examples/* || die "doins failed" + popd > /dev/null fi find "${D}" -name '*.la' -delete } + +pkg_postinst() { + if use python; then + distutils_pkg_postinst + fi +} + +pkg_postrm() { + if use python; then + distutils_pkg_postrm + fi +} |