1 |
ssuominen 09/09/08 12:23:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mpd-0.15.3.ebuild |
5 |
Removed: mpd-0.15.2.ebuild mpd-0.14.2.ebuild |
6 |
mpd-0.15.1.ebuild |
7 |
Log: |
8 |
Version bump. |
9 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.185 media-sound/mpd/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.185&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.185&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpd/ChangeLog?r1=1.184&r2=1.185 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v |
21 |
retrieving revision 1.184 |
22 |
retrieving revision 1.185 |
23 |
diff -u -r1.184 -r1.185 |
24 |
--- ChangeLog 8 Sep 2009 11:54:39 -0000 1.184 |
25 |
+++ ChangeLog 8 Sep 2009 12:23:03 -0000 1.185 |
26 |
@@ -1,6 +1,11 @@ |
27 |
# ChangeLog for media-sound/mpd |
28 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.184 2009/09/08 11:54:39 ssuominen Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.185 2009/09/08 12:23:03 ssuominen Exp $ |
31 |
+ |
32 |
+*mpd-0.15.3 (08 Sep 2009) |
33 |
+ |
34 |
+ 08 Sep 2009; Samuli Suominen <ssuominen@g.o> +mpd-0.15.3.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
08 Sep 2009; Samuli Suominen <ssuominen@g.o> metadata.xml: |
38 |
Update USE cdio description wrt #283412. |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-sound/mpd/mpd-0.15.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpd/mpd-0.15.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpd/mpd-0.15.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mpd-0.15.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.15.3.ebuild,v 1.1 2009/09/08 12:23:03 ssuominen Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit eutils flag-o-matic multilib |
55 |
|
56 |
DESCRIPTION="The Music Player Daemon (mpd)" |
57 |
HOMEPAGE="http://www.musicpd.org" |
58 |
SRC_URI="mirror://sourceforge/musicpd/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
63 |
IUSE="aac +alsa ao audiofile avahi bzip2 cdio cue +curl debug +fifo +ffmpeg flac |
64 |
fluidsynth profile +id3 ipv6 jack lame lastfmradio libmms libsamplerate +mad |
65 |
mikmod modplug musepack +network ogg oss pipe pulseaudio sid sqlite unicode |
66 |
vorbis wavpack zip" |
67 |
|
68 |
RDEPEND="!sys-cluster/mpich2 |
69 |
>=dev-libs/glib-2.4:2 |
70 |
aac? ( >=media-libs/faad2-2 ) |
71 |
alsa? ( media-sound/alsa-utils ) |
72 |
ao? ( >=media-libs/libao-0.8.4[alsa?,pulseaudio?] ) |
73 |
audiofile? ( media-libs/audiofile ) |
74 |
bzip2? ( app-arch/bzip2 ) |
75 |
cdio? ( dev-libs/libcdio ) |
76 |
cue? ( >=media-libs/libcue-0.13 ) |
77 |
curl? ( net-misc/curl ) |
78 |
ffmpeg? ( media-video/ffmpeg ) |
79 |
flac? ( media-libs/flac[ogg?] ) |
80 |
fluidsynth? ( media-sound/fluidsynth ) |
81 |
network? ( >=media-libs/libshout-2 |
82 |
!lame? ( !vorbis? ( media-libs/libvorbis ) ) ) |
83 |
id3? ( media-libs/libid3tag ) |
84 |
jack? ( media-sound/jack-audio-connection-kit ) |
85 |
lame? ( network? ( media-sound/lame ) ) |
86 |
libmms? ( >=media-libs/libmms-0.4 ) |
87 |
libsamplerate? ( media-libs/libsamplerate ) |
88 |
mad? ( media-libs/libmad ) |
89 |
mikmod? ( media-libs/libmikmod ) |
90 |
modplug? ( media-libs/libmodplug ) |
91 |
musepack? ( || ( >=media-sound/musepack-tools-444 |
92 |
media-libs/libmpcdec ) ) |
93 |
ogg? ( media-libs/libogg ) |
94 |
pulseaudio? ( media-sound/pulseaudio ) |
95 |
sid? ( >=media-libs/libsidplay-2.1.1-r2:2 ) |
96 |
sqlite? ( dev-db/sqlite:3 ) |
97 |
vorbis? ( media-libs/libvorbis ) |
98 |
wavpack? ( media-sound/wavpack ) |
99 |
avahi? ( net-dns/avahi ) |
100 |
zip? ( dev-libs/zziplib )" |
101 |
DEPEND="${RDEPEND} |
102 |
dev-util/pkgconfig" |
103 |
|
104 |
pkg_setup() { |
105 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
106 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
107 |
|
108 |
enewuser mpd "" "" "/var/lib/mpd" audio |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
113 |
epatch "${FILESDIR}"/0.15.1-mpdconf.patch |
114 |
} |
115 |
|
116 |
src_configure() { |
117 |
use profile && filter-flags -fomit-frame-pointer |
118 |
|
119 |
local mpdconf="--enable-tcp --enable-un --disable-wildmidi |
120 |
--disable-libOggFLACtest --disable-documentation" |
121 |
|
122 |
if use network; then |
123 |
mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder) |
124 |
--enable-httpd-output $(use_enable lame lame-encoder)" |
125 |
if ! use lame && ! use vorbis; then |
126 |
ewarn "At least one encoder is required, enabling vorbis for you." |
127 |
mpdconf+=" --enable-vorbis-encoder" |
128 |
fi |
129 |
else |
130 |
mpdconf+=" --disable-shout --disable-vorbis-encoder |
131 |
--disable-httpd-output --disable-lame-encoder" |
132 |
fi |
133 |
|
134 |
if use flac && use ogg; then |
135 |
mpdconf+=" --enable-oggflac" |
136 |
else |
137 |
mpdconf+=" --disable-oggflac" |
138 |
fi |
139 |
|
140 |
append-lfs-flags |
141 |
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
142 |
|
143 |
cd "${S}" |
144 |
|
145 |
econf \ |
146 |
$(use_enable ipv6) $(use_enable cue) \ |
147 |
$(use_enable sqlite) $(use_enable curl) \ |
148 |
$(use_enable lastfmradio lastfm) $(use_enable libmms mms) \ |
149 |
$(use_enable bzip2) $(use_enable zip) \ |
150 |
$(use_enable cdio iso9660) $(use_enable id3) \ |
151 |
$(use_enable audiofile) $(use_enable ffmpeg) \ |
152 |
$(use_enable flac) $(use_enable mad) \ |
153 |
$(use_enable mikmod) $(use_enable modplug) \ |
154 |
$(use_enable musepack mpc) $(use_enable vorbis) \ |
155 |
$(use_enable sid sidplay) $(use_enable fluidsynth) \ |
156 |
$(use_enable wavpack) $(use_enable libsamplerate lsr) \ |
157 |
$(use_enable alsa) $(use_enable ao) \ |
158 |
$(use_enable fifo) $(use_enable pipe pipe-output) \ |
159 |
$(use_enable jack) $(use_enable oss) \ |
160 |
$(use_enable pulseaudio pulse) $(use_enable aac) \ |
161 |
$(use_enable debug) $(use_enable profile gprof) \ |
162 |
$(use_with avahi zeroconf avahi) \ |
163 |
${mpdconf} |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
dodir /var/run/mpd |
168 |
fowners mpd:audio /var/run/mpd |
169 |
fperms 750 /var/run/mpd |
170 |
keepdir /var/run/mpd |
171 |
|
172 |
emake DESTDIR="${D}" install || die "emake install failed" |
173 |
rm -rf "${D}"/usr/share/doc/mpd |
174 |
|
175 |
dodoc AUTHORS NEWS README UPGRADING doc/mpdconf.dist |
176 |
|
177 |
insinto /etc |
178 |
newins doc/mpdconf.example mpd.conf |
179 |
|
180 |
newinitd "${FILESDIR}"/mpd.rc mpd |
181 |
|
182 |
if use unicode; then |
183 |
dosed 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
184 |
/etc/mpd.conf || die "dosed failed" |
185 |
fi |
186 |
|
187 |
diropts -m0755 -o mpd -g audio |
188 |
dodir /var/lib/mpd |
189 |
keepdir /var/lib/mpd |
190 |
dodir /var/lib/mpd/music |
191 |
keepdir /var/lib/mpd/music |
192 |
dodir /var/lib/mpd/playlists |
193 |
keepdir /var/lib/mpd/playlists |
194 |
dodir /var/log/mpd |
195 |
keepdir /var/log/mpd |
196 |
|
197 |
if use alsa; then |
198 |
dosed 's:need :need alsasound :' /etc/init.d/mpd || die "dosed failed" |
199 |
fi |
200 |
} |
201 |
|
202 |
pkg_postinst() { |
203 |
elog "If you will be starting mpd via /etc/init.d/mpd, please make" |
204 |
elog "sure that MPD's pid_file is set to /var/run/mpd/mpd.pid." |
205 |
|
206 |
# also change the homedir if the user has existed before |
207 |
usermod -d "/var/lib/mpd" mpd |
208 |
} |