summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-10-01 10:08:12 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-10-01 10:08:12 +0000
commitbce75bc7c9b924e493fc8ff00540ed039743607e (patch)
tree56c2e051a739339ad8404513e88409d393f0175e /media-libs/aubio
parentRemove libtool files. (diff)
downloadgentoo-2-bce75bc7c9b924e493fc8ff00540ed039743607e.tar.gz
gentoo-2-bce75bc7c9b924e493fc8ff00540ed039743607e.tar.bz2
gentoo-2-bce75bc7c9b924e493fc8ff00540ed039743607e.zip
Use python.eclass and set python2 as default wrt bugs #313523 and #385129
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/aubio')
-rw-r--r--media-libs/aubio/ChangeLog5
-rw-r--r--media-libs/aubio/aubio-0.3.2-r1.ebuild24
2 files changed, 22 insertions, 7 deletions
diff --git a/media-libs/aubio/ChangeLog b/media-libs/aubio/ChangeLog
index 2c878ed91e94..a605e21e0519 100644
--- a/media-libs/aubio/ChangeLog
+++ b/media-libs/aubio/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/aubio
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/ChangeLog,v 1.16 2011/09/29 20:09:35 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/ChangeLog,v 1.17 2011/10/01 10:08:12 ssuominen Exp $
+
+ 01 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> aubio-0.3.2-r1.ebuild:
+ Use python.eclass and set python2 as default wrt bugs #313523 and #385129
29 Sep 2011; Samuli Suominen <ssuominen@gentoo.org> aubio-0.3.2-r1.ebuild:
USE="static-libs" and remove libtool files
diff --git a/media-libs/aubio/aubio-0.3.2-r1.ebuild b/media-libs/aubio/aubio-0.3.2-r1.ebuild
index cc748df6c25e..a6af42a620e3 100644
--- a/media-libs/aubio/aubio-0.3.2-r1.ebuild
+++ b/media-libs/aubio/aubio-0.3.2-r1.ebuild
@@ -1,10 +1,12 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/aubio-0.3.2-r1.ebuild,v 1.10 2011/09/29 20:09:35 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/aubio-0.3.2-r1.ebuild,v 1.11 2011/10/01 10:08:12 ssuominen Exp $
-EAPI=4
+EAPI=3
-inherit eutils autotools
+PYTHON_DEPEND="2:2.6"
+
+inherit autotools eutils python
DESCRIPTION="Library for audio labelling"
HOMEPAGE="http://aubio.piem.org"
@@ -18,7 +20,7 @@ IUSE="alsa doc jack lash static-libs"
RDEPEND="sci-libs/fftw:3.0
media-libs/libsndfile
media-libs/libsamplerate
- dev-lang/python
+ || ( dev-lang/python:2.7 dev-lang/python:2.6 )
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
lash? ( media-sound/lash )"
@@ -27,7 +29,12 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( app-doc/doxygen virtual/latex-base )"
-DOCS=( AUTHORS ChangeLog README TODO )
+pkg_setup() {
+ DOCS=( AUTHORS ChangeLog README TODO )
+
+ python_set_active_version 2
+ python_pkg_setup
+}
src_prepare() {
epatch "${FILESDIR}"/aubio-0.3.2-multilib.patch
@@ -55,7 +62,9 @@ src_compile() {
}
src_install() {
- default
+ # `default` would be enough here if python.eclass supported EAPI=4
+ emake DESTDIR="${D}" install || die
+ dodoc "${DOCS[@]}"
doman doc/*.1
if use doc; then
@@ -69,3 +78,6 @@ src_install() {
find "${ED}"usr -name '*.la' -exec rm -f {} +
}
+
+pkg_postinst() { python_mod_optimize aubio; }
+pkg_postrm() { python_mod_cleanup aubio; }