1 |
slyfox 10/07/01 08:22:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xmms2-0.7-r2.ebuild |
5 |
Removed: xmms2-0.7-r1.ebuild |
6 |
Log: |
7 |
Revbump. Build system requires python2. pyrex became a build time |
8 |
depend, moved to EAPI=3. Disabled building of bundled faad2, use only external one. |
9 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 media-sound/xmms2/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/ChangeLog?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/ChangeLog?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/ChangeLog?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/xmms2/ChangeLog,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- ChangeLog 30 Jun 2010 17:20:13 -0000 1.2 |
25 |
+++ ChangeLog 1 Jul 2010 08:22:28 -0000 1.3 |
26 |
@@ -1,6 +1,15 @@ |
27 |
# ChangeLog for media-sound/xmms2 |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2/ChangeLog,v 1.2 2010/06/30 17:20:13 slyfox Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2/ChangeLog,v 1.3 2010/07/01 08:22:28 slyfox Exp $ |
31 |
+ |
32 |
+*xmms2-0.7-r2 (01 Jul 2010) |
33 |
+ |
34 |
+ 01 Jul 2010; Sergei Trofimovich <slyfox@g.o> -xmms2-0.7-r1.ebuild, |
35 |
+ +xmms2-0.7-r2.ebuild: |
36 |
+ Revision bump. Building xmms2 requires python2, pyrex became a build time |
37 |
+ depend, moved to EAPI=3. Thanks to arfrever. |
38 |
+ Disabled building of bundled faad2, use only external one. |
39 |
+ Thanks to ssuominen. |
40 |
|
41 |
*xmms2-0.7-r1 (30 Jun 2010) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 media-sound/xmms2/xmms2-0.7-r2.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/xmms2-0.7-r2.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/xmms2-0.7-r2.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: xmms2-0.7-r2.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2/xmms2-0.7-r2.ebuild,v 1.1 2010/07/01 08:22:28 slyfox Exp $ |
56 |
|
57 |
EAPI=3 |
58 |
|
59 |
inherit base eutils python |
60 |
|
61 |
MY_P="${P}DrNo" |
62 |
|
63 |
DESCRIPTION="X(cross)platform Music Multiplexing System. The new generation of the XMMS player." |
64 |
HOMEPAGE="http://xmms2.org/wiki/Main_Page" |
65 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" |
66 |
LICENSE="GPL-2 LGPL-2.1" |
67 |
|
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
|
71 |
IUSE="aac airplay +alsa ao asf avahi cdda curl cxx ffmpeg flac gvfs ices |
72 |
jack mac mlib-update mms +mad modplug mp3 musepack ofa oss |
73 |
perl phonehome pulseaudio python ruby |
74 |
samba +server sid speex +vorbis vocoder wavpack xml" |
75 |
|
76 |
RDEPEND="server? ( |
77 |
>=dev-db/sqlite-3.3.4 |
78 |
|
79 |
aac? ( >=media-libs/faad2-2.0 ) |
80 |
airplay? ( dev-libs/openssl ) |
81 |
alsa? ( media-libs/alsa-lib ) |
82 |
ao? ( media-libs/libao ) |
83 |
avahi? ( net-dns/avahi ) |
84 |
cdda? ( >=media-libs/libdiscid-0.1.1 |
85 |
>=media-sound/cdparanoia-3.9.8 ) |
86 |
curl? ( >=net-misc/curl-7.15.1 ) |
87 |
ffmpeg? ( media-video/ffmpeg ) |
88 |
flac? ( media-libs/flac ) |
89 |
gvfs? ( gnome-base/gnome-vfs ) |
90 |
ices? ( media-libs/libogg |
91 |
media-libs/libshout |
92 |
media-libs/libvorbis ) |
93 |
jack? ( >=media-sound/jack-audio-connection-kit-0.101.1 ) |
94 |
mac? ( media-sound/mac ) |
95 |
mms? ( media-video/ffmpeg |
96 |
>=media-libs/libmms-0.3 ) |
97 |
modplug? ( media-libs/libmodplug ) |
98 |
mad? ( media-sound/madplay ) |
99 |
mp3? ( >=media-sound/mpg123-1.5.1 ) |
100 |
musepack? ( media-sound/musepack-tools ) |
101 |
ofa? ( media-libs/libofa ) |
102 |
pulseaudio? ( media-sound/pulseaudio ) |
103 |
samba? ( net-fs/samba[smbclient] ) |
104 |
sid? ( media-sound/sidplay |
105 |
media-libs/resid ) |
106 |
speex? ( media-libs/speex |
107 |
media-libs/libogg ) |
108 |
vorbis? ( media-libs/libvorbis ) |
109 |
vocoder? ( sci-libs/fftw media-libs/libsamplerate ) |
110 |
wavpack? ( media-sound/wavpack ) |
111 |
xml? ( dev-libs/libxml2 ) |
112 |
) |
113 |
|
114 |
>=dev-libs/glib-2.12.9 |
115 |
cxx? ( >=dev-libs/boost-1.32 ) |
116 |
mlib-update? ( app-admin/gamin ) |
117 |
perl? ( >=dev-lang/perl-5.8.8 ) |
118 |
python? ( =dev-lang/python-2* ) |
119 |
ruby? ( >=dev-lang/ruby-1.8.5 ) " |
120 |
|
121 |
DEPEND="${RDEPEND} |
122 |
=dev-lang/python-2* |
123 |
python? ( dev-python/pyrex )" |
124 |
|
125 |
S="${WORKDIR}/${MY_P}" |
126 |
|
127 |
PATCHES=("${FILESDIR}/xmms2-0.7DrNo-windres-build-fix.patch") |
128 |
|
129 |
# use_enable() is taken as proto |
130 |
# $1 - useflag |
131 |
# $2 - xmms2 option/plugin name (equals to $1 if not set) |
132 |
|
133 |
xmms2_flag() { |
134 |
[[ -z $1 ]] && eerror "!!! empty arg. usage: xmms2_flag <USEFLAG> [<xmms2_flagname>]." |
135 |
|
136 |
local UWORD=${2:-$1} |
137 |
|
138 |
case $1 in |
139 |
ENABLED) |
140 |
echo ",${UWORD}" |
141 |
;; |
142 |
DISABLED) |
143 |
;; |
144 |
*) |
145 |
use $1 && echo ",${UWORD}" |
146 |
;; |
147 |
esac |
148 |
} |
149 |
|
150 |
pkg_setup() { |
151 |
python_set_active_version 2 |
152 |
python_pkg_setup |
153 |
} |
154 |
|
155 |
src_configure() { |
156 |
# ./configure alike options. |
157 |
local waf_params="--prefix=/usr \ |
158 |
--libdir=/usr/$(get_libdir) \ |
159 |
--with-target-platform=${CHOST} \ |
160 |
--mandir=/usr/share/man \ |
161 |
--infodir=/usr/share/info \ |
162 |
--datadir=/usr/share \ |
163 |
--sysconfdir=/etc \ |
164 |
--localstatedir=/var/lib" |
165 |
|
166 |
local optionals="" |
167 |
local plugins="" |
168 |
if ! use server ; then |
169 |
waf_params+=" --without-xmms2d" |
170 |
else |
171 |
# some fun static mappings: |
172 |
local option_map=( # USE # sorted xmms2 option flag (same, as USE if empty) |
173 |
"avahi avahi" |
174 |
"ENABLED cli" |
175 |
"avahi dns_sd" |
176 |
"phonehome et" |
177 |
"ENABLED launcher" |
178 |
"mlib-update medialib-updater" |
179 |
"ENABLED nycli" |
180 |
" perl" |
181 |
"ENABLED pixmaps" |
182 |
" python" |
183 |
" ruby" |
184 |
"DISABLED tests" |
185 |
"DISABLED vistest" |
186 |
"cxx xmmsclient++" |
187 |
"cxx xmmsclient++-glib" |
188 |
"DISABLED xmmsclient-cf" |
189 |
"DISABLED xmmsclient-ecore" # not in tree |
190 |
) |
191 |
|
192 |
local plugin_map=( # USE # sorted xmms2 plugin flag (same, as USE if empty) |
193 |
" alsa" |
194 |
" airplay" |
195 |
" ao" |
196 |
"ffmpeg apefile" |
197 |
"ffmpeg avcodec" |
198 |
" asf" |
199 |
"ENABLED asx" |
200 |
" cdda" |
201 |
"DISABLED coreaudio" # MacOS only? |
202 |
" curl" |
203 |
"ENABLED cue" |
204 |
"avahi daap" |
205 |
"ENABLED diskwrite" |
206 |
"ENABLED equalizer" |
207 |
"aac faad" |
208 |
"ENABLED file" |
209 |
" flac" |
210 |
"ffmpeg flv" |
211 |
"ffmpeg tta" |
212 |
"DISABLED gme" # not in tree |
213 |
" gvfs" |
214 |
"ENABLED html" |
215 |
" ices" |
216 |
"ENABLED icymetaint" |
217 |
"ENABLED id3v2" |
218 |
" jack" |
219 |
"ENABLED karaoke" |
220 |
"ENABLED m3u" |
221 |
" mac" |
222 |
" mms" |
223 |
" mad" |
224 |
"DISABLED mp4" # uses bundled patched faad2 |
225 |
"mp3 mpg123" |
226 |
" modplug" |
227 |
" musepack" |
228 |
"DISABLED nms" # not in tree |
229 |
"ENABLED normalize" |
230 |
"ENABLED null" |
231 |
"ENABLED nulstripper" |
232 |
" ofa" |
233 |
" oss" |
234 |
"ENABLED pls" |
235 |
"pulseaudio pulse" |
236 |
"ENABLED replaygain" |
237 |
"xml rss" |
238 |
" samba" |
239 |
"DISABLED sc68" #not in tree |
240 |
" sid" |
241 |
" speex" |
242 |
"DISABLED sun" # {Open,Net}BSD only |
243 |
"DISABLED tremor" # not in tree |
244 |
" vorbis" |
245 |
" vocoder" |
246 |
"ffmpeg tta" |
247 |
"ENABLED wave" |
248 |
"DISABLED waveout" # windows only |
249 |
" wavpack" |
250 |
"xml xspf" |
251 |
"ENABLED xml" |
252 |
) |
253 |
|
254 |
local option |
255 |
for option in "${option_map[@]}"; do |
256 |
optionals+=$(xmms2_flag $option) |
257 |
done |
258 |
|
259 |
local plugin |
260 |
for plugin in "${plugin_map[@]}"; do |
261 |
plugins+=$(xmms2_flag $plugin) |
262 |
done |
263 |
fi # ! server |
264 |
|
265 |
# pass them explicitely even if empty as we try to avoid magic deps |
266 |
waf_params+=" --with-optionals=${optionals:1}" # skip first ',' if yet |
267 |
waf_params+=" --with-plugins=${plugins:1}" |
268 |
|
269 |
./waf ${waf_params} configure || die "'waf configure' failed" |
270 |
} |
271 |
|
272 |
src_compile() { |
273 |
./waf build || die "waf build failed" |
274 |
} |
275 |
|
276 |
src_install() { |
277 |
./waf --without-ldconfig --destdir="${D}" install || die "'waf install' failed" |
278 |
dodoc AUTHORS TODO README |
279 |
|
280 |
use python && python_need_rebuild |
281 |
} |
282 |
|
283 |
pkg_postinst() { |
284 |
elog "This version is built on experimental development code" |
285 |
elog "If you encounter any errors report them at http://bugs.xmms2.xmms.se" |
286 |
elog "and visit #xmms2 at irc://irc.freenode.net" |
287 |
if use phonehome ; then |
288 |
einfo "" |
289 |
einfo "The phone-home client xmms2-et was activated" |
290 |
einfo "This client sends anonymous usage-statistics to the xmms2" |
291 |
einfo "developers which may help finding bugs" |
292 |
einfo "Disable the phonehome useflag if you don't like that" |
293 |
fi |
294 |
|
295 |
use python && python_mod_optimize xmmsclient |
296 |
} |
297 |
|
298 |
pkg_postrm() { |
299 |
use python && python_mod_cleanup xmmsclient |
300 |
} |