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