1 |
commit: 9890e26298dc7eeee3bb2de0ee8098e3e5b1686c |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 27 09:10:19 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 09:11:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9890e262 |
7 |
|
8 |
media-sound/mpd: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-sound/mpd/Manifest | 2 - |
14 |
media-sound/mpd/mpd-0.21.14.ebuild | 299 ------------------------------------- |
15 |
media-sound/mpd/mpd-0.21.15.ebuild | 299 ------------------------------------- |
16 |
3 files changed, 600 deletions(-) |
17 |
|
18 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
19 |
index 2d3d11abb51..5102736d4b5 100644 |
20 |
--- a/media-sound/mpd/Manifest |
21 |
+++ b/media-sound/mpd/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST mpd-0.21.14.tar.xz 673036 BLAKE2B 73eed90c0d48e26d747e26b0cd000d3e0a12dfebb015f865fe9d3ddbe5f7fa564b1655b7e0639951e9aeb2554185063b11d6bc818813ca6366688ea05705ba4a SHA512 d5ce06741444d545c7334f4c4ab32dbfacaa264df5a1ac61b73d951e0a6f952c8ea1e4df1b5bfc827e7faa35a6b8026e78cbf3a057ee35adf448fa7204389cd9 |
24 |
-DIST mpd-0.21.15.tar.xz 673056 BLAKE2B e399c0439e790ac62525b33c5d2d26b47d36687edc877169934dd5379646d1d38ed7fec75532498a4c0f6e51e355e872847873045ae2446d037cce8781be3067 SHA512 c67ebdb7609b36b4b8504ce0751ca2dcc38a2fba03a5b8419185e8be64bce7e19560347a600773b65f55ba0a3cedeff051117071db8e7fe0a90c9771de8bd37e |
25 |
DIST mpd-0.21.16.tar.xz 673732 BLAKE2B ed43ae9d5d40fcac0d035c24161c4db3a1b6df2b05f6a006a47beb7f7ba8ec198cbd20e34c9fcaf4e9832dbf13c57a77a9e5864d7f16de2bdd1c414d41ce391c SHA512 bb7587acd03d675ae3127ab4e196d549170551ac643e5134baa2bccaf8d7c9bba6c9a9edec9bcb61a2ec3a6ce26f4d77190323ef0329033d0cd8c1f8964be05c |
26 |
|
27 |
diff --git a/media-sound/mpd/mpd-0.21.14.ebuild b/media-sound/mpd/mpd-0.21.14.ebuild |
28 |
deleted file mode 100644 |
29 |
index 603f91529c2..00000000000 |
30 |
--- a/media-sound/mpd/mpd-0.21.14.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,299 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-inherit flag-o-matic linux-info meson systemd user xdg-utils |
39 |
- |
40 |
-DESCRIPTION="The Music Player Daemon (mpd)" |
41 |
-HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
42 |
-SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="alpha amd64 ~arm ~hppa ~ppc ~ppc64 ~sh x86 ~x64-macos" |
47 |
-IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug |
48 |
- +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
49 |
- +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms |
50 |
- modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz |
51 |
- recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd |
52 |
- test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp |
53 |
- zeroconf zip zlib" |
54 |
- |
55 |
-OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
56 |
-DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
57 |
- modplug mpg123 musepack flac sid vorbis wavpack wildmidi" |
58 |
-ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
59 |
- |
60 |
-REQUIRED_USE=" |
61 |
- || ( ${OUTPUT_PLUGINS} ) |
62 |
- || ( ${DECODER_PLUGINS} ) |
63 |
- network? ( || ( ${ENCODER_PLUGINS} ) ) |
64 |
- recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
65 |
- upnp? ( expat ) |
66 |
- webdav? ( curl expat ) |
67 |
- " |
68 |
- |
69 |
-RESTRICT="!test? ( test )" |
70 |
- |
71 |
-RDEPEND=" |
72 |
- adplug? ( media-libs/adplug:= ) |
73 |
- alsa? ( |
74 |
- media-libs/alsa-lib |
75 |
- media-sound/alsa-utils |
76 |
- ) |
77 |
- |
78 |
- ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
79 |
- audiofile? ( media-libs/audiofile:= ) |
80 |
- |
81 |
- cdio? ( |
82 |
- dev-libs/libcdio:= |
83 |
- dev-libs/libcdio-paranoia |
84 |
- ) |
85 |
- |
86 |
- chromaprint? ( media-libs/chromaprint ) |
87 |
- curl? ( net-misc/curl ) |
88 |
- dbus? ( sys-apps/dbus ) |
89 |
- expat? ( dev-libs/expat ) |
90 |
- faad? ( media-libs/faad2 ) |
91 |
- |
92 |
- ffmpeg? ( |
93 |
- libav? ( media-video/libav:0= ) |
94 |
- !libav? ( media-video/ffmpeg:0= ) |
95 |
- ) |
96 |
- |
97 |
- flac? ( media-libs/flac ) |
98 |
- fluidsynth? ( media-sound/fluidsynth ) |
99 |
- gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
100 |
- icu? ( dev-libs/icu:= ) |
101 |
- id3tag? ( media-libs/libid3tag ) |
102 |
- jack? ( virtual/jack ) |
103 |
- lame? ( network? ( media-sound/lame ) ) |
104 |
- libmpdclient? ( media-libs/libmpdclient ) |
105 |
- libsamplerate? ( media-libs/libsamplerate ) |
106 |
- libsoxr? ( media-libs/soxr ) |
107 |
- mad? ( media-libs/libmad ) |
108 |
- mikmod? ( media-libs/libmikmod ) |
109 |
- mms? ( media-libs/libmms ) |
110 |
- modplug? ( media-libs/libmodplug ) |
111 |
- mpg123? ( media-sound/mpg123 ) |
112 |
- musepack? ( media-sound/musepack-tools ) |
113 |
- network? ( media-libs/libshout ) |
114 |
- nfs? ( net-fs/libnfs ) |
115 |
- openal? ( media-libs/openal ) |
116 |
- opus? ( media-libs/opus ) |
117 |
- pulseaudio? ( media-sound/pulseaudio ) |
118 |
- qobuz? ( dev-libs/libgcrypt:0 ) |
119 |
- samba? ( net-fs/samba ) |
120 |
- selinux? ( sec-policy/selinux-mpd ) |
121 |
- sid? ( || ( |
122 |
- media-libs/libsidplay:2 |
123 |
- media-libs/libsidplayfp |
124 |
- ) ) |
125 |
- sndfile? ( media-libs/libsndfile ) |
126 |
- soundcloud? ( >=dev-libs/yajl-2:= ) |
127 |
- sqlite? ( dev-db/sqlite:3 ) |
128 |
- systemd? ( sys-apps/systemd ) |
129 |
- twolame? ( media-sound/twolame ) |
130 |
- udisks? ( sys-fs/udisks:2 ) |
131 |
- upnp? ( net-libs/libupnp:0 ) |
132 |
- vorbis? ( media-libs/libvorbis ) |
133 |
- wavpack? ( media-sound/wavpack ) |
134 |
- wildmidi? ( media-sound/wildmidi ) |
135 |
- zeroconf? ( net-dns/avahi[dbus] ) |
136 |
- zip? ( dev-libs/zziplib ) |
137 |
- zlib? ( sys-libs/zlib:= )" |
138 |
- |
139 |
-DEPEND="${RDEPEND} |
140 |
- >=dev-libs/boost-1.58:= |
141 |
- test? ( dev-cpp/gtest )" |
142 |
- |
143 |
-BDEPEND=">=dev-util/meson-0.49.2 |
144 |
- virtual/pkgconfig" |
145 |
- |
146 |
-PATCHES=( |
147 |
- "${FILESDIR}"/${PN}-0.18.conf.patch |
148 |
-) |
149 |
- |
150 |
-pkg_setup() { |
151 |
- enewuser mpd "" "" "/var/lib/mpd" audio |
152 |
- |
153 |
- if use eventfd; then |
154 |
- CONFIG_CHECK+=" ~EVENTFD" |
155 |
- ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
156 |
- fi |
157 |
- |
158 |
- if use signalfd; then |
159 |
- CONFIG_CHECK+=" ~SIGNALFD" |
160 |
- ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
161 |
- fi |
162 |
- |
163 |
- if use inotify; then |
164 |
- CONFIG_CHECK+=" ~INOTIFY_USER" |
165 |
- ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
166 |
- fi |
167 |
- |
168 |
- if use eventfd || use signalfd || use inotify; then |
169 |
- linux-info_pkg_setup |
170 |
- fi |
171 |
- |
172 |
- elog "If you will be starting mpd via /etc/init.d/mpd, please make |
173 |
- sure that MPD's pid_file is _set_." |
174 |
-} |
175 |
- |
176 |
-src_prepare() { |
177 |
- cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
178 |
- default |
179 |
-} |
180 |
- |
181 |
-src_configure() { |
182 |
- local emesonargs=( |
183 |
- -Dbzip2=$(usex bzip2 enabled disabled) |
184 |
- -Dcdio_paranoia=$(usex cdio enabled disabled) |
185 |
- -Dchromaprint=$(usex chromaprint enabled disabled) |
186 |
- -Dcue=$(usex cue true false) |
187 |
- -Dcurl=$(usex curl enabled disabled) |
188 |
- -Ddbus=$(usex dbus enabled disabled) |
189 |
- -Ddebug=$(usex debug true false) |
190 |
- -Deventfd=$(usex eventfd true false) |
191 |
- -Dexpat=$(usex expat enabled disabled) |
192 |
- -Dicu=$(usex icu enabled disabled) |
193 |
- -Did3tag=$(usex id3tag enabled disabled) |
194 |
- -Dinotify=$(usex inotify true false) |
195 |
- -Dipv6=$(usex ipv6 enabled disabled) |
196 |
- -Diso9660=$(usex cdio enabled disabled) |
197 |
- -Dlibmpdclient=$(usex libmpdclient enabled disabled) |
198 |
- -Dlibsamplerate=$(usex libsamplerate enabled disabled) |
199 |
- -Dmms=$(usex mms enabled disabled) |
200 |
- -Dnfs=$(usex nfs enabled disabled) |
201 |
- -Dsignalfd=$(usex signalfd true false) |
202 |
- -Dsmbclient=$(usex samba enabled disabled) |
203 |
- -Dsoxr=$(usex libsoxr enabled disabled) |
204 |
- -Dsqlite=$(usex sqlite enabled disabled) |
205 |
- -Dsystemd=$(usex systemd enabled disabled) |
206 |
- -Dtest=$(usex test true false) |
207 |
- -Dudisks=$(usex udisks enabled disabled) |
208 |
- -Dupnp=$(usex upnp enabled disabled) |
209 |
- -Dwebdav=$(usex webdav enabled disabled) |
210 |
- -Dzeroconf=$(usex zeroconf avahi disabled) |
211 |
- -Dzlib=$(usex zlib enabled disabled) |
212 |
- -Dzzip=$(usex zip enabled disabled) |
213 |
- ) |
214 |
- |
215 |
- emesonargs+=( |
216 |
- -Dalsa=$(usex alsa enabled disabled) |
217 |
- -Dao=$(usex ao enabled disabled) |
218 |
- -Dfifo=$(usex fifo true false) |
219 |
- -Djack=$(usex jack enabled disabled) |
220 |
- -Dopenal=$(usex openal enabled disabled) |
221 |
- -Doss=$(usex oss enabled disabled) |
222 |
- -Dpipe=$(usex pipe true false) |
223 |
- -Dpulse=$(usex pulseaudio enabled disabled) |
224 |
- -Drecorder=$(usex recorder true false) |
225 |
- ) |
226 |
- |
227 |
- if use samba || use upnp; then |
228 |
- emesonargs+=( -Dneighbor=true ) |
229 |
- fi |
230 |
- |
231 |
- append-lfs-flags |
232 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
233 |
- |
234 |
- if use network; then |
235 |
- |
236 |
- emesonargs+=( |
237 |
- -Dshine=disabled |
238 |
- -Dshout=enabled |
239 |
- -Dvorbisenc=$(usex vorbis enabled disabled) |
240 |
- -Dhttpd=true |
241 |
- -Dlame=$(usex lame enabled disabled) |
242 |
- -Dtwolame=$(usex twolame enabled disabled) |
243 |
- -Dwave_encoder=$(usex audiofile true false) |
244 |
- ) |
245 |
- fi |
246 |
- |
247 |
- emesonargs+=( |
248 |
- -Dadplug=$(usex adplug enabled disabled) |
249 |
- -Daudiofile=$(usex audiofile enabled disabled) |
250 |
- -Dfaad=$(usex faad enabled disabled) |
251 |
- -Dffmpeg=$(usex ffmpeg enabled disabled) |
252 |
- -Dflac=$(usex flac enabled disabled) |
253 |
- -Dfluidsynth=$(usex fluidsynth enabled disabled) |
254 |
- -Dgme=$(usex gme enabled disabled) |
255 |
- -Dmad=$(usex mad enabled disabled) |
256 |
- -Dmikmod=$(usex mikmod enabled disabled) |
257 |
- -Dmodplug=$(usex modplug enabled disabled) |
258 |
- -Dmpcdec=$(usex musepack enabled disabled) |
259 |
- -Dmpg123=$(usex mpg123 enabled disabled) |
260 |
- -Dopus=$(usex opus enabled disabled) |
261 |
- -Dsidplay=$(usex sid enabled disabled) |
262 |
- -Dsndfile=$(usex sndfile enabled disabled) |
263 |
- -Dvorbis=$(usex vorbis enabled disabled) |
264 |
- -Dwavpack=$(usex wavpack enabled disabled) |
265 |
- -Dwildmidi=$(usex wildmidi enabled disabled) |
266 |
- |
267 |
- ) |
268 |
- |
269 |
- emesonargs+=( |
270 |
- -Dqobuz=$(usex qobuz enabled disabled) |
271 |
- -Dsoundcloud=$(usex soundcloud enabled disabled) |
272 |
- -Dtidal=$(usex tidal enabled disabled) |
273 |
- ) |
274 |
- |
275 |
- emesonargs+=( |
276 |
- --libdir="/usr/$(get_libdir)" |
277 |
- -Ddocumentation=false |
278 |
- -Dsndio=disabled #not yet in the tree |
279 |
- -Dsolaris_output=disabled |
280 |
- |
281 |
- -Ddatabase=true |
282 |
- -Ddsd=true |
283 |
- -Dtcp=true |
284 |
- |
285 |
- -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" |
286 |
- -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" |
287 |
- ) |
288 |
- |
289 |
- if use icu; then |
290 |
- emesonargs+=( -Diconv=enabled ) |
291 |
- else |
292 |
- emesonargs+=( -Diconv=disabled ) |
293 |
- fi |
294 |
- |
295 |
- meson_src_configure |
296 |
-} |
297 |
- |
298 |
-src_install() { |
299 |
- meson_src_install |
300 |
- |
301 |
- insinto /etc |
302 |
- newins doc/mpdconf.dist mpd.conf |
303 |
- |
304 |
- insinto /etc/logrotate.d |
305 |
- newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
306 |
- |
307 |
- newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} |
308 |
- |
309 |
- if use unicode; then |
310 |
- sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
311 |
- "${ED}"/etc/mpd.conf || die "sed failed" |
312 |
- fi |
313 |
- |
314 |
- doman doc/mpd.1 |
315 |
- doman doc/mpd.conf.5 |
316 |
- |
317 |
- keepdir /var/lib/mpd |
318 |
- keepdir /var/lib/mpd/music |
319 |
- keepdir /var/lib/mpd/playlists |
320 |
- |
321 |
-} |
322 |
- |
323 |
-pkg_postinst() { |
324 |
- # also change the homedir if the user has existed before |
325 |
- usermod -d "/var/lib/mpd" mpd || die "usermod failed" |
326 |
- xdg_icon_cache_update |
327 |
-} |
328 |
- |
329 |
-pkg_postrm() { |
330 |
- xdg_icon_cache_update |
331 |
-} |
332 |
|
333 |
diff --git a/media-sound/mpd/mpd-0.21.15.ebuild b/media-sound/mpd/mpd-0.21.15.ebuild |
334 |
deleted file mode 100644 |
335 |
index a5cdc87afb4..00000000000 |
336 |
--- a/media-sound/mpd/mpd-0.21.15.ebuild |
337 |
+++ /dev/null |
338 |
@@ -1,299 +0,0 @@ |
339 |
-# Copyright 1999-2019 Gentoo Authors |
340 |
-# Distributed under the terms of the GNU General Public License v2 |
341 |
- |
342 |
-EAPI=7 |
343 |
- |
344 |
-inherit flag-o-matic linux-info meson systemd user xdg-utils |
345 |
- |
346 |
-DESCRIPTION="The Music Player Daemon (mpd)" |
347 |
-HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
348 |
-SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
349 |
- |
350 |
-LICENSE="GPL-2" |
351 |
-SLOT="0" |
352 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x64-macos" |
353 |
-IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug |
354 |
- +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
355 |
- +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms |
356 |
- modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz |
357 |
- recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd |
358 |
- test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp |
359 |
- zeroconf zip zlib" |
360 |
- |
361 |
-OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
362 |
-DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
363 |
- modplug mpg123 musepack flac sid vorbis wavpack wildmidi" |
364 |
-ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
365 |
- |
366 |
-REQUIRED_USE=" |
367 |
- || ( ${OUTPUT_PLUGINS} ) |
368 |
- || ( ${DECODER_PLUGINS} ) |
369 |
- network? ( || ( ${ENCODER_PLUGINS} ) ) |
370 |
- recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
371 |
- upnp? ( expat ) |
372 |
- webdav? ( curl expat ) |
373 |
- " |
374 |
- |
375 |
-RESTRICT="!test? ( test )" |
376 |
- |
377 |
-RDEPEND=" |
378 |
- adplug? ( media-libs/adplug:= ) |
379 |
- alsa? ( |
380 |
- media-libs/alsa-lib |
381 |
- media-sound/alsa-utils |
382 |
- ) |
383 |
- |
384 |
- ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
385 |
- audiofile? ( media-libs/audiofile:= ) |
386 |
- |
387 |
- cdio? ( |
388 |
- dev-libs/libcdio:= |
389 |
- dev-libs/libcdio-paranoia |
390 |
- ) |
391 |
- |
392 |
- chromaprint? ( media-libs/chromaprint ) |
393 |
- curl? ( net-misc/curl ) |
394 |
- dbus? ( sys-apps/dbus ) |
395 |
- expat? ( dev-libs/expat ) |
396 |
- faad? ( media-libs/faad2 ) |
397 |
- |
398 |
- ffmpeg? ( |
399 |
- libav? ( media-video/libav:0= ) |
400 |
- !libav? ( media-video/ffmpeg:0= ) |
401 |
- ) |
402 |
- |
403 |
- flac? ( media-libs/flac ) |
404 |
- fluidsynth? ( media-sound/fluidsynth ) |
405 |
- gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
406 |
- icu? ( dev-libs/icu:= ) |
407 |
- id3tag? ( media-libs/libid3tag ) |
408 |
- jack? ( virtual/jack ) |
409 |
- lame? ( network? ( media-sound/lame ) ) |
410 |
- libmpdclient? ( media-libs/libmpdclient ) |
411 |
- libsamplerate? ( media-libs/libsamplerate ) |
412 |
- libsoxr? ( media-libs/soxr ) |
413 |
- mad? ( media-libs/libmad ) |
414 |
- mikmod? ( media-libs/libmikmod ) |
415 |
- mms? ( media-libs/libmms ) |
416 |
- modplug? ( media-libs/libmodplug ) |
417 |
- mpg123? ( media-sound/mpg123 ) |
418 |
- musepack? ( media-sound/musepack-tools ) |
419 |
- network? ( media-libs/libshout ) |
420 |
- nfs? ( net-fs/libnfs ) |
421 |
- openal? ( media-libs/openal ) |
422 |
- opus? ( media-libs/opus ) |
423 |
- pulseaudio? ( media-sound/pulseaudio ) |
424 |
- qobuz? ( dev-libs/libgcrypt:0 ) |
425 |
- samba? ( net-fs/samba ) |
426 |
- selinux? ( sec-policy/selinux-mpd ) |
427 |
- sid? ( || ( |
428 |
- media-libs/libsidplay:2 |
429 |
- media-libs/libsidplayfp |
430 |
- ) ) |
431 |
- sndfile? ( media-libs/libsndfile ) |
432 |
- soundcloud? ( >=dev-libs/yajl-2:= ) |
433 |
- sqlite? ( dev-db/sqlite:3 ) |
434 |
- systemd? ( sys-apps/systemd ) |
435 |
- twolame? ( media-sound/twolame ) |
436 |
- udisks? ( sys-fs/udisks:2 ) |
437 |
- upnp? ( net-libs/libupnp:0 ) |
438 |
- vorbis? ( media-libs/libvorbis ) |
439 |
- wavpack? ( media-sound/wavpack ) |
440 |
- wildmidi? ( media-sound/wildmidi ) |
441 |
- zeroconf? ( net-dns/avahi[dbus] ) |
442 |
- zip? ( dev-libs/zziplib ) |
443 |
- zlib? ( sys-libs/zlib:= )" |
444 |
- |
445 |
-DEPEND="${RDEPEND} |
446 |
- >=dev-libs/boost-1.58:= |
447 |
- test? ( dev-cpp/gtest )" |
448 |
- |
449 |
-BDEPEND=">=dev-util/meson-0.49.2 |
450 |
- virtual/pkgconfig" |
451 |
- |
452 |
-PATCHES=( |
453 |
- "${FILESDIR}"/${PN}-0.18.conf.patch |
454 |
-) |
455 |
- |
456 |
-pkg_setup() { |
457 |
- enewuser mpd "" "" "/var/lib/mpd" audio |
458 |
- |
459 |
- if use eventfd; then |
460 |
- CONFIG_CHECK+=" ~EVENTFD" |
461 |
- ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
462 |
- fi |
463 |
- |
464 |
- if use signalfd; then |
465 |
- CONFIG_CHECK+=" ~SIGNALFD" |
466 |
- ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
467 |
- fi |
468 |
- |
469 |
- if use inotify; then |
470 |
- CONFIG_CHECK+=" ~INOTIFY_USER" |
471 |
- ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
472 |
- fi |
473 |
- |
474 |
- if use eventfd || use signalfd || use inotify; then |
475 |
- linux-info_pkg_setup |
476 |
- fi |
477 |
- |
478 |
- elog "If you will be starting mpd via /etc/init.d/mpd, please make |
479 |
- sure that MPD's pid_file is _set_." |
480 |
-} |
481 |
- |
482 |
-src_prepare() { |
483 |
- cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
484 |
- default |
485 |
-} |
486 |
- |
487 |
-src_configure() { |
488 |
- local emesonargs=( |
489 |
- -Dbzip2=$(usex bzip2 enabled disabled) |
490 |
- -Dcdio_paranoia=$(usex cdio enabled disabled) |
491 |
- -Dchromaprint=$(usex chromaprint enabled disabled) |
492 |
- -Dcue=$(usex cue true false) |
493 |
- -Dcurl=$(usex curl enabled disabled) |
494 |
- -Ddbus=$(usex dbus enabled disabled) |
495 |
- -Ddebug=$(usex debug true false) |
496 |
- -Deventfd=$(usex eventfd true false) |
497 |
- -Dexpat=$(usex expat enabled disabled) |
498 |
- -Dicu=$(usex icu enabled disabled) |
499 |
- -Did3tag=$(usex id3tag enabled disabled) |
500 |
- -Dinotify=$(usex inotify true false) |
501 |
- -Dipv6=$(usex ipv6 enabled disabled) |
502 |
- -Diso9660=$(usex cdio enabled disabled) |
503 |
- -Dlibmpdclient=$(usex libmpdclient enabled disabled) |
504 |
- -Dlibsamplerate=$(usex libsamplerate enabled disabled) |
505 |
- -Dmms=$(usex mms enabled disabled) |
506 |
- -Dnfs=$(usex nfs enabled disabled) |
507 |
- -Dsignalfd=$(usex signalfd true false) |
508 |
- -Dsmbclient=$(usex samba enabled disabled) |
509 |
- -Dsoxr=$(usex libsoxr enabled disabled) |
510 |
- -Dsqlite=$(usex sqlite enabled disabled) |
511 |
- -Dsystemd=$(usex systemd enabled disabled) |
512 |
- -Dtest=$(usex test true false) |
513 |
- -Dudisks=$(usex udisks enabled disabled) |
514 |
- -Dupnp=$(usex upnp enabled disabled) |
515 |
- -Dwebdav=$(usex webdav enabled disabled) |
516 |
- -Dzeroconf=$(usex zeroconf avahi disabled) |
517 |
- -Dzlib=$(usex zlib enabled disabled) |
518 |
- -Dzzip=$(usex zip enabled disabled) |
519 |
- ) |
520 |
- |
521 |
- emesonargs+=( |
522 |
- -Dalsa=$(usex alsa enabled disabled) |
523 |
- -Dao=$(usex ao enabled disabled) |
524 |
- -Dfifo=$(usex fifo true false) |
525 |
- -Djack=$(usex jack enabled disabled) |
526 |
- -Dopenal=$(usex openal enabled disabled) |
527 |
- -Doss=$(usex oss enabled disabled) |
528 |
- -Dpipe=$(usex pipe true false) |
529 |
- -Dpulse=$(usex pulseaudio enabled disabled) |
530 |
- -Drecorder=$(usex recorder true false) |
531 |
- ) |
532 |
- |
533 |
- if use samba || use upnp; then |
534 |
- emesonargs+=( -Dneighbor=true ) |
535 |
- fi |
536 |
- |
537 |
- append-lfs-flags |
538 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
539 |
- |
540 |
- if use network; then |
541 |
- |
542 |
- emesonargs+=( |
543 |
- -Dshine=disabled |
544 |
- -Dshout=enabled |
545 |
- -Dvorbisenc=$(usex vorbis enabled disabled) |
546 |
- -Dhttpd=true |
547 |
- -Dlame=$(usex lame enabled disabled) |
548 |
- -Dtwolame=$(usex twolame enabled disabled) |
549 |
- -Dwave_encoder=$(usex audiofile true false) |
550 |
- ) |
551 |
- fi |
552 |
- |
553 |
- emesonargs+=( |
554 |
- -Dadplug=$(usex adplug enabled disabled) |
555 |
- -Daudiofile=$(usex audiofile enabled disabled) |
556 |
- -Dfaad=$(usex faad enabled disabled) |
557 |
- -Dffmpeg=$(usex ffmpeg enabled disabled) |
558 |
- -Dflac=$(usex flac enabled disabled) |
559 |
- -Dfluidsynth=$(usex fluidsynth enabled disabled) |
560 |
- -Dgme=$(usex gme enabled disabled) |
561 |
- -Dmad=$(usex mad enabled disabled) |
562 |
- -Dmikmod=$(usex mikmod enabled disabled) |
563 |
- -Dmodplug=$(usex modplug enabled disabled) |
564 |
- -Dmpcdec=$(usex musepack enabled disabled) |
565 |
- -Dmpg123=$(usex mpg123 enabled disabled) |
566 |
- -Dopus=$(usex opus enabled disabled) |
567 |
- -Dsidplay=$(usex sid enabled disabled) |
568 |
- -Dsndfile=$(usex sndfile enabled disabled) |
569 |
- -Dvorbis=$(usex vorbis enabled disabled) |
570 |
- -Dwavpack=$(usex wavpack enabled disabled) |
571 |
- -Dwildmidi=$(usex wildmidi enabled disabled) |
572 |
- |
573 |
- ) |
574 |
- |
575 |
- emesonargs+=( |
576 |
- -Dqobuz=$(usex qobuz enabled disabled) |
577 |
- -Dsoundcloud=$(usex soundcloud enabled disabled) |
578 |
- -Dtidal=$(usex tidal enabled disabled) |
579 |
- ) |
580 |
- |
581 |
- emesonargs+=( |
582 |
- --libdir="/usr/$(get_libdir)" |
583 |
- -Ddocumentation=false |
584 |
- -Dsndio=disabled #not yet in the tree |
585 |
- -Dsolaris_output=disabled |
586 |
- |
587 |
- -Ddatabase=true |
588 |
- -Ddsd=true |
589 |
- -Dtcp=true |
590 |
- |
591 |
- -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" |
592 |
- -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" |
593 |
- ) |
594 |
- |
595 |
- if use icu; then |
596 |
- emesonargs+=( -Diconv=enabled ) |
597 |
- else |
598 |
- emesonargs+=( -Diconv=disabled ) |
599 |
- fi |
600 |
- |
601 |
- meson_src_configure |
602 |
-} |
603 |
- |
604 |
-src_install() { |
605 |
- meson_src_install |
606 |
- |
607 |
- insinto /etc |
608 |
- newins doc/mpdconf.dist mpd.conf |
609 |
- |
610 |
- insinto /etc/logrotate.d |
611 |
- newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
612 |
- |
613 |
- newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} |
614 |
- |
615 |
- if use unicode; then |
616 |
- sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
617 |
- "${ED}"/etc/mpd.conf || die "sed failed" |
618 |
- fi |
619 |
- |
620 |
- doman doc/mpd.1 |
621 |
- doman doc/mpd.conf.5 |
622 |
- |
623 |
- keepdir /var/lib/mpd |
624 |
- keepdir /var/lib/mpd/music |
625 |
- keepdir /var/lib/mpd/playlists |
626 |
- |
627 |
-} |
628 |
- |
629 |
-pkg_postinst() { |
630 |
- # also change the homedir if the user has existed before |
631 |
- usermod -d "/var/lib/mpd" mpd || die "usermod failed" |
632 |
- xdg_icon_cache_update |
633 |
-} |
634 |
- |
635 |
-pkg_postrm() { |
636 |
- xdg_icon_cache_update |
637 |
-} |