1 |
radhermit 14/02/05 04:14:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mpd-0.18.7.ebuild |
5 |
Log: |
6 |
Version bump (bug #499340). |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.336 media-sound/mpd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.336&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.336&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?r1=1.335&r2=1.336 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v |
20 |
retrieving revision 1.335 |
21 |
retrieving revision 1.336 |
22 |
diff -u -r1.335 -r1.336 |
23 |
--- ChangeLog 26 Dec 2013 14:57:34 -0000 1.335 |
24 |
+++ ChangeLog 5 Feb 2014 04:14:23 -0000 1.336 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-sound/mpd |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.335 2013/12/26 14:57:34 maekke Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.336 2014/02/05 04:14:23 radhermit Exp $ |
31 |
+ |
32 |
+*mpd-0.18.7 (05 Feb 2014) |
33 |
+ |
34 |
+ 05 Feb 2014; Tim Harder <radhermit@g.o> +mpd-0.18.7.ebuild: |
35 |
+ Version bump (bug #499340). |
36 |
|
37 |
26 Dec 2013; Markus Meier <maekke@g.o> mpd-0.18.5.ebuild: |
38 |
add ~arm, bug #489962 |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-sound/mpd/mpd-0.18.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.18.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.18.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mpd-0.18.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 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.18.7.ebuild,v 1.1 2014/02/05 04:14:23 radhermit Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
inherit eutils flag-o-matic linux-info multilib readme.gentoo systemd user |
55 |
|
56 |
DESCRIPTION="The Music Player Daemon (mpd)" |
57 |
HOMEPAGE="http://www.musicpd.org" |
58 |
SRC_URI="http://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sh ~x86 ~x86-fbsd ~x64-macos" |
63 |
IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug faad +fifo +ffmpeg flac |
64 |
fluidsynth gme +id3tag inotify ipv6 jack lame mms libmpdclient |
65 |
libsamplerate +mad mikmod modplug mpg123 musepack +network ogg openal opus |
66 |
oss pipe pulseaudio recorder sid sndfile soundcloud sqlite systemd tcpd |
67 |
twolame unicode vorbis wavpack wildmidi zeroconf zip" |
68 |
|
69 |
OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
70 |
DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
71 |
modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi" |
72 |
ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
73 |
|
74 |
REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} ) |
75 |
|| ( ${DECODER_PLUGINS} ) |
76 |
network? ( || ( ${ENCODER_PLUGINS} ) ) |
77 |
recorder? ( || ( ${ENCODER_PLUGINS} ) )" |
78 |
|
79 |
RDEPEND="!<sys-cluster/mpich2-1.4_rc2 |
80 |
dev-libs/glib:2 |
81 |
adplug? ( media-libs/adplug ) |
82 |
alsa? ( media-sound/alsa-utils |
83 |
media-libs/alsa-lib ) |
84 |
ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
85 |
audiofile? ( media-libs/audiofile ) |
86 |
bzip2? ( app-arch/bzip2 ) |
87 |
cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) ) |
88 |
curl? ( net-misc/curl ) |
89 |
faad? ( media-libs/faad2 ) |
90 |
ffmpeg? ( virtual/ffmpeg ) |
91 |
flac? ( media-libs/flac[ogg?] ) |
92 |
fluidsynth? ( media-sound/fluidsynth ) |
93 |
gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
94 |
id3tag? ( media-libs/libid3tag ) |
95 |
jack? ( media-sound/jack-audio-connection-kit ) |
96 |
lame? ( network? ( media-sound/lame ) ) |
97 |
libmpdclient? ( media-libs/libmpdclient ) |
98 |
libsamplerate? ( media-libs/libsamplerate ) |
99 |
mad? ( media-libs/libmad ) |
100 |
mikmod? ( media-libs/libmikmod:0 ) |
101 |
mms? ( media-libs/libmms ) |
102 |
modplug? ( media-libs/libmodplug ) |
103 |
mpg123? ( >=media-sound/mpg123-1.12.2 ) |
104 |
musepack? ( media-sound/musepack-tools ) |
105 |
network? ( >=media-libs/libshout-2 |
106 |
!lame? ( !vorbis? ( media-libs/libvorbis ) ) ) |
107 |
ogg? ( media-libs/libogg ) |
108 |
openal? ( media-libs/openal ) |
109 |
opus? ( media-libs/opus ) |
110 |
pulseaudio? ( media-sound/pulseaudio ) |
111 |
sid? ( media-libs/libsidplay:2 ) |
112 |
sndfile? ( media-libs/libsndfile ) |
113 |
soundcloud? ( >=dev-libs/yajl-2 ) |
114 |
sqlite? ( dev-db/sqlite:3 ) |
115 |
systemd? ( sys-apps/systemd ) |
116 |
tcpd? ( sys-apps/tcp-wrappers ) |
117 |
twolame? ( media-sound/twolame ) |
118 |
vorbis? ( media-libs/libvorbis ) |
119 |
wavpack? ( media-sound/wavpack ) |
120 |
wildmidi? ( media-sound/wildmidi ) |
121 |
zeroconf? ( net-dns/avahi[dbus] ) |
122 |
zip? ( dev-libs/zziplib )" |
123 |
DEPEND="${RDEPEND} |
124 |
virtual/pkgconfig" |
125 |
|
126 |
pkg_setup() { |
127 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
128 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
129 |
|
130 |
enewuser mpd "" "" "/var/lib/mpd" audio |
131 |
|
132 |
if use inotify; then |
133 |
CONFIG_CHECK="~INOTIFY_USER" |
134 |
ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
135 |
linux-info_pkg_setup |
136 |
fi |
137 |
} |
138 |
|
139 |
src_prepare() { |
140 |
DOC_CONTENTS="If you will be starting mpd via /etc/init.d/mpd, please make |
141 |
sure that MPD's pid_file is unset." |
142 |
|
143 |
cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
144 |
epatch "${FILESDIR}"/${PN}-0.16.conf.patch |
145 |
|
146 |
if has_version dev-libs/libcdio-paranoia; then |
147 |
sed -i \ |
148 |
-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \ |
149 |
src/input/CdioParanoiaInputPlugin.cxx || die |
150 |
fi |
151 |
} |
152 |
|
153 |
src_configure() { |
154 |
local mpdconf="--disable-despotify --disable-documentation --disable-roar |
155 |
--enable-largefile --enable-tcp --enable-un |
156 |
--docdir=${EPREFIX}/usr/share/doc/${PF}" |
157 |
|
158 |
if use network; then |
159 |
mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder) |
160 |
--enable-httpd-output $(use_enable lame lame-encoder) |
161 |
$(use_enable twolame twolame-encoder) |
162 |
$(use_enable audiofile wave-encoder)" |
163 |
else |
164 |
mpdconf+=" --disable-shout --disable-vorbis-encoder |
165 |
--disable-httpd-output --disable-lame-encoder |
166 |
--disable-twolame-encoder --disable-wave-encoder" |
167 |
fi |
168 |
|
169 |
append-lfs-flags |
170 |
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
171 |
|
172 |
econf \ |
173 |
$(use_enable alsa) \ |
174 |
$(use_enable ao) \ |
175 |
$(use_enable audiofile) \ |
176 |
$(use_enable bzip2) \ |
177 |
$(use_enable cdio cdio-paranoia) \ |
178 |
$(use_enable cdio iso9660) \ |
179 |
$(use_enable curl) \ |
180 |
$(use_enable debug) \ |
181 |
$(use_enable faad aac) \ |
182 |
$(use_enable ffmpeg) \ |
183 |
$(use_enable fifo) \ |
184 |
$(use_enable flac) \ |
185 |
$(use_enable fluidsynth) \ |
186 |
$(use_enable gme) \ |
187 |
$(use_enable id3tag id3) \ |
188 |
$(use_enable inotify) \ |
189 |
$(use_enable ipv6) \ |
190 |
$(use_enable jack) \ |
191 |
$(use_enable libmpdclient) \ |
192 |
$(use_enable libsamplerate lsr) \ |
193 |
$(use_enable mad) \ |
194 |
$(use_enable mikmod) \ |
195 |
$(use_enable mms) \ |
196 |
$(use_enable modplug) \ |
197 |
$(use_enable mpg123) \ |
198 |
$(use_enable musepack mpc) \ |
199 |
$(use_enable openal) \ |
200 |
$(use_enable oss) \ |
201 |
$(use_enable pipe pipe-output) \ |
202 |
$(use_enable pulseaudio pulse) \ |
203 |
$(use_enable recorder recorder-output) \ |
204 |
$(use_enable sid sidplay) \ |
205 |
$(use_enable sndfile sndfile) \ |
206 |
$(use_enable soundcloud) \ |
207 |
$(use_enable sqlite) \ |
208 |
$(use_enable systemd systemd-daemon) \ |
209 |
$(use_enable tcpd libwrap) \ |
210 |
$(use_enable vorbis) \ |
211 |
$(use_enable wavpack) \ |
212 |
$(use_enable wildmidi) \ |
213 |
$(use_enable zip zzip) \ |
214 |
$(use_with zeroconf zeroconf avahi) \ |
215 |
"$(systemd_with_unitdir)" \ |
216 |
${mpdconf} |
217 |
} |
218 |
|
219 |
src_install() { |
220 |
emake DESTDIR="${D}" install |
221 |
|
222 |
insinto /etc |
223 |
newins doc/mpdconf.dist mpd.conf |
224 |
|
225 |
newinitd "${FILESDIR}"/mpd.init mpd |
226 |
|
227 |
if use unicode; then |
228 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
229 |
"${ED}"/etc/mpd.conf || die "sed failed" |
230 |
fi |
231 |
|
232 |
insinto /etc/logrotate.d |
233 |
newins "${FILESDIR}"/${PN}.logrotate ${PN} |
234 |
|
235 |
use prefix || diropts -m0755 -o mpd -g audio |
236 |
dodir /var/lib/mpd |
237 |
keepdir /var/lib/mpd |
238 |
dodir /var/lib/mpd/music |
239 |
keepdir /var/lib/mpd/music |
240 |
dodir /var/lib/mpd/playlists |
241 |
keepdir /var/lib/mpd/playlists |
242 |
|
243 |
readme.gentoo_create_doc |
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
readme.gentoo_print_elog |
248 |
|
249 |
# also change the homedir if the user has existed before |
250 |
usermod -d "/var/lib/mpd" mpd |
251 |
} |