Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpd/
Date: Tue, 12 Dec 2017 17:30:55
Message-Id: 1513099828.fd0326dfc8ec2ce6252329d95d10e6bb607959a7.asturm@gentoo
1 commit: fd0326dfc8ec2ce6252329d95d10e6bb607959a7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 12 16:56:23 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 12 17:30:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0326df
7
8 media-sound/mpd: Drop old
9
10 Package-Manager: Portage-2.3.18, Repoman-2.3.6
11
12 media-sound/mpd/Manifest | 5 -
13 media-sound/mpd/mpd-0.19.21-r1.ebuild | 253 ---------------------------------
14 media-sound/mpd/mpd-0.19.21.ebuild | 256 ---------------------------------
15 media-sound/mpd/mpd-0.20.4.ebuild | 253 ---------------------------------
16 media-sound/mpd/mpd-0.20.6.ebuild | 260 ----------------------------------
17 media-sound/mpd/mpd-0.20.8.ebuild | 260 ----------------------------------
18 media-sound/mpd/mpd-0.20.9.ebuild | 260 ----------------------------------
19 7 files changed, 1547 deletions(-)
20
21 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
22 index c0dab950cae..0b0244c3a54 100644
23 --- a/media-sound/mpd/Manifest
24 +++ b/media-sound/mpd/Manifest
25 @@ -1,7 +1,2 @@
26 DIST mpd-0.19.19.tar.xz 707356 BLAKE2B bb9cade62cfbb64fd5f2db28e8c3ca1847efaf6b4ec818ceb935d5dff292afdbc0a59520f23e20c270bccd79e52e8e4bc9083535c438c1967dd14b0d56b995cf SHA512 949bfab2aa5dffb4089ce2023accc934648091d36768f8e4c75f62b4038e21db1e2ef3bb07a0f1cf6a91d0532cac8e7146be948d84dc4d7cdc5b252b7d815b64
27 -DIST mpd-0.19.21.tar.xz 708512 BLAKE2B dafeecc5380d99006c5e367f6e35048f7c21c0c200539cbf13e99196e5921f6c076c3a3f21af1faf8887c4133bc87cae7e604b6a3025397e49c66753c85a6583 SHA512 a65690012a74def273ffb4e87465d8f3f7f2ce6f6e9117e35aa0891cd638f904df0ef4c4923c39e9a0c3e1d93d09aab713979adf5c191b54fa7e8b5b81abd232
28 DIST mpd-0.20.10.tar.xz 778828 BLAKE2B c16b955ace770cf3d5da2ccad81fd3089cf2e60bf47774745d75babcff38fa344646b26dd32617fa2fe86ee0c785b9c8272ea6c90f77266b1a0cba2d48145236 SHA512 bac6a71e5b85600c590eae6b785474574cf0d7b03d9add537161b968a2997a975a597639a9fece119a01a7e27b5207523e4ae30b2f4f35791eff8c3ff26d107c
29 -DIST mpd-0.20.4.tar.xz 770132 BLAKE2B bb0793d11e5f353b95e3652a78d6645d25c0d3c136b2f47c4334a36bf94935743ca8808a8eb555515b7c67696dcb35ae35e79283e95fe5dd72fd6ccd3651939b SHA512 d0c01ae6a3fd59e5ccdc24225bd9bb9e63620f1a395d317573499cc045de81f2abd803ca87eb1b2ca1d26d25167aaa6f5523e96f9512619272b857190efa0a72
30 -DIST mpd-0.20.6.tar.xz 772140 BLAKE2B 93512d927165701e85fb366d75c71f89b4eed7583adffca634a74f312a21bfcba9a13efe47c0b84bef3f815180faab4ef78238d457fc063bf27f71a36c473bc3 SHA512 3377e095eaf8cd3ae14e4218fd85d1bcd79d29899ad4c61f5cd2a0b714c5e8aa22aa3b8bd54477195b93ddd44b8e82f8c6428c8f36174c98cba631554224dcfe
31 -DIST mpd-0.20.8.tar.xz 773128 BLAKE2B 0d0cdb360e9957b930716451b87b791677ddc62a85532e389a14b6b6f7eef2ac74e09743081ebfef8477579fe6137575d6da17b6ae6753d27b8ef52b1fac5644 SHA512 063feafae7137ea5b61498132b4fcc2e04e23bb9d6fa849a0c6d90c40ecc0a841617dec0f53021bfc5add559b59388d20ef211e1bc88fcaca46b5ecbf1bb8960
32 -DIST mpd-0.20.9.tar.xz 773404 BLAKE2B 679945b7fb42c55a129d5c94442bc613a5d697153a8fe0ada730d42b33477ef30bfef457cd4dbdae14d1262e449d0e39e800f8da8c843af6f028a65dda5d4d59 SHA512 3b29fed4146ca09e3b5866aeea280ca3fb412d182a940da6c1418525e251385fdb18bb58ea99754ad5ba3704a3e2033ff2ef54c392117af7c0be30b78708a2e7
33
34 diff --git a/media-sound/mpd/mpd-0.19.21-r1.ebuild b/media-sound/mpd/mpd-0.19.21-r1.ebuild
35 deleted file mode 100644
36 index 95bd8d46b86..00000000000
37 --- a/media-sound/mpd/mpd-0.19.21-r1.ebuild
38 +++ /dev/null
39 @@ -1,253 +0,0 @@
40 -# Copyright 1999-2016 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=6
44 -
45 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
46 -
47 -DESCRIPTION="The Music Player Daemon (mpd)"
48 -HOMEPAGE="https://www.musicpd.org"
49 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
50 -
51 -LICENSE="GPL-2"
52 -SLOT="0"
53 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
54 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
55 - +fifo +ffmpeg flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack
56 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
57 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
58 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
59 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
60 -
61 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
62 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
63 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
64 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
65 -
66 -REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} )
67 - || ( ${DECODER_PLUGINS} )
68 - ao? ( glib )
69 - gme? ( glib )
70 - jack? ( glib )
71 - network? ( || ( ${ENCODER_PLUGINS} )
72 - glib )
73 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
74 - sid? ( glib )
75 - soundcloud? ( glib )
76 - sqlite? ( glib )
77 - opus? ( ogg )
78 - upnp? ( expat )
79 - vorbis? ( glib )
80 - wavpack? ( glib )"
81 -
82 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
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 - expat? ( dev-libs/expat )
92 - faad? ( media-libs/faad2 )
93 - ffmpeg? (
94 - libav? ( media-video/libav:0= )
95 - !libav? ( media-video/ffmpeg:0= )
96 - )
97 - flac? ( media-libs/flac[ogg?] )
98 - fluidsynth? ( media-sound/fluidsynth )
99 - glib? ( dev-libs/glib:2 )
100 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
101 - icu? ( dev-libs/icu:= )
102 - id3tag? ( media-libs/libid3tag )
103 - jack? ( media-sound/jack-audio-connection-kit )
104 - lame? ( network? ( media-sound/lame ) )
105 - libmpdclient? ( media-libs/libmpdclient )
106 - libsamplerate? ( media-libs/libsamplerate )
107 - mad? ( media-libs/libmad )
108 - mikmod? ( media-libs/libmikmod:0 )
109 - mms? ( media-libs/libmms )
110 - modplug? ( media-libs/libmodplug )
111 - mpg123? ( >=media-sound/mpg123-1.12.2 )
112 - musepack? ( media-sound/musepack-tools )
113 - network? ( >=media-libs/libshout-2
114 - !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
115 - nfs? ( net-fs/libnfs )
116 - ogg? ( media-libs/libogg )
117 - openal? ( media-libs/openal )
118 - opus? ( media-libs/opus )
119 - pulseaudio? ( media-sound/pulseaudio )
120 - samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
121 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
122 - sndfile? ( media-libs/libsndfile )
123 - soundcloud? ( >=dev-libs/yajl-2 )
124 - libsoxr? ( media-libs/soxr )
125 - sqlite? ( dev-db/sqlite:3 )
126 - systemd? ( sys-apps/systemd )
127 - tcpd? ( sys-apps/tcp-wrappers )
128 - twolame? ( media-sound/twolame )
129 - upnp? ( net-libs/libupnp )
130 - vorbis? ( media-libs/libvorbis )
131 - wavpack? ( media-sound/wavpack )
132 - wildmidi? ( media-sound/wildmidi )
133 - zeroconf? ( net-dns/avahi[dbus] )
134 - zip? ( dev-libs/zziplib )
135 - zlib? ( sys-libs/zlib )"
136 -DEPEND="${CDEPEND}
137 - dev-libs/boost
138 - virtual/pkgconfig"
139 -RDEPEND="${CDEPEND}
140 - selinux? ( sec-policy/selinux-mpd )
141 -"
142 -
143 -PATCHES=(
144 - "${FILESDIR}"/${PN}-0.18.conf.patch
145 - "${FILESDIR}"/${PN}-0.9.15-systemd.patch # bug 584742
146 -)
147 -
148 -pkg_setup() {
149 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
150 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
151 -
152 - enewuser mpd "" "" "/var/lib/mpd" audio
153 -
154 - if use eventfd; then
155 - CONFIG_CHECK+=" ~EVENTFD"
156 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
157 - fi
158 - if use signalfd; then
159 - CONFIG_CHECK+=" ~SIGNALFD"
160 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
161 - fi
162 - if use inotify; then
163 - CONFIG_CHECK+=" ~INOTIFY_USER"
164 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
165 - fi
166 - if use eventfd || use signalfd || use inotify; then
167 - linux-info_pkg_setup
168 - fi
169 -
170 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
171 - sure that MPD's pid_file is _set_."
172 -}
173 -
174 -src_prepare() {
175 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
176 - default
177 - eautoreconf
178 -}
179 -
180 -src_configure() {
181 - local mpdconf="--enable-database --disable-roar --disable-documentation
182 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
183 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
184 - --docdir=${EPREFIX}/usr/share/doc/${PF}"
185 -
186 - if use network; then
187 - mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
188 - --enable-httpd-output $(use_enable lame lame-encoder)
189 - $(use_enable twolame twolame-encoder)
190 - $(use_enable audiofile wave-encoder)"
191 - else
192 - mpdconf+=" --disable-shout --disable-vorbis-encoder
193 - --disable-httpd-output --disable-lame-encoder
194 - --disable-twolame-encoder --disable-wave-encoder"
195 - fi
196 -
197 - if use samba || use upnp; then
198 - mpdconf+=" --enable-neighbor-plugins"
199 - fi
200 -
201 - append-lfs-flags
202 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
203 -
204 - econf \
205 - $(use_enable eventfd) \
206 - $(use_enable signalfd) \
207 - $(use_enable libmpdclient) \
208 - $(use_enable expat) \
209 - $(use_enable upnp) \
210 - $(use_enable adplug) \
211 - $(use_enable alsa) \
212 - $(use_enable ao) \
213 - $(use_enable audiofile) \
214 - $(use_enable zlib) \
215 - $(use_enable bzip2) \
216 - $(use_enable cdio cdio-paranoia) \
217 - $(use_enable curl) \
218 - $(use_enable samba smbclient) \
219 - $(use_enable nfs) \
220 - $(use_enable debug) \
221 - $(use_enable ffmpeg) \
222 - $(use_enable fifo) \
223 - $(use_enable flac) \
224 - $(use_enable fluidsynth) \
225 - $(use_enable gme) \
226 - $(use_enable id3tag id3) \
227 - $(use_enable inotify) \
228 - $(use_enable ipv6) \
229 - $(use_enable cdio iso9660) \
230 - $(use_enable jack) \
231 - $(use_enable soundcloud) \
232 - $(use_enable tcpd libwrap) \
233 - $(use_enable libsamplerate lsr) \
234 - $(use_enable libsoxr soxr) \
235 - $(use_enable mad) \
236 - $(use_enable mikmod) \
237 - $(use_enable mms) \
238 - $(use_enable modplug) \
239 - $(use_enable musepack mpc) \
240 - $(use_enable mpg123) \
241 - $(use_enable openal) \
242 - $(use_enable opus) \
243 - $(use_enable oss) \
244 - $(use_enable pipe pipe-output) \
245 - $(use_enable pulseaudio pulse) \
246 - $(use_enable recorder recorder-output) \
247 - $(use_enable sid sidplay) \
248 - $(use_enable sndfile sndfile) \
249 - $(use_enable sqlite) \
250 - $(use_enable systemd) \
251 - $(use_enable vorbis) \
252 - $(use_enable wavpack) \
253 - $(use_enable wildmidi) \
254 - $(use_enable zip zzip) \
255 - $(use_enable icu) \
256 - $(use_enable glib) \
257 - $(use_enable faad aac) \
258 - $(use_with zeroconf zeroconf avahi) \
259 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
260 - --with-systemduserunitdir=$(systemd_get_userunitdir) \
261 - ${mpdconf}
262 -}
263 -
264 -src_install() {
265 - emake DESTDIR="${D}" install
266 -
267 - insinto /etc
268 - newins doc/mpdconf.dist mpd.conf
269 -
270 - newinitd "${FILESDIR}"/${PN}2.init ${PN}
271 -
272 - if use unicode; then
273 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
274 - "${ED}"/etc/mpd.conf || die "sed failed"
275 - fi
276 -
277 - insinto /etc/logrotate.d
278 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
279 -
280 - use prefix || diropts -m0755 -o mpd -g audio
281 - dodir /var/lib/mpd
282 - keepdir /var/lib/mpd
283 - dodir /var/lib/mpd/music
284 - keepdir /var/lib/mpd/music
285 - dodir /var/lib/mpd/playlists
286 - keepdir /var/lib/mpd/playlists
287 -}
288 -
289 -pkg_postinst() {
290 - # also change the homedir if the user has existed before
291 - usermod -d "/var/lib/mpd" mpd
292 -}
293
294 diff --git a/media-sound/mpd/mpd-0.19.21.ebuild b/media-sound/mpd/mpd-0.19.21.ebuild
295 deleted file mode 100644
296 index 0d1a80bd0ea..00000000000
297 --- a/media-sound/mpd/mpd-0.19.21.ebuild
298 +++ /dev/null
299 @@ -1,256 +0,0 @@
300 -# Copyright 1999-2016 Gentoo Foundation
301 -# Distributed under the terms of the GNU General Public License v2
302 -
303 -EAPI=6
304 -
305 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
306 -
307 -DESCRIPTION="The Music Player Daemon (mpd)"
308 -HOMEPAGE="https://www.musicpd.org"
309 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
310 -
311 -LICENSE="GPL-2"
312 -SLOT="0"
313 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
314 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
315 - +fifo +ffmpeg flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack
316 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
317 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
318 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
319 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
320 -
321 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
322 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
323 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
324 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
325 -
326 -REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} )
327 - || ( ${DECODER_PLUGINS} )
328 - ao? ( glib )
329 - gme? ( glib )
330 - jack? ( glib )
331 - network? ( || ( ${ENCODER_PLUGINS} )
332 - glib )
333 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
334 - sid? ( glib )
335 - soundcloud? ( glib )
336 - sqlite? ( glib )
337 - opus? ( ogg )
338 - upnp? ( expat )
339 - vorbis? ( glib )
340 - wavpack? ( glib )"
341 -
342 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
343 - adplug? ( media-libs/adplug )
344 - alsa? ( media-sound/alsa-utils
345 - media-libs/alsa-lib )
346 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
347 - audiofile? ( media-libs/audiofile )
348 - bzip2? ( app-arch/bzip2 )
349 - cdio? ( dev-libs/libcdio-paranoia )
350 - curl? ( net-misc/curl )
351 - expat? ( dev-libs/expat )
352 - faad? ( media-libs/faad2 )
353 - ffmpeg? (
354 - libav? ( media-video/libav:0= )
355 - !libav? ( media-video/ffmpeg:0= )
356 - )
357 - flac? ( media-libs/flac[ogg?] )
358 - fluidsynth? ( media-sound/fluidsynth )
359 - glib? ( dev-libs/glib:2 )
360 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
361 - icu? ( dev-libs/icu:= )
362 - id3tag? ( media-libs/libid3tag )
363 - jack? ( media-sound/jack-audio-connection-kit )
364 - lame? ( network? ( media-sound/lame ) )
365 - libmpdclient? ( media-libs/libmpdclient )
366 - libsamplerate? ( media-libs/libsamplerate )
367 - mad? ( media-libs/libmad )
368 - mikmod? ( media-libs/libmikmod:0 )
369 - mms? ( media-libs/libmms )
370 - modplug? ( media-libs/libmodplug )
371 - mpg123? ( >=media-sound/mpg123-1.12.2 )
372 - musepack? ( media-sound/musepack-tools )
373 - network? ( >=media-libs/libshout-2
374 - !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
375 - nfs? ( net-fs/libnfs )
376 - ogg? ( media-libs/libogg )
377 - openal? ( media-libs/openal )
378 - opus? ( media-libs/opus )
379 - pulseaudio? ( media-sound/pulseaudio )
380 - samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
381 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
382 - sndfile? ( media-libs/libsndfile )
383 - soundcloud? ( >=dev-libs/yajl-2 )
384 - libsoxr? ( media-libs/soxr )
385 - sqlite? ( dev-db/sqlite:3 )
386 - systemd? ( sys-apps/systemd )
387 - tcpd? ( sys-apps/tcp-wrappers )
388 - twolame? ( media-sound/twolame )
389 - upnp? ( net-libs/libupnp )
390 - vorbis? ( media-libs/libvorbis )
391 - wavpack? ( media-sound/wavpack )
392 - wildmidi? ( media-sound/wildmidi )
393 - zeroconf? ( net-dns/avahi[dbus] )
394 - zip? ( dev-libs/zziplib )
395 - zlib? ( sys-libs/zlib )"
396 -DEPEND="${CDEPEND}
397 - dev-libs/boost
398 - virtual/pkgconfig"
399 -RDEPEND="${CDEPEND}
400 - selinux? ( sec-policy/selinux-mpd )
401 -"
402 -
403 -PATCHES=(
404 - "${FILESDIR}"/${PN}-0.18.conf.patch
405 - "${FILESDIR}"/${PN}-0.9.15-systemd.patch # bug 584742
406 -)
407 -
408 -pkg_setup() {
409 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
410 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
411 -
412 - enewuser mpd "" "" "/var/lib/mpd" audio
413 -
414 - if use eventfd; then
415 - CONFIG_CHECK+=" ~EVENTFD"
416 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
417 - fi
418 - if use signalfd; then
419 - CONFIG_CHECK+=" ~SIGNALFD"
420 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
421 - fi
422 - if use inotify; then
423 - CONFIG_CHECK+=" ~INOTIFY_USER"
424 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
425 - fi
426 - if use eventfd || use signalfd || use inotify; then
427 - linux-info_pkg_setup
428 - fi
429 -
430 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
431 - sure that MPD's pid_file is _set_."
432 -}
433 -
434 -src_prepare() {
435 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
436 - default
437 - eautoreconf
438 -}
439 -
440 -src_configure() {
441 - local mpdconf="--enable-database --disable-roar --disable-documentation
442 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
443 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
444 - --docdir=${EPREFIX}/usr/share/doc/${PF}"
445 -
446 - if use network; then
447 - mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
448 - --enable-httpd-output $(use_enable lame lame-encoder)
449 - $(use_enable twolame twolame-encoder)
450 - $(use_enable audiofile wave-encoder)"
451 - else
452 - mpdconf+=" --disable-shout --disable-vorbis-encoder
453 - --disable-httpd-output --disable-lame-encoder
454 - --disable-twolame-encoder --disable-wave-encoder"
455 - fi
456 -
457 - if use samba || use upnp; then
458 - mpdconf+=" --enable-neighbor-plugins"
459 - fi
460 -
461 - append-lfs-flags
462 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
463 -
464 - econf \
465 - $(use_enable eventfd) \
466 - $(use_enable signalfd) \
467 - $(use_enable libmpdclient) \
468 - $(use_enable expat) \
469 - $(use_enable upnp) \
470 - $(use_enable adplug) \
471 - $(use_enable alsa) \
472 - $(use_enable ao) \
473 - $(use_enable audiofile) \
474 - $(use_enable zlib) \
475 - $(use_enable bzip2) \
476 - $(use_enable cdio cdio-paranoia) \
477 - $(use_enable curl) \
478 - $(use_enable samba smbclient) \
479 - $(use_enable nfs) \
480 - $(use_enable debug) \
481 - $(use_enable ffmpeg) \
482 - $(use_enable fifo) \
483 - $(use_enable flac) \
484 - $(use_enable fluidsynth) \
485 - $(use_enable gme) \
486 - $(use_enable id3tag id3) \
487 - $(use_enable inotify) \
488 - $(use_enable ipv6) \
489 - $(use_enable cdio iso9660) \
490 - $(use_enable jack) \
491 - $(use_enable soundcloud) \
492 - $(use_enable tcpd libwrap) \
493 - $(use_enable libsamplerate lsr) \
494 - $(use_enable libsoxr soxr) \
495 - $(use_enable mad) \
496 - $(use_enable mikmod) \
497 - $(use_enable mms) \
498 - $(use_enable modplug) \
499 - $(use_enable musepack mpc) \
500 - $(use_enable mpg123) \
501 - $(use_enable openal) \
502 - $(use_enable opus) \
503 - $(use_enable oss) \
504 - $(use_enable pipe pipe-output) \
505 - $(use_enable pulseaudio pulse) \
506 - $(use_enable recorder recorder-output) \
507 - $(use_enable sid sidplay) \
508 - $(use_enable sndfile sndfile) \
509 - $(use_enable sqlite) \
510 - $(use_enable systemd) \
511 - $(use_enable vorbis) \
512 - $(use_enable wavpack) \
513 - $(use_enable wildmidi) \
514 - $(use_enable zip zzip) \
515 - $(use_enable icu) \
516 - $(use_enable glib) \
517 - $(use_enable faad aac) \
518 - $(use_with zeroconf zeroconf avahi) \
519 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
520 - ${mpdconf}
521 -}
522 -
523 -src_install() {
524 - emake DESTDIR="${D}" install
525 -
526 - insinto /etc
527 - newins doc/mpdconf.dist mpd.conf
528 -
529 - newinitd "${FILESDIR}"/${PN}2.init ${PN}
530 -
531 - systemd_newuserunit systemd/system/${PN}.service ${PN}.service
532 - sed -i '/WantedBy=/c WantedBy=default.target' \
533 - "${ED}"/usr/lib/systemd/user/mpd.service || die "sed failed"
534 -
535 - if use unicode; then
536 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
537 - "${ED}"/etc/mpd.conf || die "sed failed"
538 - fi
539 -
540 - insinto /etc/logrotate.d
541 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
542 -
543 - use prefix || diropts -m0755 -o mpd -g audio
544 - dodir /var/lib/mpd
545 - keepdir /var/lib/mpd
546 - dodir /var/lib/mpd/music
547 - keepdir /var/lib/mpd/music
548 - dodir /var/lib/mpd/playlists
549 - keepdir /var/lib/mpd/playlists
550 -}
551 -
552 -pkg_postinst() {
553 - # also change the homedir if the user has existed before
554 - usermod -d "/var/lib/mpd" mpd
555 -}
556
557 diff --git a/media-sound/mpd/mpd-0.20.4.ebuild b/media-sound/mpd/mpd-0.20.4.ebuild
558 deleted file mode 100644
559 index 3cb6b50f5ac..00000000000
560 --- a/media-sound/mpd/mpd-0.20.4.ebuild
561 +++ /dev/null
562 @@ -1,253 +0,0 @@
563 -# Copyright 1999-2017 Gentoo Foundation
564 -# Distributed under the terms of the GNU General Public License v2
565 -
566 -EAPI=6
567 -
568 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
569 -
570 -DESCRIPTION="The Music Player Daemon (mpd)"
571 -HOMEPAGE="https://www.musicpd.org"
572 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
573 -
574 -LICENSE="GPL-2"
575 -SLOT="0"
576 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
577 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
578 - +fifo +ffmpeg flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack
579 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
580 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
581 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
582 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
583 -
584 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
585 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
586 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
587 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
588 -
589 -REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} )
590 - || ( ${DECODER_PLUGINS} )
591 - ao? ( glib )
592 - gme? ( glib )
593 - jack? ( glib )
594 - network? ( || ( ${ENCODER_PLUGINS} )
595 - glib )
596 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
597 - sid? ( glib )
598 - soundcloud? ( glib )
599 - sqlite? ( glib )
600 - opus? ( ogg )
601 - upnp? ( expat )
602 - vorbis? ( glib )
603 - wavpack? ( glib )"
604 -
605 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
606 - adplug? ( media-libs/adplug )
607 - alsa? ( media-sound/alsa-utils
608 - media-libs/alsa-lib )
609 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
610 - audiofile? ( media-libs/audiofile )
611 - bzip2? ( app-arch/bzip2 )
612 - cdio? ( dev-libs/libcdio-paranoia )
613 - curl? ( net-misc/curl )
614 - expat? ( dev-libs/expat )
615 - faad? ( media-libs/faad2 )
616 - ffmpeg? (
617 - libav? ( media-video/libav:0= )
618 - !libav? ( media-video/ffmpeg:0= )
619 - )
620 - flac? ( media-libs/flac[ogg?] )
621 - fluidsynth? ( media-sound/fluidsynth )
622 - glib? ( dev-libs/glib:2 )
623 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
624 - icu? ( dev-libs/icu:= )
625 - id3tag? ( media-libs/libid3tag )
626 - jack? ( media-sound/jack-audio-connection-kit )
627 - lame? ( network? ( media-sound/lame ) )
628 - libmpdclient? ( media-libs/libmpdclient )
629 - libsamplerate? ( media-libs/libsamplerate )
630 - mad? ( media-libs/libmad )
631 - mikmod? ( media-libs/libmikmod:0 )
632 - mms? ( media-libs/libmms )
633 - modplug? ( media-libs/libmodplug )
634 - mpg123? ( >=media-sound/mpg123-1.12.2 )
635 - musepack? ( media-sound/musepack-tools )
636 - network? ( >=media-libs/libshout-2
637 - !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
638 - nfs? ( net-fs/libnfs )
639 - ogg? ( media-libs/libogg )
640 - openal? ( media-libs/openal )
641 - opus? ( media-libs/opus )
642 - pulseaudio? ( media-sound/pulseaudio )
643 - samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
644 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
645 - sndfile? ( media-libs/libsndfile )
646 - soundcloud? ( >=dev-libs/yajl-2 )
647 - libsoxr? ( media-libs/soxr )
648 - sqlite? ( dev-db/sqlite:3 )
649 - systemd? ( sys-apps/systemd )
650 - tcpd? ( sys-apps/tcp-wrappers )
651 - twolame? ( media-sound/twolame )
652 - upnp? ( net-libs/libupnp )
653 - vorbis? ( media-libs/libvorbis )
654 - wavpack? ( media-sound/wavpack )
655 - wildmidi? ( media-sound/wildmidi )
656 - zeroconf? ( net-dns/avahi[dbus] )
657 - zip? ( dev-libs/zziplib )
658 - zlib? ( sys-libs/zlib )"
659 -DEPEND="${CDEPEND}
660 - dev-libs/boost
661 - virtual/pkgconfig"
662 -RDEPEND="${CDEPEND}
663 - selinux? ( sec-policy/selinux-mpd )
664 -"
665 -
666 -PATCHES=(
667 - "${FILESDIR}"/${PN}-0.18.conf.patch
668 - #"${FILESDIR}"/${PN}-0.9.15-systemd.patch # bug 584742, merged upstream
669 -)
670 -
671 -pkg_setup() {
672 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
673 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
674 -
675 - enewuser mpd "" "" "/var/lib/mpd" audio
676 -
677 - if use eventfd; then
678 - CONFIG_CHECK+=" ~EVENTFD"
679 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
680 - fi
681 - if use signalfd; then
682 - CONFIG_CHECK+=" ~SIGNALFD"
683 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
684 - fi
685 - if use inotify; then
686 - CONFIG_CHECK+=" ~INOTIFY_USER"
687 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
688 - fi
689 - if use eventfd || use signalfd || use inotify; then
690 - linux-info_pkg_setup
691 - fi
692 -
693 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
694 - sure that MPD's pid_file is _set_."
695 -}
696 -
697 -src_prepare() {
698 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
699 - default
700 - eautoreconf
701 -}
702 -
703 -src_configure() {
704 - local mpdconf="--enable-database --disable-roar --disable-documentation
705 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
706 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
707 - --docdir=${EPREFIX}/usr/share/doc/${PF}"
708 -
709 - if use network; then
710 - mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
711 - --enable-httpd-output $(use_enable lame lame-encoder)
712 - $(use_enable twolame twolame-encoder)
713 - $(use_enable audiofile wave-encoder)"
714 - else
715 - mpdconf+=" --disable-shout --disable-vorbis-encoder
716 - --disable-httpd-output --disable-lame-encoder
717 - --disable-twolame-encoder --disable-wave-encoder"
718 - fi
719 -
720 - if use samba || use upnp; then
721 - mpdconf+=" --enable-neighbor-plugins"
722 - fi
723 -
724 - append-lfs-flags
725 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
726 -
727 - econf \
728 - $(use_enable eventfd) \
729 - $(use_enable signalfd) \
730 - $(use_enable libmpdclient) \
731 - $(use_enable expat) \
732 - $(use_enable upnp) \
733 - $(use_enable adplug) \
734 - $(use_enable alsa) \
735 - $(use_enable ao) \
736 - $(use_enable audiofile) \
737 - $(use_enable zlib) \
738 - $(use_enable bzip2) \
739 - $(use_enable cdio cdio-paranoia) \
740 - $(use_enable curl) \
741 - $(use_enable samba smbclient) \
742 - $(use_enable nfs) \
743 - $(use_enable debug) \
744 - $(use_enable ffmpeg) \
745 - $(use_enable fifo) \
746 - $(use_enable flac) \
747 - $(use_enable fluidsynth) \
748 - $(use_enable gme) \
749 - $(use_enable id3tag id3) \
750 - $(use_enable inotify) \
751 - $(use_enable ipv6) \
752 - $(use_enable cdio iso9660) \
753 - $(use_enable jack) \
754 - $(use_enable soundcloud) \
755 - $(use_enable tcpd libwrap) \
756 - $(use_enable libsamplerate lsr) \
757 - $(use_enable libsoxr soxr) \
758 - $(use_enable mad) \
759 - $(use_enable mikmod) \
760 - $(use_enable mms) \
761 - $(use_enable modplug) \
762 - $(use_enable musepack mpc) \
763 - $(use_enable mpg123) \
764 - $(use_enable openal) \
765 - $(use_enable opus) \
766 - $(use_enable oss) \
767 - $(use_enable pipe pipe-output) \
768 - $(use_enable pulseaudio pulse) \
769 - $(use_enable recorder recorder-output) \
770 - $(use_enable sid sidplay) \
771 - $(use_enable sndfile sndfile) \
772 - $(use_enable sqlite) \
773 - $(use_enable systemd) \
774 - $(use_enable vorbis) \
775 - $(use_enable wavpack) \
776 - $(use_enable wildmidi) \
777 - $(use_enable zip zzip) \
778 - $(use_enable icu) \
779 - $(use_enable glib) \
780 - $(use_enable faad aac) \
781 - $(use_with zeroconf zeroconf avahi) \
782 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
783 - --with-systemduserunitdir=$(systemd_get_userunitdir) \
784 - ${mpdconf}
785 -}
786 -
787 -src_install() {
788 - emake DESTDIR="${D}" install
789 -
790 - insinto /etc
791 - newins doc/mpdconf.dist mpd.conf
792 -
793 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
794 -
795 - if use unicode; then
796 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
797 - "${ED}"/etc/mpd.conf || die "sed failed"
798 - fi
799 -
800 - insinto /etc/logrotate.d
801 - newins "${FILESDIR}"/${PN}-0.20.4.logrotate ${PN}
802 -
803 - use prefix || diropts -m0755 -o mpd -g audio
804 - dodir /var/lib/mpd
805 - keepdir /var/lib/mpd
806 - dodir /var/lib/mpd/music
807 - keepdir /var/lib/mpd/music
808 - dodir /var/lib/mpd/playlists
809 - keepdir /var/lib/mpd/playlists
810 -}
811 -
812 -pkg_postinst() {
813 - # also change the homedir if the user has existed before
814 - usermod -d "/var/lib/mpd" mpd
815 -}
816
817 diff --git a/media-sound/mpd/mpd-0.20.6.ebuild b/media-sound/mpd/mpd-0.20.6.ebuild
818 deleted file mode 100644
819 index a608f71a691..00000000000
820 --- a/media-sound/mpd/mpd-0.20.6.ebuild
821 +++ /dev/null
822 @@ -1,260 +0,0 @@
823 -# Copyright 1999-2017 Gentoo Foundation
824 -# Distributed under the terms of the GNU General Public License v2
825 -
826 -EAPI=6
827 -
828 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
829 -
830 -DESCRIPTION="The Music Player Daemon (mpd)"
831 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
832 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
833 -
834 -LICENSE="GPL-2"
835 -SLOT="0"
836 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
837 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
838 - +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack
839 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
840 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
841 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
842 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
843 -
844 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
845 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
846 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
847 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
848 -
849 -REQUIRED_USE="
850 - || ( ${OUTPUT_PLUGINS} )
851 - || ( ${DECODER_PLUGINS} )
852 - network? ( || ( ${ENCODER_PLUGINS} ) )
853 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
854 - opus? ( ogg )
855 - upnp? ( expat )
856 -"
857 -
858 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
859 - adplug? ( media-libs/adplug )
860 - alsa? (
861 - media-sound/alsa-utils
862 - media-libs/alsa-lib
863 - )
864 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
865 - audiofile? ( media-libs/audiofile )
866 - bzip2? ( app-arch/bzip2 )
867 - cdio? ( dev-libs/libcdio-paranoia )
868 - curl? ( net-misc/curl )
869 - expat? ( dev-libs/expat )
870 - faad? ( media-libs/faad2 )
871 - ffmpeg? (
872 - libav? ( media-video/libav:0= )
873 - !libav? ( media-video/ffmpeg:0= )
874 - )
875 - flac? ( media-libs/flac[ogg?] )
876 - fluidsynth? ( media-sound/fluidsynth )
877 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
878 - icu? ( dev-libs/icu:= )
879 - id3tag? ( media-libs/libid3tag )
880 - jack? ( virtual/jack )
881 - lame? ( network? ( media-sound/lame ) )
882 - libmpdclient? ( media-libs/libmpdclient )
883 - libsamplerate? ( media-libs/libsamplerate )
884 - mad? ( media-libs/libmad )
885 - mikmod? ( media-libs/libmikmod:0 )
886 - mms? ( media-libs/libmms )
887 - modplug? ( media-libs/libmodplug )
888 - mpg123? ( >=media-sound/mpg123-1.12.2 )
889 - musepack? ( media-sound/musepack-tools )
890 - network? (
891 - >=media-libs/libshout-2
892 - !lame? ( !vorbis? ( media-libs/libvorbis ) )
893 - )
894 - nfs? ( net-fs/libnfs )
895 - ogg? ( media-libs/libogg )
896 - openal? ( media-libs/openal )
897 - opus? ( media-libs/opus )
898 - pulseaudio? ( media-sound/pulseaudio )
899 - samba? ( >=net-fs/samba-4.0.25 )
900 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
901 - sndfile? ( media-libs/libsndfile )
902 - soundcloud? ( >=dev-libs/yajl-2:= )
903 - libsoxr? ( media-libs/soxr )
904 - sqlite? ( dev-db/sqlite:3 )
905 - systemd? ( sys-apps/systemd )
906 - tcpd? ( sys-apps/tcp-wrappers )
907 - twolame? ( media-sound/twolame )
908 - upnp? ( net-libs/libupnp )
909 - vorbis? ( media-libs/libvorbis )
910 - wavpack? ( media-sound/wavpack )
911 - wildmidi? ( media-sound/wildmidi )
912 - zeroconf? ( net-dns/avahi[dbus] )
913 - zip? ( dev-libs/zziplib )
914 - zlib? ( sys-libs/zlib )"
915 -DEPEND="${CDEPEND}
916 - dev-libs/boost
917 - virtual/pkgconfig"
918 -RDEPEND="${CDEPEND}
919 - selinux? ( sec-policy/selinux-mpd )
920 -"
921 -
922 -PATCHES=(
923 - "${FILESDIR}"/${PN}-0.18.conf.patch
924 -)
925 -
926 -pkg_setup() {
927 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
928 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
929 -
930 - enewuser mpd "" "" "/var/lib/mpd" audio
931 -
932 - if use eventfd; then
933 - CONFIG_CHECK+=" ~EVENTFD"
934 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
935 - fi
936 - if use signalfd; then
937 - CONFIG_CHECK+=" ~SIGNALFD"
938 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
939 - fi
940 - if use inotify; then
941 - CONFIG_CHECK+=" ~INOTIFY_USER"
942 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
943 - fi
944 - if use eventfd || use signalfd || use inotify; then
945 - linux-info_pkg_setup
946 - fi
947 -
948 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
949 - sure that MPD's pid_file is _set_."
950 -}
951 -
952 -src_prepare() {
953 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
954 - default
955 - eautoreconf
956 -}
957 -
958 -src_configure() {
959 - local myeconfargs=(
960 - --enable-database --disable-roar --disable-documentation
961 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
962 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
963 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
964 - )
965 -
966 - if use network; then
967 - myeconfargs+=(
968 - --enable-shout
969 - $(use_enable vorbis vorbis-encoder)
970 - --enable-httpd-output
971 - $(use_enable lame lame-encoder)
972 - $(use_enable twolame twolame-encoder)
973 - $(use_enable audiofile wave-encoder)
974 - )
975 - else
976 - myeconfargs+=(
977 - --disable-shout
978 - --disable-vorbis-encoder
979 - --disable-httpd-output
980 - --disable-lame-encoder
981 - --disable-twolame-encoder
982 - --disable-wave-encoder
983 - )
984 - fi
985 -
986 - if use samba || use upnp; then
987 - myeconfargs+=( --enable-neighbor-plugins )
988 - fi
989 -
990 - append-lfs-flags
991 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
992 -
993 - myeconfargs+=(
994 - $(use_enable eventfd)
995 - $(use_enable signalfd)
996 - $(use_enable libmpdclient)
997 - $(use_enable expat)
998 - $(use_enable upnp)
999 - $(use_enable adplug)
1000 - $(use_enable alsa)
1001 - $(use_enable ao)
1002 - $(use_enable audiofile)
1003 - $(use_enable zlib)
1004 - $(use_enable bzip2)
1005 - $(use_enable cdio cdio-paranoia)
1006 - $(use_enable curl)
1007 - $(use_enable samba smbclient)
1008 - $(use_enable nfs)
1009 - $(use_enable debug)
1010 - $(use_enable ffmpeg)
1011 - $(use_enable fifo)
1012 - $(use_enable flac)
1013 - $(use_enable fluidsynth)
1014 - $(use_enable gme)
1015 - $(use_enable id3tag id3)
1016 - $(use_enable inotify)
1017 - $(use_enable ipv6)
1018 - $(use_enable cdio iso9660)
1019 - $(use_enable jack)
1020 - $(use_enable soundcloud)
1021 - $(use_enable tcpd libwrap)
1022 - $(use_enable libsamplerate lsr)
1023 - $(use_enable libsoxr soxr)
1024 - $(use_enable mad)
1025 - $(use_enable mikmod)
1026 - $(use_enable mms)
1027 - $(use_enable modplug)
1028 - $(use_enable musepack mpc)
1029 - $(use_enable mpg123)
1030 - $(use_enable openal)
1031 - $(use_enable opus)
1032 - $(use_enable oss)
1033 - $(use_enable pipe pipe-output)
1034 - $(use_enable pulseaudio pulse)
1035 - $(use_enable recorder recorder-output)
1036 - $(use_enable sid sidplay)
1037 - $(use_enable sndfile sndfile)
1038 - $(use_enable sqlite)
1039 - $(use_enable systemd systemd_daemon)
1040 - $(use_enable vorbis)
1041 - $(use_enable wavpack)
1042 - $(use_enable wildmidi)
1043 - $(use_enable zip zzip)
1044 - $(use_enable icu)
1045 - $(use_enable faad aac)
1046 - $(use_with zeroconf zeroconf avahi)
1047 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
1048 - --with-systemduserunitdir=$(systemd_get_userunitdir)
1049 - )
1050 -
1051 - econf "${myeconfargs[@]}"
1052 -}
1053 -
1054 -src_install() {
1055 - emake DESTDIR="${D}" install
1056 -
1057 - insinto /etc
1058 - newins doc/mpdconf.dist mpd.conf
1059 -
1060 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
1061 -
1062 - if use unicode; then
1063 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
1064 - "${ED}"/etc/mpd.conf || die "sed failed"
1065 - fi
1066 -
1067 - insinto /etc/logrotate.d
1068 - newins "${FILESDIR}"/${PN}-0.20.4.logrotate ${PN}
1069 -
1070 - use prefix || diropts -m0755 -o mpd -g audio
1071 - dodir /var/lib/mpd
1072 - keepdir /var/lib/mpd
1073 - dodir /var/lib/mpd/music
1074 - keepdir /var/lib/mpd/music
1075 - dodir /var/lib/mpd/playlists
1076 - keepdir /var/lib/mpd/playlists
1077 -}
1078 -
1079 -pkg_postinst() {
1080 - # also change the homedir if the user has existed before
1081 - usermod -d "/var/lib/mpd" mpd
1082 -}
1083
1084 diff --git a/media-sound/mpd/mpd-0.20.8.ebuild b/media-sound/mpd/mpd-0.20.8.ebuild
1085 deleted file mode 100644
1086 index 0b190a1feb8..00000000000
1087 --- a/media-sound/mpd/mpd-0.20.8.ebuild
1088 +++ /dev/null
1089 @@ -1,260 +0,0 @@
1090 -# Copyright 1999-2017 Gentoo Foundation
1091 -# Distributed under the terms of the GNU General Public License v2
1092 -
1093 -EAPI=6
1094 -
1095 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
1096 -
1097 -DESCRIPTION="The Music Player Daemon (mpd)"
1098 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
1099 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
1100 -
1101 -LICENSE="GPL-2"
1102 -SLOT="0"
1103 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
1104 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
1105 - +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack
1106 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
1107 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
1108 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
1109 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
1110 -
1111 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
1112 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
1113 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
1114 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
1115 -
1116 -REQUIRED_USE="
1117 - || ( ${OUTPUT_PLUGINS} )
1118 - || ( ${DECODER_PLUGINS} )
1119 - network? ( || ( ${ENCODER_PLUGINS} ) )
1120 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
1121 - opus? ( ogg )
1122 - upnp? ( expat )
1123 -"
1124 -
1125 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
1126 - adplug? ( media-libs/adplug )
1127 - alsa? (
1128 - media-sound/alsa-utils
1129 - media-libs/alsa-lib
1130 - )
1131 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
1132 - audiofile? ( media-libs/audiofile )
1133 - bzip2? ( app-arch/bzip2 )
1134 - cdio? ( dev-libs/libcdio-paranoia )
1135 - curl? ( net-misc/curl )
1136 - expat? ( dev-libs/expat )
1137 - faad? ( media-libs/faad2 )
1138 - ffmpeg? (
1139 - libav? ( media-video/libav:0= )
1140 - !libav? ( media-video/ffmpeg:0= )
1141 - )
1142 - flac? ( media-libs/flac[ogg?] )
1143 - fluidsynth? ( media-sound/fluidsynth )
1144 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
1145 - icu? ( dev-libs/icu:= )
1146 - id3tag? ( media-libs/libid3tag )
1147 - jack? ( virtual/jack )
1148 - lame? ( network? ( media-sound/lame ) )
1149 - libmpdclient? ( media-libs/libmpdclient )
1150 - libsamplerate? ( media-libs/libsamplerate )
1151 - mad? ( media-libs/libmad )
1152 - mikmod? ( media-libs/libmikmod:0 )
1153 - mms? ( media-libs/libmms )
1154 - modplug? ( media-libs/libmodplug )
1155 - mpg123? ( >=media-sound/mpg123-1.12.2 )
1156 - musepack? ( media-sound/musepack-tools )
1157 - network? (
1158 - >=media-libs/libshout-2
1159 - !lame? ( !vorbis? ( media-libs/libvorbis ) )
1160 - )
1161 - nfs? ( net-fs/libnfs )
1162 - ogg? ( media-libs/libogg )
1163 - openal? ( media-libs/openal )
1164 - opus? ( media-libs/opus )
1165 - pulseaudio? ( media-sound/pulseaudio )
1166 - samba? ( >=net-fs/samba-4.0.25 )
1167 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
1168 - sndfile? ( media-libs/libsndfile )
1169 - soundcloud? ( >=dev-libs/yajl-2:= )
1170 - libsoxr? ( media-libs/soxr )
1171 - sqlite? ( dev-db/sqlite:3 )
1172 - systemd? ( sys-apps/systemd )
1173 - tcpd? ( sys-apps/tcp-wrappers )
1174 - twolame? ( media-sound/twolame )
1175 - upnp? ( net-libs/libupnp:= )
1176 - vorbis? ( media-libs/libvorbis )
1177 - wavpack? ( media-sound/wavpack )
1178 - wildmidi? ( media-sound/wildmidi )
1179 - zeroconf? ( net-dns/avahi[dbus] )
1180 - zip? ( dev-libs/zziplib )
1181 - zlib? ( sys-libs/zlib )"
1182 -DEPEND="${CDEPEND}
1183 - dev-libs/boost
1184 - virtual/pkgconfig"
1185 -RDEPEND="${CDEPEND}
1186 - selinux? ( sec-policy/selinux-mpd )
1187 -"
1188 -
1189 -PATCHES=(
1190 - "${FILESDIR}"/${PN}-0.18.conf.patch
1191 -)
1192 -
1193 -pkg_setup() {
1194 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
1195 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
1196 -
1197 - enewuser mpd "" "" "/var/lib/mpd" audio
1198 -
1199 - if use eventfd; then
1200 - CONFIG_CHECK+=" ~EVENTFD"
1201 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
1202 - fi
1203 - if use signalfd; then
1204 - CONFIG_CHECK+=" ~SIGNALFD"
1205 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
1206 - fi
1207 - if use inotify; then
1208 - CONFIG_CHECK+=" ~INOTIFY_USER"
1209 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
1210 - fi
1211 - if use eventfd || use signalfd || use inotify; then
1212 - linux-info_pkg_setup
1213 - fi
1214 -
1215 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
1216 - sure that MPD's pid_file is _set_."
1217 -}
1218 -
1219 -src_prepare() {
1220 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
1221 - default
1222 - eautoreconf
1223 -}
1224 -
1225 -src_configure() {
1226 - local myeconfargs=(
1227 - --enable-database --disable-roar --disable-documentation
1228 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
1229 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
1230 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
1231 - )
1232 -
1233 - if use network; then
1234 - myeconfargs+=(
1235 - --enable-shout
1236 - $(use_enable vorbis vorbis-encoder)
1237 - --enable-httpd-output
1238 - $(use_enable lame lame-encoder)
1239 - $(use_enable twolame twolame-encoder)
1240 - $(use_enable audiofile wave-encoder)
1241 - )
1242 - else
1243 - myeconfargs+=(
1244 - --disable-shout
1245 - --disable-vorbis-encoder
1246 - --disable-httpd-output
1247 - --disable-lame-encoder
1248 - --disable-twolame-encoder
1249 - --disable-wave-encoder
1250 - )
1251 - fi
1252 -
1253 - if use samba || use upnp; then
1254 - myeconfargs+=( --enable-neighbor-plugins )
1255 - fi
1256 -
1257 - append-lfs-flags
1258 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
1259 -
1260 - myeconfargs+=(
1261 - $(use_enable eventfd)
1262 - $(use_enable signalfd)
1263 - $(use_enable libmpdclient)
1264 - $(use_enable expat)
1265 - $(use_enable upnp)
1266 - $(use_enable adplug)
1267 - $(use_enable alsa)
1268 - $(use_enable ao)
1269 - $(use_enable audiofile)
1270 - $(use_enable zlib)
1271 - $(use_enable bzip2)
1272 - $(use_enable cdio cdio-paranoia)
1273 - $(use_enable curl)
1274 - $(use_enable samba smbclient)
1275 - $(use_enable nfs)
1276 - $(use_enable debug)
1277 - $(use_enable ffmpeg)
1278 - $(use_enable fifo)
1279 - $(use_enable flac)
1280 - $(use_enable fluidsynth)
1281 - $(use_enable gme)
1282 - $(use_enable id3tag id3)
1283 - $(use_enable inotify)
1284 - $(use_enable ipv6)
1285 - $(use_enable cdio iso9660)
1286 - $(use_enable jack)
1287 - $(use_enable soundcloud)
1288 - $(use_enable tcpd libwrap)
1289 - $(use_enable libsamplerate lsr)
1290 - $(use_enable libsoxr soxr)
1291 - $(use_enable mad)
1292 - $(use_enable mikmod)
1293 - $(use_enable mms)
1294 - $(use_enable modplug)
1295 - $(use_enable musepack mpc)
1296 - $(use_enable mpg123)
1297 - $(use_enable openal)
1298 - $(use_enable opus)
1299 - $(use_enable oss)
1300 - $(use_enable pipe pipe-output)
1301 - $(use_enable pulseaudio pulse)
1302 - $(use_enable recorder recorder-output)
1303 - $(use_enable sid sidplay)
1304 - $(use_enable sndfile sndfile)
1305 - $(use_enable sqlite)
1306 - $(use_enable systemd systemd_daemon)
1307 - $(use_enable vorbis)
1308 - $(use_enable wavpack)
1309 - $(use_enable wildmidi)
1310 - $(use_enable zip zzip)
1311 - $(use_enable icu)
1312 - $(use_enable faad aac)
1313 - $(use_with zeroconf zeroconf avahi)
1314 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
1315 - --with-systemduserunitdir=$(systemd_get_userunitdir)
1316 - )
1317 -
1318 - econf "${myeconfargs[@]}"
1319 -}
1320 -
1321 -src_install() {
1322 - emake DESTDIR="${D}" install
1323 -
1324 - insinto /etc
1325 - newins doc/mpdconf.dist mpd.conf
1326 -
1327 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
1328 -
1329 - if use unicode; then
1330 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
1331 - "${ED}"/etc/mpd.conf || die "sed failed"
1332 - fi
1333 -
1334 - insinto /etc/logrotate.d
1335 - newins "${FILESDIR}"/${PN}-0.20.4.logrotate ${PN}
1336 -
1337 - use prefix || diropts -m0755 -o mpd -g audio
1338 - dodir /var/lib/mpd
1339 - keepdir /var/lib/mpd
1340 - dodir /var/lib/mpd/music
1341 - keepdir /var/lib/mpd/music
1342 - dodir /var/lib/mpd/playlists
1343 - keepdir /var/lib/mpd/playlists
1344 -}
1345 -
1346 -pkg_postinst() {
1347 - # also change the homedir if the user has existed before
1348 - usermod -d "/var/lib/mpd" mpd
1349 -}
1350
1351 diff --git a/media-sound/mpd/mpd-0.20.9.ebuild b/media-sound/mpd/mpd-0.20.9.ebuild
1352 deleted file mode 100644
1353 index 0b190a1feb8..00000000000
1354 --- a/media-sound/mpd/mpd-0.20.9.ebuild
1355 +++ /dev/null
1356 @@ -1,260 +0,0 @@
1357 -# Copyright 1999-2017 Gentoo Foundation
1358 -# Distributed under the terms of the GNU General Public License v2
1359 -
1360 -EAPI=6
1361 -
1362 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
1363 -
1364 -DESCRIPTION="The Music Player Daemon (mpd)"
1365 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
1366 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
1367 -
1368 -LICENSE="GPL-2"
1369 -SLOT="0"
1370 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
1371 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
1372 - +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack
1373 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
1374 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
1375 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
1376 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
1377 -
1378 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
1379 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
1380 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
1381 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
1382 -
1383 -REQUIRED_USE="
1384 - || ( ${OUTPUT_PLUGINS} )
1385 - || ( ${DECODER_PLUGINS} )
1386 - network? ( || ( ${ENCODER_PLUGINS} ) )
1387 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
1388 - opus? ( ogg )
1389 - upnp? ( expat )
1390 -"
1391 -
1392 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
1393 - adplug? ( media-libs/adplug )
1394 - alsa? (
1395 - media-sound/alsa-utils
1396 - media-libs/alsa-lib
1397 - )
1398 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
1399 - audiofile? ( media-libs/audiofile )
1400 - bzip2? ( app-arch/bzip2 )
1401 - cdio? ( dev-libs/libcdio-paranoia )
1402 - curl? ( net-misc/curl )
1403 - expat? ( dev-libs/expat )
1404 - faad? ( media-libs/faad2 )
1405 - ffmpeg? (
1406 - libav? ( media-video/libav:0= )
1407 - !libav? ( media-video/ffmpeg:0= )
1408 - )
1409 - flac? ( media-libs/flac[ogg?] )
1410 - fluidsynth? ( media-sound/fluidsynth )
1411 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
1412 - icu? ( dev-libs/icu:= )
1413 - id3tag? ( media-libs/libid3tag )
1414 - jack? ( virtual/jack )
1415 - lame? ( network? ( media-sound/lame ) )
1416 - libmpdclient? ( media-libs/libmpdclient )
1417 - libsamplerate? ( media-libs/libsamplerate )
1418 - mad? ( media-libs/libmad )
1419 - mikmod? ( media-libs/libmikmod:0 )
1420 - mms? ( media-libs/libmms )
1421 - modplug? ( media-libs/libmodplug )
1422 - mpg123? ( >=media-sound/mpg123-1.12.2 )
1423 - musepack? ( media-sound/musepack-tools )
1424 - network? (
1425 - >=media-libs/libshout-2
1426 - !lame? ( !vorbis? ( media-libs/libvorbis ) )
1427 - )
1428 - nfs? ( net-fs/libnfs )
1429 - ogg? ( media-libs/libogg )
1430 - openal? ( media-libs/openal )
1431 - opus? ( media-libs/opus )
1432 - pulseaudio? ( media-sound/pulseaudio )
1433 - samba? ( >=net-fs/samba-4.0.25 )
1434 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
1435 - sndfile? ( media-libs/libsndfile )
1436 - soundcloud? ( >=dev-libs/yajl-2:= )
1437 - libsoxr? ( media-libs/soxr )
1438 - sqlite? ( dev-db/sqlite:3 )
1439 - systemd? ( sys-apps/systemd )
1440 - tcpd? ( sys-apps/tcp-wrappers )
1441 - twolame? ( media-sound/twolame )
1442 - upnp? ( net-libs/libupnp:= )
1443 - vorbis? ( media-libs/libvorbis )
1444 - wavpack? ( media-sound/wavpack )
1445 - wildmidi? ( media-sound/wildmidi )
1446 - zeroconf? ( net-dns/avahi[dbus] )
1447 - zip? ( dev-libs/zziplib )
1448 - zlib? ( sys-libs/zlib )"
1449 -DEPEND="${CDEPEND}
1450 - dev-libs/boost
1451 - virtual/pkgconfig"
1452 -RDEPEND="${CDEPEND}
1453 - selinux? ( sec-policy/selinux-mpd )
1454 -"
1455 -
1456 -PATCHES=(
1457 - "${FILESDIR}"/${PN}-0.18.conf.patch
1458 -)
1459 -
1460 -pkg_setup() {
1461 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
1462 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
1463 -
1464 - enewuser mpd "" "" "/var/lib/mpd" audio
1465 -
1466 - if use eventfd; then
1467 - CONFIG_CHECK+=" ~EVENTFD"
1468 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
1469 - fi
1470 - if use signalfd; then
1471 - CONFIG_CHECK+=" ~SIGNALFD"
1472 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
1473 - fi
1474 - if use inotify; then
1475 - CONFIG_CHECK+=" ~INOTIFY_USER"
1476 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
1477 - fi
1478 - if use eventfd || use signalfd || use inotify; then
1479 - linux-info_pkg_setup
1480 - fi
1481 -
1482 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
1483 - sure that MPD's pid_file is _set_."
1484 -}
1485 -
1486 -src_prepare() {
1487 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
1488 - default
1489 - eautoreconf
1490 -}
1491 -
1492 -src_configure() {
1493 - local myeconfargs=(
1494 - --enable-database --disable-roar --disable-documentation
1495 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
1496 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
1497 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
1498 - )
1499 -
1500 - if use network; then
1501 - myeconfargs+=(
1502 - --enable-shout
1503 - $(use_enable vorbis vorbis-encoder)
1504 - --enable-httpd-output
1505 - $(use_enable lame lame-encoder)
1506 - $(use_enable twolame twolame-encoder)
1507 - $(use_enable audiofile wave-encoder)
1508 - )
1509 - else
1510 - myeconfargs+=(
1511 - --disable-shout
1512 - --disable-vorbis-encoder
1513 - --disable-httpd-output
1514 - --disable-lame-encoder
1515 - --disable-twolame-encoder
1516 - --disable-wave-encoder
1517 - )
1518 - fi
1519 -
1520 - if use samba || use upnp; then
1521 - myeconfargs+=( --enable-neighbor-plugins )
1522 - fi
1523 -
1524 - append-lfs-flags
1525 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
1526 -
1527 - myeconfargs+=(
1528 - $(use_enable eventfd)
1529 - $(use_enable signalfd)
1530 - $(use_enable libmpdclient)
1531 - $(use_enable expat)
1532 - $(use_enable upnp)
1533 - $(use_enable adplug)
1534 - $(use_enable alsa)
1535 - $(use_enable ao)
1536 - $(use_enable audiofile)
1537 - $(use_enable zlib)
1538 - $(use_enable bzip2)
1539 - $(use_enable cdio cdio-paranoia)
1540 - $(use_enable curl)
1541 - $(use_enable samba smbclient)
1542 - $(use_enable nfs)
1543 - $(use_enable debug)
1544 - $(use_enable ffmpeg)
1545 - $(use_enable fifo)
1546 - $(use_enable flac)
1547 - $(use_enable fluidsynth)
1548 - $(use_enable gme)
1549 - $(use_enable id3tag id3)
1550 - $(use_enable inotify)
1551 - $(use_enable ipv6)
1552 - $(use_enable cdio iso9660)
1553 - $(use_enable jack)
1554 - $(use_enable soundcloud)
1555 - $(use_enable tcpd libwrap)
1556 - $(use_enable libsamplerate lsr)
1557 - $(use_enable libsoxr soxr)
1558 - $(use_enable mad)
1559 - $(use_enable mikmod)
1560 - $(use_enable mms)
1561 - $(use_enable modplug)
1562 - $(use_enable musepack mpc)
1563 - $(use_enable mpg123)
1564 - $(use_enable openal)
1565 - $(use_enable opus)
1566 - $(use_enable oss)
1567 - $(use_enable pipe pipe-output)
1568 - $(use_enable pulseaudio pulse)
1569 - $(use_enable recorder recorder-output)
1570 - $(use_enable sid sidplay)
1571 - $(use_enable sndfile sndfile)
1572 - $(use_enable sqlite)
1573 - $(use_enable systemd systemd_daemon)
1574 - $(use_enable vorbis)
1575 - $(use_enable wavpack)
1576 - $(use_enable wildmidi)
1577 - $(use_enable zip zzip)
1578 - $(use_enable icu)
1579 - $(use_enable faad aac)
1580 - $(use_with zeroconf zeroconf avahi)
1581 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
1582 - --with-systemduserunitdir=$(systemd_get_userunitdir)
1583 - )
1584 -
1585 - econf "${myeconfargs[@]}"
1586 -}
1587 -
1588 -src_install() {
1589 - emake DESTDIR="${D}" install
1590 -
1591 - insinto /etc
1592 - newins doc/mpdconf.dist mpd.conf
1593 -
1594 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
1595 -
1596 - if use unicode; then
1597 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
1598 - "${ED}"/etc/mpd.conf || die "sed failed"
1599 - fi
1600 -
1601 - insinto /etc/logrotate.d
1602 - newins "${FILESDIR}"/${PN}-0.20.4.logrotate ${PN}
1603 -
1604 - use prefix || diropts -m0755 -o mpd -g audio
1605 - dodir /var/lib/mpd
1606 - keepdir /var/lib/mpd
1607 - dodir /var/lib/mpd/music
1608 - keepdir /var/lib/mpd/music
1609 - dodir /var/lib/mpd/playlists
1610 - keepdir /var/lib/mpd/playlists
1611 -}
1612 -
1613 -pkg_postinst() {
1614 - # also change the homedir if the user has existed before
1615 - usermod -d "/var/lib/mpd" mpd
1616 -}