Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/aubio/
Date: Sun, 01 Nov 2015 10:38:07
Message-Id: 1446373636.ae0cd5a3e29ef8750074c65e7b0cead729079a6b.aballier@gentoo
1 commit: ae0cd5a3e29ef8750074c65e7b0cead729079a6b
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 1 10:27:16 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 1 10:27:16 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0cd5a3
7
8 media-libs/aubio: Bump to 0.4.2.
9
10 Package-Manager: portage-2.2.23
11
12 media-libs/aubio/Manifest | 1 +
13 media-libs/aubio/aubio-0.4.2.ebuild | 106 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 107 insertions(+)
15
16 diff --git a/media-libs/aubio/Manifest b/media-libs/aubio/Manifest
17 index d8ae92a..81f4627 100644
18 --- a/media-libs/aubio/Manifest
19 +++ b/media-libs/aubio/Manifest
20 @@ -1 +1,2 @@
21 DIST aubio-0.4.1.tar.bz2 288136 SHA256 25d7df0a9cd6366fda764a803424caddf5fb819fc75b42a7a03e1e6f8eb3c695 SHA512 f36800f1a0cbe72509e05d15d79759ed25975e92701804597ed4c9d93e27d5e7b908e0aa65819ce763882945123ea174a0825c7aacf9f9494f56d72de5b8308c WHIRLPOOL ea410de8ca5d81c8b6ff2f98a2353601a48435649e3c5931e41f9e7f4ccb8f9a8faf2156a3632de223638f1e91d608c5a77660fa00633a591488498c5e37fec6
22 +DIST aubio-0.4.2.tar.bz2 304216 SHA256 1cc58e0fed2b9468305b198ad06b889f228b797a082c2ede716dc30fcb4f8f1f SHA512 b57b6d147b305a264f0055726f76a8452f784b556a7fda911f056adbedd2855048e93c0e21b9f359e3f442f1542189aff0c214dd85141e2e06048a07f47703ff WHIRLPOOL 1fa0c877261c82d095144c05f753dd5ea303838d48627edf18af4275f8b4aba0dbe5806bb2504bc2c5a2c169d5bd8edd76bcb3cd990abd7b42842d0223918270
23
24 diff --git a/media-libs/aubio/aubio-0.4.2.ebuild b/media-libs/aubio/aubio-0.4.2.ebuild
25 new file mode 100644
26 index 0000000..9f5142f
27 --- /dev/null
28 +++ b/media-libs/aubio/aubio-0.4.2.ebuild
29 @@ -0,0 +1,106 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +DISTUTILS_OPTIONAL=1
37 +PYTHON_COMPAT=( python2_7 )
38 +PYTHON_REQ_USE='threads(+)'
39 +
40 +inherit distutils-r1 waf-utils multilib eutils
41 +
42 +DESCRIPTION="Library for audio labelling"
43 +HOMEPAGE="http://aubio.org/"
44 +SRC_URI="http://aubio.org//pub/${P}.tar.bz2"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
49 +IUSE="doc double-precision examples ffmpeg fftw jack libav libsamplerate sndfile python"
50 +
51 +RDEPEND="
52 + ffmpeg? (
53 + !libav? ( >=media-video/ffmpeg-2.6:0= )
54 + libav? ( >=media-video/libav-9:0= )
55 + )
56 + fftw? ( sci-libs/fftw:3.0 )
57 + jack? ( media-sound/jack-audio-connection-kit )
58 + libsamplerate? ( media-libs/libsamplerate )
59 + python? ( dev-python/numpy[${PYTHON_USEDEP}] ${PYTHON_DEPS} )
60 + sndfile? ( media-libs/libsndfile )"
61 +DEPEND="${RDEPEND}
62 + ${PYTHON_DEPS}
63 + virtual/pkgconfig
64 + app-text/txt2man
65 + doc? ( app-doc/doxygen )"
66 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
67 +
68 +DOCS=( AUTHORS ChangeLog README.md )
69 +PYTHON_SRC_DIR="${S}/python"
70 +
71 +src_prepare() {
72 + sed -i -e "s:doxygen:doxygen_disabled:" wscript || die
73 +}
74 +
75 +src_configure() {
76 + python_setup
77 + waf-utils_src_configure \
78 + --enable-complex \
79 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
80 + $(use_enable double-precision double) \
81 + $(use_enable fftw fftw3f) \
82 + $(use_enable fftw fftw3) \
83 + $(use_enable ffmpeg avcodec) \
84 + $(use_enable jack) \
85 + $(use_enable libsamplerate samplerate) \
86 + $(use_enable sndfile)
87 +
88 + if use python ; then
89 + cd "${PYTHON_SRC_DIR}" || die
90 + distutils-r1_src_configure
91 + fi
92 +}
93 +
94 +src_compile() {
95 + waf-utils_src_compile --notests
96 +
97 + if use doc; then
98 + cd "${S}"/doc || die
99 + doxygen full.cfg || die
100 + fi
101 +
102 + if use python ; then
103 + cd "${PYTHON_SRC_DIR}" || die
104 + distutils-r1_src_compile
105 + fi
106 +}
107 +
108 +src_test() {
109 + waf-utils_src_compile --alltests
110 +
111 + if use python ; then
112 + cd "${PYTHON_SRC_DIR}" || die
113 + distutils-r1_src_test
114 + fi
115 +}
116 +
117 +src_install() {
118 + waf-utils_src_install
119 +
120 + if use python ; then
121 + cd "${PYTHON_SRC_DIR}" || die
122 + DOCS="" distutils-r1_src_install
123 + newdoc README README.python
124 + fi
125 +
126 + if use doc; then
127 + dohtml -r doc/full/html/.
128 + dodoc doc/*.txt
129 + fi
130 +
131 + if use examples; then
132 + # install dist_noinst_SCRIPTS from Makefile.am
133 + dodoc -r examples
134 + fi
135 +}