Gentoo Archives: gentoo-commits

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