Add git-based aubio package (unreleased Python 2.7 fixes in the trunk).
authorW. Trevor King <wking@drexel.edu>
Tue, 26 Jul 2011 18:59:39 +0000 (14:59 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 26 Jul 2011 18:59:39 +0000 (14:59 -0400)
media-libs/aubio/Manifest [new file with mode: 0644]
media-libs/aubio/aubio-9999.ebuild [new file with mode: 0644]
media-libs/aubio/files/aubio-0.3.2-multilib.patch [new file with mode: 0644]

diff --git a/media-libs/aubio/Manifest b/media-libs/aubio/Manifest
new file mode 100644 (file)
index 0000000..9dc22a7
--- /dev/null
@@ -0,0 +1,2 @@
+AUX aubio-0.3.2-multilib.patch 420 RMD160 bff07b86d296ad8de57252260c3790167c543474 SHA1 da7552530668096be8bf94036fa82b34e6bc6577 SHA256 ff264f47c7c1d35f703c28dce59053428015c616a7c43ddf3dbd8c21e806b16a
+EBUILD aubio-9999.ebuild 1762 RMD160 7060a069bfc9d233c49c0cd39214a34f55ba6317 SHA1 d15c5882724f88deaf351d4c7c87f35013fe03df SHA256 e853e5de4346cc083cd280b904bc51c92d89c57d9b16a7cfa50a823e90168a8a
diff --git a/media-libs/aubio/aubio-9999.ebuild b/media-libs/aubio/aubio-9999.ebuild
new file mode 100644 (file)
index 0000000..98aa68d
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright 1999-2010 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.9 2010/12/02 18:41:32 flameeyes Exp $
+
+inherit eutils autotools
+
+IUSE="alsa doc jack lash"
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git
+       EGIT_BRANCH="master"
+       EGIT_REPO_URI="git://git.aubio.org/git/${PN}"
+       SRC_URI=""
+else
+       SRC_URI="http://aubio.piem.org/pub/${P}.tar.gz"
+fi
+
+DESCRIPTION="Library for audio labelling"
+HOMEPAGE="http://aubio.piem.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 sparc x86"
+
+RDEPEND="=sci-libs/fftw-3*
+       media-libs/libsndfile
+       media-libs/libsamplerate
+       dev-lang/python
+       alsa? ( media-libs/alsa-lib )
+       jack? ( media-sound/jack-audio-connection-kit )
+       lash? ( media-sound/lash )"
+DEPEND="${RDEPEND}
+       >=dev-lang/swig-1.3.0
+       dev-util/pkgconfig
+       doc? ( app-doc/doxygen virtual/latex-base )"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       if [ "${PV}" == "0.3.2" ]; then
+               epatch "${FILESDIR}"/aubio-0.3.2-multilib.patch
+       fi
+       eautoreconf
+}
+
+src_compile() {
+       econf $(use_enable jack) $(use_enable alsa) $(use_enable lash)
+       emake || die "emake failed."
+       if use doc; then
+               export VARTEXFONTS="${T}/fonts"
+               cd "${S}/doc"
+               doxygen user.cfg || die "creating user doc failed"
+               doxygen devel.cfg || die "creating devel doc failed"
+               doxygen examples.cfg || die "creating examples doc failed"
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog README TODO
+       doman doc/*.1
+       if use doc; then
+               mv doc/user/html doc/user/user
+               dohtml -r doc/user/user
+               mv doc/devel/html doc/devel/devel
+               dohtml -r doc/devel/devel
+               mv doc/examples/html doc/examples/examples
+               dohtml -r doc/examples/examples
+       fi
+}
diff --git a/media-libs/aubio/files/aubio-0.3.2-multilib.patch b/media-libs/aubio/files/aubio-0.3.2-multilib.patch
new file mode 100644 (file)
index 0000000..65a5539
--- /dev/null
@@ -0,0 +1,11 @@
+--- python/aubio/Makefile.am.orig      2008-02-10 18:32:03.000000000 -0500
++++ python/aubio/Makefile.am   2008-02-10 18:33:48.000000000 -0500
+@@ -68,7 +68,7 @@
+       -L$(top_builddir)/ext -laubioext \
+       -L$(top_builddir)/src -laubio
+-pkgpython_LTLIBRARIES = _aubiowrapper.la
++pkgpyexec_LTLIBRARIES = _aubiowrapper.la
+ _aubiowrapper_la_LDFLAGS = -module -avoid-version $(AUBIO_LDFLAGS) 
+ _aubiowrapper_la_SOURCES = aubio_wrap.c