Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/aubio/, media-libs/aubio/files/
Date: Thu, 14 Feb 2019 02:58:58
Message-Id: 1550113123.d4dcf8d9423be2fa4053c69ec078e4063dc3e5bb.polynomial-c@gentoo
1 commit: d4dcf8d9423be2fa4053c69ec078e4063dc3e5bb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 14 02:20:55 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 14 02:58:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4dcf8d9
7
8 media-libs/aubio: Bump to version 0.4.9
9
10 Package-Manager: Portage-2.3.60, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/aubio/Manifest | 1 +
14 media-libs/aubio/aubio-0.4.9.ebuild | 126 ++++++++++++++++++++++++
15 media-libs/aubio/files/aubio-0.4.9-docdir.patch | 20 ++++
16 3 files changed, 147 insertions(+)
17
18 diff --git a/media-libs/aubio/Manifest b/media-libs/aubio/Manifest
19 index 73c0139fa3e..77196db1fd3 100644
20 --- a/media-libs/aubio/Manifest
21 +++ b/media-libs/aubio/Manifest
22 @@ -1,2 +1,3 @@
23 DIST aubio-0.4.7.tar.bz2 372173 BLAKE2B 544239b215dd87d4cf4a6ed6b5dd856411d0a3f1c3242e3e1077fa0780160785a9934884a1f0d0dc80fe21b1d417bc3800db59842ec300a4c29d75b7942cba05 SHA512 30c614f2b502b993df28d4746a99421fe0aada33c98c42ea19c271554b29b360cb4d4f6650c1b1da508da4bc341348c5944cb452f69b2bf354ca6348f84de260
24 DIST aubio-0.4.8.tar.bz2 387933 BLAKE2B e30d0ce97360376edf8eba895dc3040157a139c843ef9d6bf0483ffb750916eaccf9e28b8d80dcc0034572cca4f08479e4db44468c96206ce7b60a2fa9600634 SHA512 e58b32beda36865a5243ec7ed4647cf96e3652a25fd319fc697c08f93487f895070dc66b830700b40b879220c2e3a53b8cdc255ce2e34770ba5e34b36a4f51b4
25 +DIST aubio-0.4.9.tar.bz2 397604 BLAKE2B b849d92678ea8fb20e17921b1a61fdc85a84d4a528acfefa3278169ab5f7fe935217ec37dd9f931202f0f0a1fd3a9518372afbce34cc2dd3ca30c6b4e5d9a301 SHA512 0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130
26
27 diff --git a/media-libs/aubio/aubio-0.4.9.ebuild b/media-libs/aubio/aubio-0.4.9.ebuild
28 new file mode 100644
29 index 00000000000..89c6112ddc2
30 --- /dev/null
31 +++ b/media-libs/aubio/aubio-0.4.9.ebuild
32 @@ -0,0 +1,126 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +DISTUTILS_OPTIONAL=1
39 +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
40 +PYTHON_REQ_USE='threads(+)'
41 +inherit distutils-r1 waf-utils
42 +
43 +DESCRIPTION="Library for audio labelling"
44 +HOMEPAGE="https://aubio.org/"
45 +SRC_URI="https://aubio.org/pub/${P}.tar.bz2"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0/5"
49 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
50 +IUSE="doc double-precision examples ffmpeg fftw jack libav libsamplerate sndfile python test"
51 +
52 +RDEPEND="
53 + ffmpeg? (
54 + !libav? ( >=media-video/ffmpeg-2.6:0= )
55 + libav? ( >=media-video/libav-9:0= )
56 + )
57 + fftw? ( sci-libs/fftw:3.0= )
58 + jack? ( virtual/jack )
59 + libsamplerate? ( media-libs/libsamplerate )
60 + python? (
61 + ${PYTHON_DEPS}
62 + dev-python/numpy[${PYTHON_USEDEP}]
63 + )
64 + sndfile? ( media-libs/libsndfile )
65 +"
66 +DEPEND="${RDEPEND}
67 + ${PYTHON_DEPS}
68 + app-text/txt2man
69 + virtual/pkgconfig
70 + doc? ( app-doc/doxygen )
71 +"
72 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
73 + ?? ( double-precision libsamplerate )
74 +"
75 +
76 +DOCS=( AUTHORS ChangeLog README.md )
77 +PYTHON_SRC_DIR="${S}"
78 +
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-0.4.9-docdir.patch
81 +)
82 +
83 +src_prepare() {
84 + default
85 + sed -e "s:doxygen:doxygen_disabled:" -i wscript || die
86 +
87 + if ! use test; then
88 + sed -e "/bld.*tests/d" -i wscript || die
89 + fi
90 +}
91 +
92 +src_configure() {
93 + python_setup
94 + local mywafconfargs=(
95 + --enable-complex
96 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
97 + $(use_enable double-precision double)
98 + $(use_enable fftw fftw3)
99 + $(use_enable ffmpeg avcodec)
100 + $(use_enable jack)
101 + $(use_enable libsamplerate samplerate)
102 + $(use_enable sndfile)
103 + )
104 + use double-precision || mywafconfargs+=( $(use_enable fftw fftw3f) )
105 +
106 + waf-utils_src_configure "${mywafconfargs[@]}"
107 +
108 + if use python ; then
109 + cd "${PYTHON_SRC_DIR}" || die
110 + distutils-r1_src_configure
111 + fi
112 +}
113 +
114 +src_compile() {
115 + waf-utils_src_compile --notests
116 +
117 + if use doc; then
118 + cd "${S}"/doc || die
119 + emake dirhtml
120 + fi
121 +
122 + if use python ; then
123 + cd "${PYTHON_SRC_DIR}" || die
124 + distutils-r1_src_compile
125 + fi
126 +}
127 +
128 +src_test() {
129 + waf-utils_src_compile --alltests
130 +
131 + if use python ; then
132 + cd "${PYTHON_SRC_DIR}" || die
133 + distutils-r1_src_test
134 + fi
135 +}
136 +
137 +src_install() {
138 + waf-utils_src_install
139 +
140 + if use examples; then
141 + # install dist_noinst_SCRIPTS from Makefile.am
142 + dodoc -r examples
143 + fi
144 +
145 + if use python ; then
146 + cd "${PYTHON_SRC_DIR}" || die
147 + DOCS="" distutils-r1_src_install
148 + newdoc python/README.md README.python
149 + fi
150 +
151 + if use doc; then
152 + dodoc doc/*.txt
153 + docinto html
154 + dodoc -r doc/_build/dirhtml/.
155 + fi
156 +
157 + find "${ED}" -name "*.a" -delete || die
158 +}
159
160 diff --git a/media-libs/aubio/files/aubio-0.4.9-docdir.patch b/media-libs/aubio/files/aubio-0.4.9-docdir.patch
161 new file mode 100644
162 index 00000000000..258e56a29b1
163 --- /dev/null
164 +++ b/media-libs/aubio/files/aubio-0.4.9-docdir.patch
165 @@ -0,0 +1,20 @@
166 +--- aubio-0.4.9/wscript
167 ++++ aubio-0.4.9/wscript
168 +@@ -557,7 +557,7 @@
169 + target = bld.path.find_or_declare('api/index.html'),
170 + cwd = bld.path.find_dir('doc'))
171 + # evaluate nodes lazily to prevent build directory traversal warnings
172 +- bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/api',
173 ++ bld.install_files('${DATAROOTDIR}/doc/' + os.environ['PF'] + '/libaubio-doc/api',
174 + bld.path.find_or_declare('api').ant_glob('**/*',
175 + generator=True), cwd=bld.path.find_or_declare('api'),
176 + relative_trick=True)
177 +@@ -582,7 +582,7 @@
178 + source = bld.path.find_dir('doc').ant_glob('*.rst'),
179 + target = bld.path.find_or_declare('manual/index.html'))
180 + # evaluate nodes lazily to prevent build directory traversal warnings
181 +- bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/manual',
182 ++ bld.install_files('${DATAROOTDIR}/doc/' + os.environ['PF'] + '/libaubio-doc/manual',
183 + bld.path.find_or_declare('manual').ant_glob('**/*',
184 + generator=True), cwd=bld.path.find_or_declare('manual'),
185 + relative_trick=True)