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: Mon, 30 Mar 2020 09:23:49
Message-Id: 1585560200.d84ad955b0868b46a29ec95732d7967c8aab8a4f.zlogene@gentoo
1 commit: d84ad955b0868b46a29ec95732d7967c8aab8a4f
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 30 09:23:20 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 09:23:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d84ad955
7
8 media-sound/mpd: Drop old
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-sound/mpd/Manifest | 2 -
14 media-sound/mpd/mpd-0.21.18-r1.ebuild | 298 ----------------------------------
15 media-sound/mpd/mpd-0.21.19-r1.ebuild | 298 ----------------------------------
16 3 files changed, 598 deletions(-)
17
18 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
19 index f54747b6765..2cb1a5255c8 100644
20 --- a/media-sound/mpd/Manifest
21 +++ b/media-sound/mpd/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST mpd-0.21.18.tar.xz 676084 BLAKE2B f55ea278da4b50bf24da476ed9e3ff50a8130215702fb5c4a0accdbfeb00ed734983034ce6ee0542623e42d488555b1c709acefbba026f0e01f17f25f749b833 SHA512 68b4d9dc4be8454d7ef92df2a7b42513dc2d97bfd6b11ba99bce6709fc58ccbeab05419863bacb7a3427f1325bc88da74f9f4b48206222349085f02d0135e1a8
24 -DIST mpd-0.21.19.tar.xz 676020 BLAKE2B 295dd9067b8517739334fa09d4afc95f1167f291441bc34c4e5c4177bda66ef60eb3f4184f9192242faf64997b05d1c0a13736d1d6a3f343317271acc24a0e70 SHA512 50609b104b84b37dbb297fb40e8f4b352f13de7be5791b8d48c3af3459bfa0f0f88d1d37dcbb0d2409aaee881bca7a7bf6f871b82418ddade19829b02a2bde6a
25 DIST mpd-0.21.20.tar.xz 676396 BLAKE2B e87d844ac0b20f10df7d2306d1c76f76ead84f5e61acb51f60d62847b1fb4f2ada66b20e0a36d87eaf70289027139e4beb80ea8ef7637b1cdb656c9635adb720 SHA512 9dd49190ba4c85014d24e88cdb02a4649e8fb687a49fc9ea019f23725eda483980008e9abebf0ad3960bd310b693c56999699d7c7ddee3ca18e9b2aa6d5a2176
26 DIST mpd-0.21.21.tar.xz 676668 BLAKE2B 83964784db4a7372344853ebf2e9c966e23ac293c06304a8aa6f927ec8ea38d2749d88670f1c5e380953bb8b777b4b0f2c5e8a98d7eb3cf1bae50b5e11549150 SHA512 1780a24f341dec1cbc3d9170cc2fc8249081cac8f677ff17df15fc959787cf43d30696eefba9b8a44824da14eee3d58e2ee78b34db1335c0a182b4c2a89e6b3a
27
28 diff --git a/media-sound/mpd/mpd-0.21.18-r1.ebuild b/media-sound/mpd/mpd-0.21.18-r1.ebuild
29 deleted file mode 100644
30 index 540d4c5ec34..00000000000
31 --- a/media-sound/mpd/mpd-0.21.18-r1.ebuild
32 +++ /dev/null
33 @@ -1,298 +0,0 @@
34 -# Copyright 1999-2020 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 ~ppc ~ppc64 x86 ~x64-macos"
48 -IUSE="+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="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 - alsa? (
75 - media-libs/alsa-lib
76 - media-sound/alsa-utils
77 - )
78 -
79 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
80 - audiofile? ( media-libs/audiofile:= )
81 -
82 - cdio? (
83 - dev-libs/libcdio:=
84 - dev-libs/libcdio-paranoia
85 - )
86 -
87 - chromaprint? ( media-libs/chromaprint )
88 - curl? ( net-misc/curl )
89 - dbus? ( sys-apps/dbus )
90 - expat? ( dev-libs/expat )
91 - faad? ( media-libs/faad2 )
92 -
93 - ffmpeg? (
94 - libav? ( media-video/libav:0= )
95 - !libav? ( media-video/ffmpeg:0= )
96 - )
97 -
98 - flac? ( media-libs/flac )
99 - fluidsynth? ( media-sound/fluidsynth )
100 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
101 - icu? ( dev-libs/icu:= )
102 - id3tag? ( media-libs/libid3tag )
103 - jack? ( virtual/jack )
104 - lame? ( network? ( media-sound/lame ) )
105 - libmpdclient? ( media-libs/libmpdclient )
106 - libsamplerate? ( media-libs/libsamplerate )
107 - libsoxr? ( media-libs/soxr )
108 - mad? ( media-libs/libmad )
109 - mikmod? ( media-libs/libmikmod )
110 - mms? ( media-libs/libmms )
111 - modplug? ( media-libs/libmodplug )
112 - mpg123? ( media-sound/mpg123 )
113 - musepack? ( media-sound/musepack-tools )
114 - network? ( media-libs/libshout )
115 - nfs? ( net-fs/libnfs )
116 - openal? ( media-libs/openal )
117 - opus? ( media-libs/opus )
118 - pulseaudio? ( media-sound/pulseaudio )
119 - qobuz? ( dev-libs/libgcrypt:0 )
120 - samba? ( net-fs/samba )
121 - selinux? ( sec-policy/selinux-mpd )
122 - sid? ( || (
123 - media-libs/libsidplay:2
124 - media-libs/libsidplayfp
125 - ) )
126 - sndfile? ( media-libs/libsndfile )
127 - soundcloud? ( >=dev-libs/yajl-2:= )
128 - sqlite? ( dev-db/sqlite:3 )
129 - systemd? ( sys-apps/systemd )
130 - tidal? ( dev-libs/yajl
131 - net-misc/curl )
132 - twolame? ( media-sound/twolame )
133 - udisks? ( sys-fs/udisks:2 )
134 - upnp? ( net-libs/libupnp:0 )
135 - vorbis? ( media-libs/libvorbis )
136 - wavpack? ( media-sound/wavpack )
137 - wildmidi? ( media-sound/wildmidi )
138 - zeroconf? ( net-dns/avahi[dbus] )
139 - zip? ( dev-libs/zziplib )
140 - zlib? ( sys-libs/zlib:= )"
141 -
142 -DEPEND="${RDEPEND}
143 - >=dev-libs/boost-1.58:=
144 - test? ( dev-cpp/gtest )"
145 -
146 -BDEPEND=">=dev-util/meson-0.49.2
147 - virtual/pkgconfig"
148 -
149 -PATCHES=(
150 - "${FILESDIR}"/${PN}-0.18.conf.patch
151 -)
152 -
153 -pkg_setup() {
154 - if use eventfd; then
155 - CONFIG_CHECK+=" ~EVENTFD"
156 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
157 - fi
158 -
159 - if use signalfd; then
160 - CONFIG_CHECK+=" ~SIGNALFD"
161 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
162 - fi
163 -
164 - if use inotify; then
165 - CONFIG_CHECK+=" ~INOTIFY_USER"
166 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
167 - fi
168 -
169 - if use eventfd || use signalfd || use inotify; then
170 - linux-info_pkg_setup
171 - fi
172 -
173 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
174 - sure that MPD's pid_file is _set_."
175 -}
176 -
177 -src_prepare() {
178 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
179 - default
180 -}
181 -
182 -src_configure() {
183 - local emesonargs=(
184 - -Dbzip2=$(usex bzip2 enabled disabled)
185 - -Dcdio_paranoia=$(usex cdio enabled disabled)
186 - -Dchromaprint=$(usex chromaprint enabled disabled)
187 - -Dcue=$(usex cue true false)
188 - -Dcurl=$(usex curl enabled disabled)
189 - -Ddbus=$(usex dbus enabled disabled)
190 - -Ddebug=$(usex debug true false)
191 - -Deventfd=$(usex eventfd true false)
192 - -Dexpat=$(usex expat enabled disabled)
193 - -Dicu=$(usex icu enabled disabled)
194 - -Did3tag=$(usex id3tag enabled disabled)
195 - -Dinotify=$(usex inotify true false)
196 - -Dipv6=$(usex ipv6 enabled disabled)
197 - -Diso9660=$(usex cdio enabled disabled)
198 - -Dlibmpdclient=$(usex libmpdclient enabled disabled)
199 - -Dlibsamplerate=$(usex libsamplerate enabled disabled)
200 - -Dmms=$(usex mms enabled disabled)
201 - -Dnfs=$(usex nfs enabled disabled)
202 - -Dsignalfd=$(usex signalfd true false)
203 - -Dsmbclient=$(usex samba enabled disabled)
204 - -Dsoxr=$(usex libsoxr enabled disabled)
205 - -Dsqlite=$(usex sqlite enabled disabled)
206 - -Dsystemd=$(usex systemd enabled disabled)
207 - -Dtest=$(usex test true false)
208 - -Dudisks=$(usex udisks enabled disabled)
209 - -Dupnp=$(usex upnp enabled disabled)
210 - -Dwebdav=$(usex webdav enabled disabled)
211 - -Dzeroconf=$(usex zeroconf avahi disabled)
212 - -Dzlib=$(usex zlib enabled disabled)
213 - -Dzzip=$(usex zip enabled disabled)
214 - )
215 -
216 - emesonargs+=(
217 - -Dalsa=$(usex alsa enabled disabled)
218 - -Dao=$(usex ao enabled disabled)
219 - -Dfifo=$(usex fifo true false)
220 - -Djack=$(usex jack enabled disabled)
221 - -Dopenal=$(usex openal enabled disabled)
222 - -Doss=$(usex oss enabled disabled)
223 - -Dpipe=$(usex pipe true false)
224 - -Dpulse=$(usex pulseaudio enabled disabled)
225 - -Drecorder=$(usex recorder true false)
226 - )
227 -
228 - if use samba || use upnp; then
229 - emesonargs+=( -Dneighbor=true )
230 - fi
231 -
232 - append-lfs-flags
233 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
234 -
235 - if use network; then
236 -
237 - emesonargs+=(
238 - -Dshine=disabled
239 - -Dshout=enabled
240 - -Dvorbisenc=$(usex vorbis enabled disabled)
241 - -Dhttpd=true
242 - -Dlame=$(usex lame enabled disabled)
243 - -Dtwolame=$(usex twolame enabled disabled)
244 - -Dwave_encoder=$(usex audiofile true false)
245 - )
246 - fi
247 -
248 - emesonargs+=(
249 - # media-libs/adplug is not packaged anymore
250 - -Dadplug=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.19-r1.ebuild b/media-sound/mpd/mpd-0.21.19-r1.ebuild
334 deleted file mode 100644
335 index 731ab04c695..00000000000
336 --- a/media-sound/mpd/mpd-0.21.19-r1.ebuild
337 +++ /dev/null
338 @@ -1,298 +0,0 @@
339 -# Copyright 1999-2020 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 ~ppc ~ppc64 ~x86 ~x64-macos"
353 -IUSE="+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="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 - 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 - tidal? ( dev-libs/yajl
436 - net-misc/curl )
437 - twolame? ( media-sound/twolame )
438 - udisks? ( sys-fs/udisks:2 )
439 - upnp? ( net-libs/libupnp:0 )
440 - vorbis? ( media-libs/libvorbis )
441 - wavpack? ( media-sound/wavpack )
442 - wildmidi? ( media-sound/wildmidi )
443 - zeroconf? ( net-dns/avahi[dbus] )
444 - zip? ( dev-libs/zziplib )
445 - zlib? ( sys-libs/zlib:= )"
446 -
447 -DEPEND="${RDEPEND}
448 - >=dev-libs/boost-1.58:=
449 - test? ( dev-cpp/gtest )"
450 -
451 -BDEPEND=">=dev-util/meson-0.49.2
452 - virtual/pkgconfig"
453 -
454 -PATCHES=(
455 - "${FILESDIR}"/${PN}-0.18.conf.patch
456 -)
457 -
458 -pkg_setup() {
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 - # media-libs/adplug is not packaged anymore
555 - -Dadplug=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 -}