Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2/
Date: Fri, 29 May 2020 22:13:59
Message-Id: 1590790427.494fe1f8b211f5b20be8d87f37458ad25e11b259.slyfox@gentoo
1 commit: 494fe1f8b211f5b20be8d87f37458ad25e11b259
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 29 22:11:12 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri May 29 22:13:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494fe1f8
7
8 media-sound/xmms2: drop old
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild | 305 ------------------------
14 1 file changed, 305 deletions(-)
15
16 diff --git a/media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild b/media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild
17 deleted file mode 100644
18 index 02e40789baa..00000000000
19 --- a/media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild
20 +++ /dev/null
21 @@ -1,305 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -PYTHON_COMPAT=( python3_6 )
28 -USE_RUBY="ruby23 ruby24 ruby25"
29 -
30 -inherit eutils multiprocessing python-single-r1 ruby-single toolchain-funcs
31 -
32 -# generated as 'python2 ./utils/gen-tarball.py' from clean git tree
33 -MY_P="${P%_p*}DrO_o-949-gca15e830"
34 -
35 -DESCRIPTION="X(cross)platform Music Multiplexing System. Next generation of the XMMS player"
36 -HOMEPAGE="https://xmms2.org/wiki/Main_Page"
37 -#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
38 -SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${MY_P}.tar.bz2"
39 -LICENSE="GPL-2 LGPL-2.1"
40 -
41 -SLOT="0"
42 -KEYWORDS="~alpha amd64 ~arm ppc x86"
43 -
44 -IUSE="aac airplay +alsa ao asf cdda curl cxx ffmpeg flac fluidsynth ices
45 -jack mac mlib-update mms +mad modplug mp3 mp4 musepack ofa opus oss
46 -perl phonehome pulseaudio python ruby samba +server sid sndfile speex
47 -test valgrind +vorbis vocoder wavpack xml zeroconf"
48 -
49 -RDEPEND="server? (
50 - >=dev-db/sqlite-3.3.4
51 -
52 - aac? ( >=media-libs/faad2-2.0 )
53 - airplay? ( dev-libs/openssl:0= )
54 - alsa? ( media-libs/alsa-lib )
55 - ao? ( media-libs/libao )
56 - cdda? ( dev-libs/libcdio-paranoia
57 - >=media-libs/libdiscid-0.1.1
58 - >=media-sound/cdparanoia-3.9.8 )
59 - curl? ( >=net-misc/curl-7.15.1 )
60 - ffmpeg? ( media-video/ffmpeg )
61 - flac? ( media-libs/flac )
62 - fluidsynth? ( media-sound/fluidsynth )
63 - ices? ( media-libs/libogg
64 - media-libs/libshout
65 - media-libs/libvorbis )
66 - jack? ( virtual/jack )
67 - mac? ( media-sound/mac )
68 - mms? ( media-video/ffmpeg
69 - >=media-libs/libmms-0.3 )
70 - modplug? ( media-libs/libmodplug )
71 - mad? ( media-libs/libmad )
72 - mp3? ( >=media-sound/mpg123-1.5.1 )
73 - musepack? ( media-sound/musepack-tools )
74 - ofa? ( media-libs/libofa )
75 - opus? ( media-libs/opus
76 - media-libs/opusfile )
77 - pulseaudio? ( media-sound/pulseaudio )
78 - samba? ( >=net-fs/samba-4.2 )
79 - sid? ( media-sound/sidplay
80 - media-libs/resid )
81 - sndfile? ( media-libs/libsndfile )
82 - speex? ( media-libs/speex
83 - media-libs/libogg )
84 - vorbis? ( media-libs/libvorbis )
85 - vocoder? ( sci-libs/fftw:3.0= media-libs/libsamplerate )
86 - wavpack? ( media-sound/wavpack )
87 - xml? ( dev-libs/libxml2 )
88 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
89 - )
90 -
91 - >=dev-libs/glib-2.12.9
92 - cxx? ( >=dev-libs/boost-1.32 )
93 - perl? ( >=dev-lang/perl-5.8.8 )
94 - python? ( ${PYTHON_DEPS} )
95 - ruby? ( ${RUBY_DEPS} )
96 -"
97 -
98 -DEPEND="${RDEPEND}
99 - dev-lang/python
100 - virtual/pkgconfig
101 - perl? ( dev-perl/Module-Build
102 - virtual/perl-Module-Metadata )
103 - python? ( >=dev-python/cython-0.15.1
104 - dev-python/pyrex )
105 - test? ( dev-util/cunit
106 - valgrind? ( dev-util/valgrind ) )
107 -"
108 -
109 -RESTRICT="!test? ( test )"
110 -
111 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
112 -
113 -S="${WORKDIR}/${MY_P}"
114 -
115 -pkg_setup() {
116 - # used both for building xmms2 and
117 - # optionally linking client library
118 - # against python
119 - python-single-r1_pkg_setup
120 -}
121 -
122 -# use_enable() is taken as proto
123 -# $1 - useflag
124 -# $2 - xmms2 option/plugin name (equals to $1 if not set)
125 -
126 -xmms2_flag() {
127 - [[ -z $1 ]] && eerror "!!! empty arg. usage: xmms2_flag <USEFLAG> [<xmms2_flagname>]."
128 -
129 - local UWORD=${2:-$1}
130 -
131 - case $1 in
132 - ENABLED)
133 - echo ",${UWORD}"
134 - ;;
135 - DISABLED)
136 - ;;
137 - *)
138 - use $1 && echo ",${UWORD}"
139 - ;;
140 - esac
141 -}
142 -
143 -src_prepare() {
144 - ./waf # inflate waf
145 - cd .waf* || die
146 - # needs port
147 - #epatch "${FILESDIR}/${PN}"-0.8DrO_o-waflib-fix-perl.patch #578778
148 - eapply "${FILESDIR}/${PN}"-0.8_p20161122-perl-no-local.patch
149 - cd "${S}"
150 -
151 - eapply "${FILESDIR}/${PN}"-0.8-ffmpeg2.patch #536232
152 -
153 - eapply "${FILESDIR}/${PN}"-0.8-rtvg.patch #424377
154 -
155 - # required to build tarball from git tree
156 - eapply "${FILESDIR}/${P}"-tarball.patch
157 -
158 - # fix hash to be the same on LE/BE platforms
159 - eapply "${FILESDIR}/${P}"-be-hash.patch
160 -
161 - # handle mac-3 -> -4 API change
162 - eapply "${FILESDIR}/${P}"-mac-4.patch
163 -
164 - # C++ client dangling reference: https://github.com/xmms2/xmms2-devel/pull/5
165 - eapply "${FILESDIR}/${P}"-cpp-client.patch
166 -
167 - # gcc-10 stopped putting globals into common section
168 - eapply "${FILESDIR}/${P}"-gcc-10.patch
169 -
170 - eapply_user
171 -}
172 -
173 -src_configure() {
174 - # ./configure alike options.
175 - local waf_params="--prefix=/usr \
176 - --libdir=/usr/$(get_libdir) \
177 - --with-target-platform=${CHOST} \
178 - --mandir=/usr/share/man \
179 - --infodir=/usr/share/info \
180 - --datadir=/usr/share \
181 - --sysconfdir=/etc \
182 - --localstatedir=/var/lib"
183 -
184 - local optionals=""
185 - local plugins=""
186 - if ! use server ; then
187 - waf_params+=" --without-xmms2d"
188 - else
189 - # some fun static mappings:
190 - local option_map=( # USE # sorted xmms2 option flag (same, as USE if empty)
191 - "phonehome et"
192 - "ENABLED launcher"
193 - "mlib-update medialib-updater"
194 - "ENABLED nycli"
195 - " perl"
196 - "ENABLED pixmaps"
197 - " python"
198 - " ruby"
199 - "DISABLED tests"
200 - "DISABLED vistest"
201 - "cxx xmmsclient++"
202 - "cxx xmmsclient++-glib"
203 - "DISABLED xmmsclient-cf"
204 - "DISABLED xmmsclient-ecore" # not in tree
205 -
206 - "test tests"
207 - )
208 -
209 - local plugin_map=( # USE # sorted xmms2 plugin flag (same, as USE if empty)
210 - " alsa"
211 - " airplay"
212 - " ao"
213 - "ffmpeg apefile"
214 - "ffmpeg avcodec"
215 - " asf"
216 - "ENABLED asx"
217 - " cdda"
218 - "DISABLED coreaudio" # MacOS only?
219 - " curl"
220 - "ENABLED cue"
221 - "zeroconf daap"
222 - "ENABLED diskwrite"
223 - "ENABLED equalizer"
224 - "aac faad"
225 - "ENABLED file"
226 - " flac"
227 - " fluidsynth"
228 - "ffmpeg flv"
229 - "ffmpeg tta"
230 - "DISABLED gme" # not in tree
231 - "DISABLED gvfs" # obsolete #647604
232 - "ENABLED html"
233 - " ices"
234 - "ENABLED icymetaint"
235 - "ENABLED id3v2"
236 - " jack"
237 - "ENABLED karaoke"
238 - "ENABLED m3u"
239 - " mac"
240 - " mms"
241 - " mad"
242 - "ENABLED midsquash"
243 - " mp4" # bug #387961 (aac, mp3, ape can sit there)
244 - "mp3 mpg123"
245 - " modplug"
246 - " musepack"
247 - "DISABLED nms" # not in tree
248 - "ENABLED normalize"
249 - "ENABLED null"
250 - "ENABLED nulstripper"
251 - " ofa"
252 - " opus"
253 - " oss"
254 - "ENABLED pls"
255 - "pulseaudio pulse"
256 - "ENABLED replaygain"
257 - "xml rss"
258 - " samba"
259 - "DISABLED sc68" #not in tree
260 - " sid"
261 - " sndfile"
262 - " speex"
263 - "DISABLED sun" # {Open,Net}BSD only
264 - "DISABLED tremor" # not in tree
265 - " vorbis"
266 - " vocoder"
267 - "ffmpeg tta"
268 - "ENABLED wave"
269 - "DISABLED waveout" # windows only
270 - " wavpack"
271 - "xml xspf"
272 - "ENABLED xml"
273 - )
274 -
275 - local option
276 - for option in "${option_map[@]}"; do
277 - optionals+=$(xmms2_flag $option)
278 - done
279 -
280 - local plugin
281 - for plugin in "${plugin_map[@]}"; do
282 - plugins+=$(xmms2_flag $plugin)
283 - done
284 - fi # ! server
285 -
286 - # pass them explicitely even if empty as we try to avoid magic deps
287 - waf_params+=" --with-optionals=${optionals:1}" # skip first ',' if yet
288 - waf_params+=" --with-plugins=${plugins:1}"
289 - waf_params+=" $(use_with valgrind)"
290 -
291 - CC="$(tc-getCC)" \
292 - CPP="$(tc-getCPP)" \
293 - AR="$(tc-getAR)" \
294 - RANLIB="$(tc-getRANLIB)" \
295 - CXX="$(tc-getCXX)" \
296 - ./waf configure ${waf_params} || die "'waf configure' failed"
297 -}
298 -
299 -src_compile() {
300 - # waf is very keen to run tests in build phase (bug #424377) but
301 - # it does not bother running tests twice, so the hack below works:
302 - ./waf --verbose build || ./waf --verbose build || die "waf build failed"
303 -}
304 -
305 -src_test() {
306 - # rerun tests
307 - ./waf --alltests || die "waf --alltests failed"
308 -}
309 -
310 -src_install() {
311 - ./waf --without-ldconfig --destdir="${D}" install || die "'waf install' failed"
312 - dodoc AUTHORS TODO
313 -}
314 -
315 -pkg_postinst() {
316 - elog "This version is built on experimental development code"
317 - elog "If you encounter any errors report them at https://bugs.xmms2.org"
318 - elog "and visit #xmms2 at irc://irc.freenode.net"
319 - if use phonehome ; then
320 - einfo ""
321 - einfo "The phone-home client xmms2-et was activated"
322 - einfo "This client sends anonymous usage-statistics to the xmms2"
323 - einfo "developers which may help finding bugs"
324 - einfo "Disable the phonehome useflag if you don't like that"
325 - fi
326 -}