Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/xmms2: metadata.xml ChangeLog xmms2-0.7.ebuild
Date: Wed, 30 Jun 2010 05:30:58
Message-Id: 20100630053053.EF9A12CE15@corvid.gentoo.org
1 slyfox 10/06/30 05:30:53
2
3 Added: metadata.xml ChangeLog xmms2-0.7.ebuild
4 Log:
5 New package: media-sound/xmms2. Bug #93583
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-sound/xmms2/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>no-herd</herd>
20 <maintainer>
21 <email>slyfox@g.o</email>
22 <name>Sergei Trofimovich</name>
23 <description>Primary Maintainer</description>
24 </maintainer>
25 <longdescription>
26 It features a client-server model, allowing multiple (even simultaneous!) user
27 interfaces, both textual and graphical. All common audio formats are supported
28 using plugins. On top of this, there is a flexible media library to organize
29 your music.
30
31 List of features currently offered by XMMS2:
32 Client-server model:
33 * Allows XMMS2 to have various multiple interfaces (as clients).
34 o Command line interfaces
35 o GTK clients (matching GNOME &amp; XFCE4 look and feel)
36 o KDE clients (matching KDE look and feel)
37 * Network transparency means you can run and control XMMS2 remotely, (e.g. run
38 XMMS2 on your 'media box' and control it over network using a bluetooth-enabled
39 PDA (TCP))
40 Wide format support:
41 * Can play FLAC, mp3, MOD, SID, speex, ogg vorbis, wave files.
42 * Clean separation of transport and decoder subsystems
43 Allows for more flexible access to media. (e.g. play mp3 files from a Samba
44 share without having to mount it on the local filesystem)
45 Medialib:
46 Database-driven media library stores metadata about songs as they're played,
47 so songs can be quickly recalled and new playlists easily made.
48 </longdescription>
49 <use>
50 <flag name="airplay">Support for airplay format</flag>
51 <flag name="asf">Support for Monkey's Audio (APE) format with help of bundled libasf</flag>
52 <flag name="gvfs">Transport for glibs virtual filesystem</flag>
53 <flag name="ices">Icecast source output plugin</flag>
54 <flag name="mac">Support for Monkey's Audio (APE) format with help of <pkg>media-sound/mac</pkg></flag>
55 <flag name="mms">Support for Microsoft Media Server (MMS) streams via libmms</flag>
56 <flag name="mpg123">Support for libmpg123 decoder for MPEG 1.0/2.0/2.5 layer 1/2/3</flag>
57 <flag name="ofa">Support for Open Fingerprint Architecture (OFA)</flag>
58 <flag name="phonehome">This client sends anonymous usage-statistics to the xmms2</flag>
59 <flag name="server">Build xmms2 player daemon (otherwise only clients are built)</flag>
60 <flag name="sid">Support for C64 SID</flag>
61 <flag name="vocoder">Phase vocoder effect plugin</flag>
62 <flag name="mlib-update">Enable building of xmms2-mlib-updater client</flag>
63 <flag name="xml">Enable support for various XML based playlists and sources: RSS, XSPF</flag>
64 </use>
65 </pkgmetadata>
66
67
68
69 1.1 media-sound/xmms2/ChangeLog
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/ChangeLog?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/ChangeLog?rev=1.1&content-type=text/plain
73
74 Index: ChangeLog
75 ===================================================================
76 # ChangeLog for media-sound/xmms2
77 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
78 # $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2/ChangeLog,v 1.1 2010/06/30 05:30:53 slyfox Exp $
79
80 *xmms2-0.7 (30 Jun 2010)
81
82 30 Jun 2010; Sergei Trofimovich <slyfox@g.o> +xmms2-0.7.ebuild,
83 +files/xmms2-0.7DrNo-windres-build-fix.patch, +metadata.xml:
84 Initial commit. Thanks everyone, who conributed to resolve bug #93583.
85 Special thanks to Mike Frysinger <vapier@g.o> for help to cleanup
86 an ebuild.
87
88
89
90
91 1.1 media-sound/xmms2/xmms2-0.7.ebuild
92
93 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/xmms2-0.7.ebuild?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/xmms2-0.7.ebuild?rev=1.1&content-type=text/plain
95
96 Index: xmms2-0.7.ebuild
97 ===================================================================
98 # Copyright 1999-2010 Gentoo Foundation
99 # Distributed under the terms of the GNU General Public License v2
100 # $Header: /var/cvsroot/gentoo-x86/media-sound/xmms2/xmms2-0.7.ebuild,v 1.1 2010/06/30 05:30:53 slyfox Exp $
101
102 EAPI=2
103 inherit base eutils python
104
105 MY_P="${P}DrNo"
106
107 DESCRIPTION="X(cross)platform Music Multiplexing System. The new generation of the XMMS player."
108 HOMEPAGE="http://xmms2.org/wiki/Main_Page"
109 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
110 LICENSE="GPL-2 LGPL-2.1"
111
112 SLOT="0"
113 KEYWORDS="~amd64 ~x86"
114
115 IUSE="aac airplay +alsa ao asf avahi cdda curl cxx ffmpeg flac gvfs ices
116 jack mac mlib-update mms +mp3 mp4 modplug mpg123 musepack ofa oss
117 perl phonehome pulseaudio python ruby
118 samba +server sid speex +vorbis vocoder wavpack xml"
119
120 RDEPEND="server? (
121 >=dev-db/sqlite-3.3.4
122
123 aac? ( >=media-libs/faad2-2.0 )
124 airplay? ( dev-libs/openssl )
125 alsa? ( media-libs/alsa-lib )
126 ao? ( media-libs/libao )
127 avahi? ( net-dns/avahi )
128 cdda? ( >=media-libs/libdiscid-0.1.1
129 >=media-sound/cdparanoia-3.9.8 )
130 curl? ( >=net-misc/curl-7.15.1 )
131 ffmpeg? ( media-video/ffmpeg )
132 flac? ( media-libs/flac )
133 gvfs? ( gnome-base/gnome-vfs )
134 ices? ( media-libs/libogg
135 media-libs/libshout
136 media-libs/libvorbis )
137 jack? ( >=media-sound/jack-audio-connection-kit-0.101.1 )
138 mac? ( media-sound/mac )
139 mms? ( media-video/ffmpeg
140 >=media-libs/libmms-0.3 )
141 modplug? ( media-libs/libmodplug )
142 mp3? ( media-sound/madplay )
143 mp4? ( >=media-libs/faad2-2.0 )
144 mpg123? ( >=media-sound/mpg123-1.5.1 )
145 musepack? ( media-sound/musepack-tools )
146 ofa? ( media-libs/libofa )
147 pulseaudio? ( media-sound/pulseaudio )
148 samba? ( net-fs/samba[smbclient] )
149 sid? ( media-sound/sidplay
150 media-libs/resid )
151 speex? ( media-libs/speex
152 media-libs/libogg )
153 vorbis? ( media-libs/libvorbis )
154 vocoder? ( sci-libs/fftw media-libs/libsamplerate )
155 wavpack? ( media-sound/wavpack )
156 xml? ( dev-libs/libxml2 )
157 )
158
159 >=dev-libs/glib-2.12.9
160 cxx? ( >=dev-libs/boost-1.32 )
161 mlib-update? ( app-admin/gamin )
162 perl? ( >=dev-lang/perl-5.8.8 )
163 python? ( >=dev-python/pyrex-0.9.5.1 )
164 ruby? ( >=dev-lang/ruby-1.8.5 ) "
165
166 DEPEND="${RDEPEND}
167 >=dev-lang/python-2.4.3"
168
169 S="${WORKDIR}/${MY_P}"
170
171 PATCHES=("${FILESDIR}/xmms2-0.7DrNo-windres-build-fix.patch")
172
173 # use_enable() is taken as proto
174 # $1 - useflag
175 # $2 - xmms2 option/plugin name (equals to $1 if not set)
176
177 xmms2_flag() {
178 [[ -z $1 ]] && eerror "!!! empty arg. usage: xmms2_flag <USEFLAG> [<xmms2_flagname>]."
179
180 local UWORD=${2:-$1}
181
182 case $1 in
183 ENABLED)
184 echo ",${UWORD}"
185 ;;
186 DISABLED)
187 ;;
188 *)
189 use $1 && echo ",${UWORD}"
190 ;;
191 esac
192 }
193
194 src_configure() {
195 # ./configure alike options.
196 local waf_params="--prefix=/usr \
197 --libdir=/usr/$(get_libdir) \
198 --with-target-platform=${CHOST} \
199 --mandir=/usr/share/man \
200 --infodir=/usr/share/info \
201 --datadir=/usr/share \
202 --sysconfdir=/etc \
203 --localstatedir=/var/lib"
204
205 local optionals=""
206 local plugins=""
207 if ! use server ; then
208 waf_params+=" --without-xmms2d"
209 else
210 # some fun static mappings:
211 local option_map=( # USE # sorted xmms2 option flag (same, as USE if empty)
212 "avahi avahi"
213 "ENABLED cli"
214 "avahi dns_sd"
215 "phonehome et"
216 "ENABLED launcher"
217 "mlib-update medialib-updater"
218 "ENABLED nycli"
219 " perl"
220 "ENABLED pixmaps"
221 " python"
222 " ruby"
223 "DISABLED tests"
224 "DISABLED vistest"
225 "cxx xmmsclient++"
226 "cxx xmmsclient++-glib"
227 "DISABLED xmmsclient-cf"
228 "DISABLED xmmsclient-ecore" # not in tree
229 )
230
231 local plugin_map=( # USE # sorted xmms2 plugin flag (same, as USE if empty)
232 " alsa"
233 " airplay"
234 " ao"
235 "ffmpeg apefile"
236 "ffmpeg avcodec"
237 " asf"
238 "ENABLED asx"
239 " cdda"
240 "DISABLED coreaudio" # MacOS only?
241 " curl"
242 "ENABLED cue"
243 "avahi daap"
244 "ENABLED diskwrite"
245 "ENABLED equalizer"
246 "aac faad"
247 "ENABLED file"
248 " flac"
249 "ffmpeg flv"
250 "ffmpeg tta"
251 "DISABLED gme" # not in tree
252 " gvfs"
253 "ENABLED html"
254 " ices"
255 "ENABLED icymetaint"
256 "ENABLED id3v2"
257 " jack"
258 "ENABLED karaoke"
259 "ENABLED m3u"
260 " mac"
261 " mms"
262 "mp3 mad"
263 " mp4"
264 " mpg123"
265 " modplug"
266 " musepack"
267 "DISABLED nms" # not in tree
268 "ENABLED normalize"
269 "ENABLED null"
270 "ENABLED nulstripper"
271 " ofa"
272 " oss"
273 "ENABLED pls"
274 "pulseaudio pulse"
275 "ENABLED replaygain"
276 "xml rss"
277 " samba"
278 "DISABLED sc68" #not in tree
279 " sid"
280 " speex"
281 "DISABLED sun" # {Open,Net}BSD only
282 "DISABLED tremor" # not in tree
283 " vorbis"
284 " vocoder"
285 "ffmpeg tta"
286 "ENABLED wave"
287 "DISABLED waveout" # windows only
288 " wavpack"
289 "xml xspf"
290 "ENABLED xml"
291 )
292
293 local option
294 for option in "${option_map[@]}"; do
295 optionals+=$(xmms2_flag $option)
296 done
297
298 local plugin
299 for plugin in "${plugin_map[@]}"; do
300 plugins+=$(xmms2_flag $plugin)
301 done
302 fi # ! server
303
304 # pass them explicitely even if empty as we try to avoid magic deps
305 waf_params+=" --with-optionals=${optionals:1}" # skip first ',' if yet
306 waf_params+=" --with-plugins=${plugins:1}"
307
308 ./waf ${waf_params} configure || die "'waf configure' failed"
309 }
310
311 src_compile() {
312 ./waf build || die "waf build failed"
313 }
314
315 src_install() {
316 ./waf --without-ldconfig --destdir="${D}" install || die "'waf install' failed"
317 dodoc AUTHORS TODO README
318
319 use python && python_need_rebuild
320 }
321
322 pkg_postinst() {
323 elog "This version is built on experimental development code"
324 elog "If you encounter any errors report them at http://bugs.xmms2.xmms.se"
325 elog "and visit #xmms2 at irc://irc.freenode.net"
326 if use phonehome ; then
327 einfo ""
328 einfo "The phone-home client xmms2-et was activated"
329 einfo "This client sends anonymous usage-statistics to the xmms2"
330 einfo "developers which may help finding bugs"
331 einfo "Disable the phonehome useflag if you don't like that"
332 fi
333
334 use python && python_mod_optimize "$(python_get_sitedir)/xmmsclient"
335 }
336
337 pkg_postrm() {
338 use python && python_mod_cleanup "$(python_get_sitedir)/xmmsclient"
339 }