Gentoo Archives: gentoo-commits

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