diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-11-01 11:27:16 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2015-11-01 11:27:16 +0100 |
commit | ae0cd5a3e29ef8750074c65e7b0cead729079a6b (patch) | |
tree | c116133eecf29662a2b20d4ab8fe0af5cdcae6bd /media-libs/aubio/aubio-0.4.2.ebuild | |
parent | media-libs/aubio: remove old. (diff) | |
download | gentoo-ae0cd5a3e29ef8750074c65e7b0cead729079a6b.tar.gz gentoo-ae0cd5a3e29ef8750074c65e7b0cead729079a6b.tar.bz2 gentoo-ae0cd5a3e29ef8750074c65e7b0cead729079a6b.zip |
media-libs/aubio: Bump to 0.4.2.
Package-Manager: portage-2.2.23
Diffstat (limited to 'media-libs/aubio/aubio-0.4.2.ebuild')
-rw-r--r-- | media-libs/aubio/aubio-0.4.2.ebuild | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/media-libs/aubio/aubio-0.4.2.ebuild b/media-libs/aubio/aubio-0.4.2.ebuild new file mode 100644 index 000000000000..9f5142f77429 --- /dev/null +++ b/media-libs/aubio/aubio-0.4.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE='threads(+)' + +inherit distutils-r1 waf-utils multilib eutils + +DESCRIPTION="Library for audio labelling" +HOMEPAGE="http://aubio.org/" +SRC_URI="http://aubio.org//pub/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc double-precision examples ffmpeg fftw jack libav libsamplerate sndfile python" + +RDEPEND=" + ffmpeg? ( + !libav? ( >=media-video/ffmpeg-2.6:0= ) + libav? ( >=media-video/libav-9:0= ) + ) + fftw? ( sci-libs/fftw:3.0 ) + jack? ( media-sound/jack-audio-connection-kit ) + libsamplerate? ( media-libs/libsamplerate ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] ${PYTHON_DEPS} ) + sndfile? ( media-libs/libsndfile )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + app-text/txt2man + doc? ( app-doc/doxygen )" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +DOCS=( AUTHORS ChangeLog README.md ) +PYTHON_SRC_DIR="${S}/python" + +src_prepare() { + sed -i -e "s:doxygen:doxygen_disabled:" wscript || die +} + +src_configure() { + python_setup + waf-utils_src_configure \ + --enable-complex \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable double-precision double) \ + $(use_enable fftw fftw3f) \ + $(use_enable fftw fftw3) \ + $(use_enable ffmpeg avcodec) \ + $(use_enable jack) \ + $(use_enable libsamplerate samplerate) \ + $(use_enable sndfile) + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_configure + fi +} + +src_compile() { + waf-utils_src_compile --notests + + if use doc; then + cd "${S}"/doc || die + doxygen full.cfg || die + fi + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_compile + fi +} + +src_test() { + waf-utils_src_compile --alltests + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + distutils-r1_src_test + fi +} + +src_install() { + waf-utils_src_install + + if use python ; then + cd "${PYTHON_SRC_DIR}" || die + DOCS="" distutils-r1_src_install + newdoc README README.python + fi + + if use doc; then + dohtml -r doc/full/html/. + dodoc doc/*.txt + fi + + if use examples; then + # install dist_noinst_SCRIPTS from Makefile.am + dodoc -r examples + fi +} |