Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2/files/, media-sound/xmms2/
Date: Wed, 22 Sep 2021 22:26:43
Message-Id: 1632349536.e1518299472358d02997f641a51b00accb95a955.ionen@gentoo
1 commit: e1518299472358d02997f641a51b00accb95a955
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 22 21:45:55 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 22 22:25:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1518299
7
8 media-sound/xmms2: drop 0.8_p20161122-r8
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 media-sound/xmms2/Manifest | 2 -
13 media-sound/xmms2/files/xmms2-0.8-ffmpeg2.patch | 15 -
14 .../xmms2/files/xmms2-0.8_p20161122-be-hash.patch | 39 ---
15 .../xmms2/files/xmms2-0.8_p20161122-gcc-10.patch | 11 -
16 .../xmms2/files/xmms2-0.8_p20161122-tarball.patch | 78 -----
17 media-sound/xmms2/metadata.xml | 1 -
18 media-sound/xmms2/xmms2-0.8_p20161122-r8.ebuild | 327 ---------------------
19 7 files changed, 473 deletions(-)
20
21 diff --git a/media-sound/xmms2/Manifest b/media-sound/xmms2/Manifest
22 index 0ae44e63d98..38569c9908a 100644
23 --- a/media-sound/xmms2/Manifest
24 +++ b/media-sound/xmms2/Manifest
25 @@ -1,5 +1,3 @@
26 -DIST waf-2.0.19.tar.bz2 682213 BLAKE2B 0bd2e31827ac65e0565abc09df37a42193ff37b50b6d0244f8b10ba7f308b4ba31ba864742d8c8d4005b86e611223dc4315cf70c0dbbf6b7db8f02e4f551fbb2 SHA512 ae7f3973c79e44313b4894c75763ad43ccd2be88e0d351d7f606ce495c5a464a379c85c076ebd8ba577fc88918af2bbb39bbec1049f25f02c14d98388e012c59
27 DIST waf-2.0.22.tar.bz2 687244 BLAKE2B feea82e7e6aaba1187f368aa00025f206a7217196de9be7a97ca6aa8882823decd79db38dda4f1f25e81541eaa44edf029eea8d57e28f7d31b94d9ee93201ea9 SHA512 a3a275fd4c81c7b7385c2da001f3924d272105b8f33839265ebbb38708051b7cb13b9b9019e84325707d04513de0c13b032b1ad21458aec6586d10df4ed8d5f5
28 -DIST xmms2-0.8DrO_o-949-gca15e830.tar.bz2 1928653 BLAKE2B f34abf0c68f4574593eb706744cc4354bc9b679d005bcaf4a9f03ef90fcb14935428c73d3d74565c41a70efcfa6541af15a455d091b6d17e7ca613229c1c1390 SHA512 affd7fdd259cdb952e972b62f24ab8eb6afd2c87786254a7ae81adffdcfe1454dcf2fb95811a8b90db74dba84918526fd8c920e11582b36aa48725f293c73edb
29 DIST xmms2-0.8_p20201016.tar.gz 1720185 BLAKE2B e1cad8ed2ece9d8ce905ffe86de53bb4010639d83fd15700eefccf190034577ff8666f3557bfb23741ed8400eba1e6246ef28ff21c4dbbe499239da945befc74 SHA512 0e73771f56c341e5dea15451457426958217de3ac19cad1924c11740f96feb69e385242a27a9cf9258841ed4e6538c12e135492f715bfae6976b31fb358508bf
30 DIST xmms2-s4-0.8_p20201016.tar.gz 184231 BLAKE2B 0676f89b743e265af01593c215c609ae48ea368d861fd28b022b4124a00852182686a46ebf90ac44a10343f86ba5c398c47fd85e2688971b2b4445f3c3843af5 SHA512 f510141ca792893feba2c00d9bc437f492fdce7c29b12c9a8432792ca5a1703cc7068e1a9f4641abd50b320fefb5867fb5bc58a58b0b0272cf75828c764f94ed
31
32 diff --git a/media-sound/xmms2/files/xmms2-0.8-ffmpeg2.patch b/media-sound/xmms2/files/xmms2-0.8-ffmpeg2.patch
33 deleted file mode 100644
34 index 2e9fac380ea..00000000000
35 --- a/media-sound/xmms2/files/xmms2-0.8-ffmpeg2.patch
36 +++ /dev/null
37 @@ -1,15 +0,0 @@
38 -Index: xmms2-0.8DrO_o/src/plugins/avcodec/avcodec.c
39 -===================================================================
40 ---- xmms2-0.8DrO_o.orig/src/plugins/avcodec/avcodec.c
41 -+++ xmms2-0.8DrO_o/src/plugins/avcodec/avcodec.c
42 -@@ -29,6 +29,10 @@
43 -
44 - #define AVCODEC_BUFFER_SIZE 16384
45 -
46 -+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
47 -+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
48 -+#endif
49 -+
50 - typedef struct {
51 - AVCodecContext *codecctx;
52 -
53
54 diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-be-hash.patch b/media-sound/xmms2/files/xmms2-0.8_p20161122-be-hash.patch
55 deleted file mode 100644
56 index 5fa43298cf7..00000000000
57 --- a/media-sound/xmms2/files/xmms2-0.8_p20161122-be-hash.patch
58 +++ /dev/null
59 @@ -1,39 +0,0 @@
60 -From d97c8b8239e8b3c5ddb951d427b7d78ea7faad25 Mon Sep 17 00:00:00 2001
61 -From: Sergei Trofimovich <slyfox@g.o>
62 -Date: Sun, 30 Jul 2017 23:08:02 +0100
63 -Subject: [PATCH] OTHER: _xmmsv_dict_hash: make hash function
64 - endianness-agnostic
65 -
66 -The following code:
67 - uint32_t k;
68 - memcpy (&k, data, sizeof (k));
69 -computes different data depending on platform endianness.
70 -
71 -That causes test_xmmsv_serialize_coll_match test to fail
72 -as collection order is serialized in wrong order.
73 -
74 -Signed-off-by: Sergei Trofimovich <slyfox@g.o>
75 ----
76 - src/lib/xmmstypes/xmmsv_dict.c | 6 ++++--
77 - 1 file changed, 4 insertions(+), 2 deletions(-)
78 -
79 -diff --git a/src/lib/xmmstypes/xmmsv_dict.c b/src/lib/xmmstypes/xmmsv_dict.c
80 -index 5ebe4eb3..32533285 100644
81 ---- a/src/lib/xmmstypes/xmmsv_dict.c
82 -+++ b/src/lib/xmmstypes/xmmsv_dict.c
83 -@@ -66,8 +66,10 @@ _xmmsv_dict_hash (const void *key, int len)
84 -
85 - while (len >= 4)
86 - {
87 -- uint32_t k;
88 -- memcpy (&k, data, sizeof (k));
89 -+ uint32_t k = data [0]
90 -+ | data [1] << 8
91 -+ | data [2] << 16
92 -+ | data [3] << 24;
93 -
94 - k *= m;
95 - k ^= k >> r;
96 ---
97 -2.13.3
98 -
99
100 diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch b/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch
101 deleted file mode 100644
102 index 29a8311d219..00000000000
103 --- a/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch
104 +++ /dev/null
105 @@ -1,11 +0,0 @@
106 ---- a/src/lib/s4/tests/s4/t_transactions.c
107 -+++ b/src/lib/s4/tests/s4/t_transactions.c
108 -@@ -19,7 +19,7 @@
109 - #include <glib.h>
110 - #include <glib/gstdio.h>
111 -
112 --s4_t *s4;
113 -+extern s4_t *s4;
114 - s4_val_t *val;
115 -
116 - SETUP (Transactions) {
117
118 diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-tarball.patch b/media-sound/xmms2/files/xmms2-0.8_p20161122-tarball.patch
119 deleted file mode 100644
120 index eef49b13f16..00000000000
121 --- a/media-sound/xmms2/files/xmms2-0.8_p20161122-tarball.patch
122 +++ /dev/null
123 @@ -1,78 +0,0 @@
124 -diff --git a/utils/gen-changelog.py b/utils/gen-changelog.py
125 -index b539088a..301c0461 100755
126 ---- a/utils/gen-changelog.py
127 -+++ b/utils/gen-changelog.py
128 -@@ -1,4 +1,4 @@
129 --#!/usr/bin/python
130 -+#!/usr/bin/python2
131 - from subprocess import check_output
132 - import os
133 -
134 -diff --git a/utils/gen-tarball.py b/utils/gen-tarball.py
135 -index 2ae2a4d1..09ed5074 100755
136 ---- a/utils/gen-tarball.py
137 -+++ b/utils/gen-tarball.py
138 -@@ -1,4 +1,4 @@
139 --#!/usr/bin/env python
140 -+#!/usr/bin/env python2
141 - from subprocess import check_output, call
142 - import tarfile
143 - import os
144 -@@ -40,15 +40,19 @@ def add_files(ball, prefix, template, files):
145 -
146 - VERSION = check_output(["git", "describe"]).strip()
147 -
148 -+# TODO: derive paths from submodule configuration
149 - TUTORIAL_DIR="doc/tutorial"
150 -+S4_DIR="src/lib/s4"
151 -
152 - PREFIX="xmms2-%s" % VERSION
153 - PREFIX_TUTORIAL="%s/%s" % (PREFIX, TUTORIAL_DIR)
154 -+PREFIX_S4="%s/%s" % (PREFIX, S4_DIR)
155 -
156 - DIST_DIR="dist"
157 - DIST_XMMS2="%s/xmms2-%s.tar" % (DIST_DIR, VERSION)
158 - DIST_XMMS2_BZ2="%s/xmms2-%s.tar.bz2" % (DIST_DIR, VERSION)
159 - DIST_TUTORIAL="%s/xmms2-tutorial-%s.tar" % (DIST_DIR, VERSION)
160 -+DIST_S4="%s/xmms2-tutorial-%s.tar" % (DIST_DIR, VERSION)
161 -
162 - if not os.path.exists(DIST_DIR):
163 - os.mkdir(DIST_DIR)
164 -@@ -62,6 +66,9 @@ if os.path.exists(DIST_XMMS2_BZ2):
165 - if os.path.exists(DIST_TUTORIAL):
166 - os.unlink(DIST_TUTORIAL)
167 -
168 -+if os.path.exists(DIST_S4):
169 -+ os.unlink(DIST_S4)
170 -+
171 - # Tar up XMMS2
172 - call("git archive --format=tar --prefix=%s/ HEAD > %s" % (PREFIX, DIST_XMMS2), shell=True)
173 -
174 -@@ -69,9 +76,11 @@ call("git archive --format=tar --prefix=%s/ HEAD > %s" % (PREFIX, DIST_XMMS2), s
175 - call("git submodule init", shell=True)
176 - call("git submodule update", shell=True)
177 - call("git --git-dir=%s/.git archive --format=tar --prefix=%s/ HEAD > %s" % (TUTORIAL_DIR, PREFIX_TUTORIAL, DIST_TUTORIAL), shell=True)
178 -+call("git --git-dir=%s/.git archive --format=tar --prefix=%s/ HEAD > %s" % (S4_DIR, PREFIX_S4, DIST_S4), shell=True)
179 -
180 --# Append the tutorials to the XMMS2 archive
181 -+# Append the tutorials and s4 to the XMMS2 archive
182 - call("tar -Af %s %s" % (DIST_XMMS2, DIST_TUTORIAL), shell=True)
183 -+call("tar -Af %s %s" % (DIST_XMMS2, DIST_S4), shell=True)
184 -
185 - # Append ChangeLog and a summary of all file hashes."
186 - add_files(DIST_XMMS2, PREFIX, get_template(DIST_XMMS2, os.path.join(PREFIX, "wscript")), [
187 -diff --git a/utils/gen-tree-hashes.py b/utils/gen-tree-hashes.py
188 -index 7f8b9e4f..9d27adb0 100755
189 ---- a/utils/gen-tree-hashes.py
190 -+++ b/utils/gen-tree-hashes.py
191 -@@ -1,4 +1,4 @@
192 --#!/usr/bin/env python
193 -+#!/usr/bin/env python2
194 - from subprocess import check_output
195 - from operator import itemgetter
196 - import os
197 -@@ -21,3 +21,4 @@ def collect_hashes(*paths):
198 -
199 - print check_output("git describe", shell=True)
200 - print collect_hashes(".", "doc/tutorial")
201 -+print collect_hashes(".", "src/lib/s4")
202
203 diff --git a/media-sound/xmms2/metadata.xml b/media-sound/xmms2/metadata.xml
204 index 34034fc9473..7f08040bab7 100644
205 --- a/media-sound/xmms2/metadata.xml
206 +++ b/media-sound/xmms2/metadata.xml
207 @@ -14,7 +14,6 @@
208 <flag name="mac">Support for Monkey's Audio (APE) format using <pkg>media-sound/mac</pkg></flag>
209 <flag name="mlib-update">Enable building of xmms2-mlib-updater client</flag>
210 <flag name="ofa">Support for Open Fingerprint Architecture (OFA)</flag>
211 - <flag name="phonehome">This client sends anonymous usage-statistics to the xmms2</flag>
212 <flag name="server">Build xmms2 player daemon (otherwise only clients are built)</flag>
213 <flag name="sid">Support for C64 SID using <pkg>media-libs/libsidplay</pkg></flag>
214 <flag name="tremor">Support Vorbis using an alternate fixed-point decoder with <pkg>media-libs/tremor</pkg></flag>
215
216 diff --git a/media-sound/xmms2/xmms2-0.8_p20161122-r8.ebuild b/media-sound/xmms2/xmms2-0.8_p20161122-r8.ebuild
217 deleted file mode 100644
218 index bf8cb66ac17..00000000000
219 --- a/media-sound/xmms2/xmms2-0.8_p20161122-r8.ebuild
220 +++ /dev/null
221 @@ -1,327 +0,0 @@
222 -# Copyright 1999-2021 Gentoo Authors
223 -# Distributed under the terms of the GNU General Public License v2
224 -
225 -EAPI=7
226 -
227 -PYTHON_COMPAT=( python3_{7,8,9,10} )
228 -USE_RUBY="ruby24 ruby25 ruby26"
229 -
230 -inherit multiprocessing perl-functions python-single-r1 ruby-single toolchain-funcs
231 -
232 -# generated as 'python2 ./utils/gen-tarball.py' from clean git tree
233 -MY_P="${P%_p*}DrO_o-949-gca15e830"
234 -WAF_VER="2.0.19"
235 -
236 -DESCRIPTION="X(cross)platform Music Multiplexing System. Next generation of the XMMS player"
237 -HOMEPAGE="https://github.com/XMMS2"
238 -#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
239 -SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${MY_P}.tar.bz2
240 - https://waf.io/waf-${WAF_VER}.tar.bz2"
241 -LICENSE="GPL-2 LGPL-2.1"
242 -
243 -SLOT="0"
244 -KEYWORDS="~alpha amd64 ~arm ppc x86"
245 -
246 -IUSE="aac airplay +alsa ao asf cdda curl cxx ffmpeg flac fluidsynth ices
247 -jack mac mlib-update mms +mad modplug mp3 mp4 musepack ofa opus oss
248 -perl phonehome pulseaudio python ruby samba +server sid sndfile speex
249 -test valgrind +vorbis vocoder wavpack xml zeroconf"
250 -
251 -RDEPEND="server? (
252 - >=dev-db/sqlite-3.3.4
253 -
254 - aac? ( >=media-libs/faad2-2.0 )
255 - airplay? ( dev-libs/openssl:0= )
256 - alsa? ( media-libs/alsa-lib )
257 - ao? ( media-libs/libao )
258 - cdda? ( dev-libs/libcdio-paranoia
259 - >=media-libs/libdiscid-0.1.1
260 - >=media-sound/cdparanoia-3.9.8 )
261 - curl? ( >=net-misc/curl-7.15.1 )
262 - ffmpeg? ( media-video/ffmpeg )
263 - flac? ( media-libs/flac )
264 - fluidsynth? ( media-sound/fluidsynth )
265 - ices? ( media-libs/libogg
266 - media-libs/libshout
267 - media-libs/libvorbis )
268 - jack? ( virtual/jack )
269 - mac? ( media-sound/mac )
270 - mms? ( media-video/ffmpeg
271 - >=media-libs/libmms-0.3 )
272 - modplug? ( media-libs/libmodplug )
273 - mad? ( media-libs/libmad )
274 - mp3? ( >=media-sound/mpg123-1.5.1 )
275 - musepack? ( media-sound/musepack-tools )
276 - ofa? ( media-libs/libofa )
277 - opus? ( media-libs/opus
278 - media-libs/opusfile )
279 - pulseaudio? ( media-sound/pulseaudio )
280 - samba? ( >=net-fs/samba-4.2 )
281 - sid? ( media-sound/sidplay
282 - media-libs/resid )
283 - sndfile? ( media-libs/libsndfile )
284 - speex? ( media-libs/speex
285 - media-libs/libogg )
286 - vorbis? ( media-libs/libvorbis )
287 - vocoder? ( sci-libs/fftw:3.0= media-libs/libsamplerate )
288 - wavpack? ( media-sound/wavpack )
289 - xml? ( dev-libs/libxml2 )
290 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
291 - )
292 -
293 - >=dev-libs/glib-2.12.9
294 - cxx? ( >=dev-libs/boost-1.32 )
295 - perl? ( >=dev-lang/perl-5.8.8 )
296 - python? ( ${PYTHON_DEPS} )
297 - ruby? ( ${RUBY_DEPS} )
298 -"
299 -
300 -DEPEND="${RDEPEND}
301 - dev-lang/python
302 - virtual/pkgconfig
303 - perl? ( dev-perl/Module-Build
304 - virtual/perl-Module-Metadata )
305 - python? ( >=dev-python/cython-0.15.1 )
306 - test? ( dev-util/cunit
307 - valgrind? ( dev-util/valgrind ) )
308 -"
309 -
310 -RESTRICT="!test? ( test )"
311 -
312 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
313 -
314 -S="${WORKDIR}/${MY_P}"
315 -
316 -PATCHES=(
317 - # needs port
318 - #epatch "${FILESDIR}/${PN}"-0.8DrO_o-waflib-fix-perl.patch #578778
319 -
320 - "${FILESDIR}/${PN}"-0.8-ffmpeg2.patch #536232
321 -
322 - "${FILESDIR}/${PN}"-0.8-rtvg.patch #424377
323 -
324 - # required to build tarball from git tree
325 - "${FILESDIR}/${P}"-tarball.patch
326 -
327 - # fix hash to be the same on LE/BE platforms
328 - "${FILESDIR}/${P}"-be-hash.patch
329 -
330 - # handle mac-3 -> -4 API change
331 - "${FILESDIR}/${P}"-mac-4.patch
332 -
333 - # C++ client dangling reference: https://github.com/xmms2/xmms2-devel/pull/5
334 - "${FILESDIR}/${P}"-cpp-client.patch
335 -
336 - # gcc-10 stopped putting globals into common section
337 - "${FILESDIR}/${P}"-gcc-10.patch
338 -
339 - # fix required since faad 2.9.0
340 - "${FILESDIR}/${P}"-faad.patch
341 -)
342 -
343 -pkg_setup() {
344 - # used both for building xmms2 and
345 - # optionally linking client library
346 - # against python
347 - python-single-r1_pkg_setup
348 -}
349 -
350 -# use_enable() is taken as proto
351 -# ${1} - useflag
352 -# ${2} - xmms2 option/plugin name (equals to ${1} if not set)
353 -
354 -xmms2_flag() {
355 - [[ -z ${1} ]] && eerror "!!! empty arg. usage: xmms2_flag <USEFLAG> [<xmms2_flagname>]."
356 -
357 - local UWORD=${2:-${1}}
358 -
359 - case ${1} in
360 - ENABLED)
361 - echo ",${UWORD}"
362 - ;;
363 - DISABLED)
364 - ;;
365 - *)
366 - use ${1} && echo ",${UWORD}"
367 - ;;
368 - esac
369 -}
370 -
371 -src_prepare() {
372 - mv "${WORKDIR}/waf-${WAF_VER}"/{waf,waflib/} . || die
373 - default
374 -}
375 -
376 -src_configure() {
377 - # ./configure alike options.
378 - local waf_params=(
379 - --prefix=/usr
380 - --libdir=/usr/$(get_libdir)
381 - --with-target-platform="${CHOST}"
382 - --mandir=/usr/share/man
383 - --infodir=/usr/share/info
384 - --datadir=/usr/share
385 - --sysconfdir=/etc
386 - --localstatedir=/var/lib
387 - )
388 -
389 - local optionals=""
390 - local plugins=""
391 - if ! use server ; then
392 - waf_params+=( --without-xmms2d )
393 - else
394 - # some fun static mappings:
395 - local option_map=( # USE # sorted xmms2 option flag (same, as USE if empty)
396 - "phonehome et"
397 - "ENABLED launcher"
398 - "mlib-update medialib-updater"
399 - "ENABLED nycli"
400 - " perl"
401 - "ENABLED pixmaps"
402 - " python"
403 - " ruby"
404 - "DISABLED tests"
405 - "DISABLED vistest"
406 - "cxx xmmsclient++"
407 - "cxx xmmsclient++-glib"
408 - "DISABLED xmmsclient-cf"
409 - "DISABLED xmmsclient-ecore" # not in tree
410 -
411 - "test tests"
412 - )
413 -
414 - local plugin_map=( # USE # sorted xmms2 plugin flag (same, as USE if empty)
415 - " alsa"
416 - " airplay"
417 - " ao"
418 - "ffmpeg apefile"
419 - "ffmpeg avcodec"
420 - " asf"
421 - "ENABLED asx"
422 - " cdda"
423 - "DISABLED coreaudio" # MacOS only?
424 - " curl"
425 - "ENABLED cue"
426 - "zeroconf daap"
427 - "ENABLED diskwrite"
428 - "ENABLED equalizer"
429 - "aac faad"
430 - "ENABLED file"
431 - " flac"
432 - " fluidsynth"
433 - "ffmpeg flv"
434 - "ffmpeg tta"
435 - "DISABLED gme" # not in tree
436 - "DISABLED gvfs" # obsolete #647604
437 - "ENABLED html"
438 - " ices"
439 - "ENABLED icymetaint"
440 - "ENABLED id3v2"
441 - " jack"
442 - "ENABLED karaoke"
443 - "ENABLED m3u"
444 - " mac"
445 - " mms"
446 - " mad"
447 - "ENABLED midsquash"
448 - " mp4" # bug #387961 (aac, mp3, ape can sit there)
449 - "mp3 mpg123"
450 - " modplug"
451 - " musepack"
452 - "DISABLED nms" # not in tree
453 - "ENABLED normalize"
454 - "ENABLED null"
455 - "ENABLED nulstripper"
456 - " ofa"
457 - " opus"
458 - " oss"
459 - "ENABLED pls"
460 - "pulseaudio pulse"
461 - "ENABLED replaygain"
462 - "xml rss"
463 - " samba"
464 - "DISABLED sc68" #not in tree
465 - " sid"
466 - " sndfile"
467 - " speex"
468 - "DISABLED sun" # {Open,Net}BSD only
469 - "DISABLED tremor" # not in tree
470 - " vorbis"
471 - " vocoder"
472 - "ffmpeg tta"
473 - "ENABLED wave"
474 - "DISABLED waveout" # windows only
475 - " wavpack"
476 - "xml xspf"
477 - "ENABLED xml"
478 - )
479 -
480 - local option
481 - for option in "${option_map[@]}"; do
482 - optionals+=$(xmms2_flag ${option})
483 - done
484 -
485 - local plugin
486 - for plugin in "${plugin_map[@]}"; do
487 - plugins+=$(xmms2_flag ${plugin})
488 - done
489 -
490 - if use perl; then
491 - perl_set_version
492 - waf_params+=( --with-perl-archdir="${ARCH_LIB}" )
493 - fi
494 - fi # ! server
495 -
496 - # pass them explicitely even if empty as we try to avoid magic deps
497 - waf_params+=(
498 - --with-optionals="${optionals:1}" # skip first ',' if yet
499 - --with-plugins="${plugins:1}"
500 - $(use_with valgrind)
501 - )
502 -
503 - CC="$(tc-getCC)" \
504 - CPP="$(tc-getCPP)" \
505 - AR="$(tc-getAR)" \
506 - RANLIB="$(tc-getRANLIB)" \
507 - CXX="$(tc-getCXX)" \
508 - ./waf configure "${waf_params[@]}" || die "'waf configure' failed"
509 -}
510 -
511 -src_compile() {
512 - # waf is very keen to run tests in build phase (bug #424377) but
513 - # it does not bother running tests twice, so the hack below works:
514 - ./waf --verbose build || ./waf --verbose build || die "waf build failed"
515 -}
516 -
517 -src_test() {
518 - # rerun tests
519 - ./waf --alltests || die "waf --alltests failed"
520 -}
521 -
522 -src_install() {
523 - ./waf --without-ldconfig --destdir="${D}" install || die "'waf install' failed"
524 - dodoc AUTHORS TODO
525 -
526 - python_optimize
527 -
528 - # waftools/man.py always compresses man pages with gzip.
529 - # to avoid code changed let's just un-gzip manpages
530 - local m
531 - for m in "${ED}"/usr/share/man/man1/*.gz; do
532 - # For some combination of USEs no mans are installed.
533 - if [[ -f ${m} ]]; then
534 - einfo "Uncompressing '${m#${ED}}' back."
535 - gzip -d "${m}" || die
536 - fi
537 - done
538 -}
539 -
540 -pkg_postinst() {
541 - if use phonehome ; then
542 - einfo ""
543 - einfo "The phone-home client xmms2-et was activated"
544 - einfo "This client sends anonymous usage-statistics to the xmms2"
545 - einfo "developers which may help finding bugs"
546 - einfo "Disable the phonehome useflag if you don't like that"
547 - fi
548 -}