Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2/
Date: Mon, 08 Apr 2019 17:43:09
Message-Id: 1554745372.401cd184e4e0f868a75f8b91decff5dfbdb4d73e.graaff@gentoo
1 commit: 401cd184e4e0f868a75f8b91decff5dfbdb4d73e
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 8 17:26:34 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 8 17:42:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=401cd184
7
8 media-sound/xmms2: cleanup ruby23-only revision
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 media-sound/xmms2/metadata.xml | 1 -
14 media-sound/xmms2/xmms2-0.8_p20161122.ebuild | 291 ---------------------------
15 2 files changed, 292 deletions(-)
16
17 diff --git a/media-sound/xmms2/metadata.xml b/media-sound/xmms2/metadata.xml
18 index a19d3fb9caf..2019a968d21 100644
19 --- a/media-sound/xmms2/metadata.xml
20 +++ b/media-sound/xmms2/metadata.xml
21 @@ -34,7 +34,6 @@
22 <flag name="airplay">Support for airplay format</flag>
23 <flag name="asf">Support for Monkey's Audio (APE) format with help of bundled libasf</flag>
24 <flag name="fluidsynth">Enable fluidsynth support (MIDI)</flag>
25 - <flag name="gvfs">Transport for glibs virtual filesystem</flag>
26 <flag name="ices">Icecast source output plugin</flag>
27 <flag name="mac">Support for Monkey's Audio (APE) format with help of <pkg>media-sound/mac</pkg></flag>
28 <flag name="ofa">Support for Open Fingerprint Architecture (OFA)</flag>
29
30 diff --git a/media-sound/xmms2/xmms2-0.8_p20161122.ebuild b/media-sound/xmms2/xmms2-0.8_p20161122.ebuild
31 deleted file mode 100644
32 index d4c26a1373c..00000000000
33 --- a/media-sound/xmms2/xmms2-0.8_p20161122.ebuild
34 +++ /dev/null
35 @@ -1,291 +0,0 @@
36 -# Copyright 1999-2018 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
42 -USE_RUBY="ruby22 ruby23"
43 -
44 -inherit eutils multiprocessing python-single-r1 ruby-single toolchain-funcs
45 -
46 -# generated as 'python2 ./utils/gen-tarball.py' from clean git tree
47 -MY_P="${P%_p*}DrO_o-949-gca15e830"
48 -
49 -DESCRIPTION="X(cross)platform Music Multiplexing System. Next generation of the XMMS player"
50 -HOMEPAGE="https://xmms2.org/wiki/Main_Page"
51 -#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
52 -SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${MY_P}.tar.bz2"
53 -LICENSE="GPL-2 LGPL-2.1"
54 -
55 -SLOT="0"
56 -KEYWORDS="alpha amd64 ppc x86"
57 -
58 -IUSE="aac airplay +alsa ao asf cdda curl cxx ffmpeg flac fluidsynth gvfs ices
59 -jack mac mlib-update mms +mad modplug mp3 mp4 musepack ofa opus oss
60 -perl phonehome pulseaudio python ruby samba +server sid sndfile speex
61 -test valgrind +vorbis vocoder wavpack xml zeroconf"
62 -
63 -RDEPEND="server? (
64 - >=dev-db/sqlite-3.3.4
65 -
66 - aac? ( >=media-libs/faad2-2.0 )
67 - airplay? ( dev-libs/openssl:0= )
68 - alsa? ( media-libs/alsa-lib )
69 - ao? ( media-libs/libao )
70 - cdda? ( dev-libs/libcdio-paranoia
71 - >=media-libs/libdiscid-0.1.1
72 - >=media-sound/cdparanoia-3.9.8 )
73 - curl? ( >=net-misc/curl-7.15.1 )
74 - ffmpeg? ( virtual/ffmpeg )
75 - flac? ( media-libs/flac )
76 - fluidsynth? ( media-sound/fluidsynth )
77 - gvfs? ( gnome-base/gnome-vfs )
78 - ices? ( media-libs/libogg
79 - media-libs/libshout
80 - media-libs/libvorbis )
81 - jack? ( >=media-sound/jack-audio-connection-kit-0.101.1 )
82 - mac? ( media-sound/mac )
83 - mms? ( virtual/ffmpeg
84 - >=media-libs/libmms-0.3 )
85 - modplug? ( media-libs/libmodplug )
86 - mad? ( media-libs/libmad )
87 - mp3? ( >=media-sound/mpg123-1.5.1 )
88 - musepack? ( media-sound/musepack-tools )
89 - ofa? ( media-libs/libofa )
90 - opus? ( media-libs/opus
91 - media-libs/opusfile )
92 - pulseaudio? ( media-sound/pulseaudio )
93 - samba? ( >=net-fs/samba-4.2 )
94 - sid? ( media-sound/sidplay
95 - media-libs/resid )
96 - sndfile? ( media-libs/libsndfile )
97 - speex? ( media-libs/speex
98 - media-libs/libogg )
99 - vorbis? ( media-libs/libvorbis )
100 - vocoder? ( sci-libs/fftw:3.0= media-libs/libsamplerate )
101 - wavpack? ( media-sound/wavpack )
102 - xml? ( dev-libs/libxml2 )
103 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
104 - )
105 -
106 - >=dev-libs/glib-2.12.9
107 - cxx? ( >=dev-libs/boost-1.32 )
108 - perl? ( >=dev-lang/perl-5.8.8 )
109 - python? ( ${PYTHON_DEPS} )
110 - ruby? ( ${RUBY_DEPS} )
111 -"
112 -
113 -DEPEND="${RDEPEND}
114 - dev-lang/python
115 - virtual/pkgconfig
116 - perl? ( dev-perl/Module-Build
117 - virtual/perl-Module-Metadata )
118 - python? ( >=dev-python/cython-0.15.1
119 - dev-python/pyrex )
120 - test? ( dev-util/cunit
121 - valgrind? ( dev-util/valgrind ) )
122 -"
123 -
124 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
125 -
126 -S="${WORKDIR}/${MY_P}"
127 -
128 -pkg_setup() {
129 - # used both for building xmms2 and
130 - # optionally linking client library
131 - # against python
132 - python-single-r1_pkg_setup
133 -}
134 -
135 -# use_enable() is taken as proto
136 -# $1 - useflag
137 -# $2 - xmms2 option/plugin name (equals to $1 if not set)
138 -
139 -xmms2_flag() {
140 - [[ -z $1 ]] && eerror "!!! empty arg. usage: xmms2_flag <USEFLAG> [<xmms2_flagname>]."
141 -
142 - local UWORD=${2:-$1}
143 -
144 - case $1 in
145 - ENABLED)
146 - echo ",${UWORD}"
147 - ;;
148 - DISABLED)
149 - ;;
150 - *)
151 - use $1 && echo ",${UWORD}"
152 - ;;
153 - esac
154 -}
155 -
156 -src_prepare() {
157 - ./waf # inflate waf
158 - cd .waf* || die
159 - # needs port
160 - #epatch "${FILESDIR}/${PN}"-0.8DrO_o-waflib-fix-perl.patch #578778
161 - cd "${S}"
162 -
163 - eapply "${FILESDIR}/${PN}"-0.8-ffmpeg2.patch #536232
164 -
165 - eapply "${FILESDIR}/${PN}"-0.8-rtvg.patch #424377
166 -
167 - # required to build tarball from git tree
168 - eapply "${FILESDIR}/${P}"-tarball.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 - " gvfs"
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 -}