Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpd/files/, media-sound/mpd/
Date: Sun, 04 Feb 2018 17:41:53
Message-Id: 1517765933.1eb1c064c5f8eb8d4d299b8e4d43f59152787595.asturm@gentoo
1 commit: 1eb1c064c5f8eb8d4d299b8e4d43f59152787595
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 4 16:45:10 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 4 17:38:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eb1c064
7
8 media-sound/mpd: Drop old
9
10 Closes: https://bugs.gentoo.org/623408
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 media-sound/mpd/Manifest | 1 -
14 media-sound/mpd/files/mpd-0.9.15-systemd.patch | 106 ----------
15 media-sound/mpd/metadata.xml | 1 -
16 media-sound/mpd/mpd-0.19.19.ebuild | 256 -------------------------
17 4 files changed, 364 deletions(-)
18
19 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
20 index 058f3e36a46..3e72942f5c3 100644
21 --- a/media-sound/mpd/Manifest
22 +++ b/media-sound/mpd/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST mpd-0.19.19.tar.xz 707356 BLAKE2B bb9cade62cfbb64fd5f2db28e8c3ca1847efaf6b4ec818ceb935d5dff292afdbc0a59520f23e20c270bccd79e52e8e4bc9083535c438c1967dd14b0d56b995cf SHA512 949bfab2aa5dffb4089ce2023accc934648091d36768f8e4c75f62b4038e21db1e2ef3bb07a0f1cf6a91d0532cac8e7146be948d84dc4d7cdc5b252b7d815b64
25 DIST mpd-0.20.10.tar.xz 778828 BLAKE2B c16b955ace770cf3d5da2ccad81fd3089cf2e60bf47774745d75babcff38fa344646b26dd32617fa2fe86ee0c785b9c8272ea6c90f77266b1a0cba2d48145236 SHA512 bac6a71e5b85600c590eae6b785474574cf0d7b03d9add537161b968a2997a975a597639a9fece119a01a7e27b5207523e4ae30b2f4f35791eff8c3ff26d107c
26 DIST mpd-0.20.12.tar.xz 781072 BLAKE2B 0f305efa94dca844ebc9e4548d0f57ce01c0274c49f40fe3fc8510b8f2748f2cf623125c16da382a8495aa6eeb1a8b9707a3bb46a5fa8a0657c9ffa11fbcb5dc SHA512 3e221edc71cc65f9da46aa4f1d0bc2f8ca701cc4a103ea8efb08191918312b2f3b0023288e3dcabe0779e81ee6f628773d779462e09a55f2c090cca0e3d099af
27
28 diff --git a/media-sound/mpd/files/mpd-0.9.15-systemd.patch b/media-sound/mpd/files/mpd-0.9.15-systemd.patch
29 deleted file mode 100644
30 index cd03ebe1685..00000000000
31 --- a/media-sound/mpd/files/mpd-0.9.15-systemd.patch
32 +++ /dev/null
33 @@ -1,106 +0,0 @@
34 -Description: transition to libsystemd from deprecated libsystemd-daemon
35 - systemd 209 merged the various libsystemd-* libraries into a single
36 - libsystemd.so, so we check for that instead and rename the configure
37 - option, define, etc accordingly.
38 -Author: Florian Schlichting <fsfs@××××××.org>
39 -Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779762
40 -Forwarded: not-needed (solved in a less invasive and backward-compatible way upstream)
41 -
42 ---- a/configure.ac
43 -+++ b/configure.ac
44 -@@ -572,10 +572,10 @@
45 - MPD_DEPENDS([enable_sqlite], [enable_glib],
46 - [Cannot use --enable-sqlite with --disable-glib])
47 -
48 --AC_ARG_ENABLE(systemd-daemon,
49 -- AS_HELP_STRING([--enable-systemd-daemon],
50 -- [use the systemd daemon library (default=auto)]),,
51 -- [enable_systemd_daemon=$linux_auto])
52 -+AC_ARG_ENABLE(systemd,
53 -+ AS_HELP_STRING([--enable-systemd],
54 -+ [use the systemd library (default=auto)]),,
55 -+ [enable_systemd=$linux_auto])
56 -
57 - AC_ARG_ENABLE(tcp,
58 - AS_HELP_STRING([--disable-tcp],
59 -@@ -762,11 +762,11 @@
60 - AC_MSG_ERROR([No client interfaces configured!])
61 - fi
62 -
63 --MPD_AUTO_PKG(systemd_daemon, SYSTEMD_DAEMON, libsystemd-daemon,
64 -- [systemd activation], [libsystemd-daemon not found])
65 --AM_CONDITIONAL(ENABLE_SYSTEMD_DAEMON, test x$enable_systemd_daemon = xyes)
66 --if test x$enable_systemd_daemon = xyes; then
67 -- AC_DEFINE([ENABLE_SYSTEMD_DAEMON], 1, [Define to use the systemd daemon library])
68 -+MPD_AUTO_PKG(systemd, SYSTEMD, libsystemd,
69 -+ [systemd activation], [libsystemd not found])
70 -+AM_CONDITIONAL(ENABLE_SYSTEMD, test x$enable_systemd = xyes)
71 -+if test x$enable_systemd = xyes; then
72 -+ AC_DEFINE([ENABLE_SYSTEMD], 1, [Define to use the systemd library])
73 - fi
74 -
75 - dnl ---------------------------------------------------------------------------
76 ---- a/Makefile.am
77 -+++ b/Makefile.am
78 -@@ -58,7 +58,7 @@
79 - $(ICU_LDADD) \
80 - libutil.a \
81 - $(FS_LIBS) \
82 -- $(SYSTEMD_DAEMON_LIBS) \
83 -+ $(SYSTEMD_LIBS) \
84 - $(GLIB_LIBS)
85 -
86 - src_mpd_SOURCES = \
87 ---- a/config.h.in
88 -+++ b/config.h.in
89 -@@ -75,8 +75,8 @@
90 - /* Define to enable sqlite database support */
91 - #undef ENABLE_SQLITE
92 -
93 --/* Define to use the systemd daemon library */
94 --#undef ENABLE_SYSTEMD_DAEMON
95 -+/* Define to use the systemd library */
96 -+#undef ENABLE_SYSTEMD
97 -
98 - /* Define to enable the TwoLAME encoder plugin */
99 - #undef ENABLE_TWOLAME_ENCODER
100 ---- a/src/Listen.cxx
101 -+++ b/src/Listen.cxx
102 -@@ -32,7 +32,7 @@
103 - #include <string.h>
104 - #include <assert.h>
105 -
106 --#ifdef ENABLE_SYSTEMD_DAEMON
107 -+#ifdef ENABLE_SYSTEMD
108 - #include <systemd/sd-daemon.h>
109 - #endif
110 -
111 -@@ -77,7 +77,7 @@
112 - }
113 - }
114 -
115 --#ifdef ENABLE_SYSTEMD_DAEMON
116 -+#ifdef ENABLE_SYSTEMD
117 -
118 - static bool
119 - listen_systemd_activation(Error &error_r)
120 -@@ -109,7 +109,7 @@
121 -
122 - listen_socket = new ClientListener(loop, partition);
123 -
124 --#ifdef ENABLE_SYSTEMD_DAEMON
125 -+#ifdef ENABLE_SYSTEMD
126 - if (listen_systemd_activation(error))
127 - return true;
128 -
129 ---- a/doc/user.xml
130 -+++ b/doc/user.xml
131 -@@ -110,7 +110,7 @@
132 - libupnp-dev \
133 - libavahi-client-dev \
134 - libsqlite3-dev \
135 -- libsystemd-daemon-dev libwrap0-dev \
136 -+ libsystemd-dev libwrap0-dev \
137 - libcppunit-dev xmlto \
138 - libboost-dev \
139 - libglib2.0-dev libicu-dev
140
141 diff --git a/media-sound/mpd/metadata.xml b/media-sound/mpd/metadata.xml
142 index 44d02733ce2..f2736f902a3 100644
143 --- a/media-sound/mpd/metadata.xml
144 +++ b/media-sound/mpd/metadata.xml
145 @@ -17,7 +17,6 @@
146 <flag name="faad">Use external faad library for AAC decoding</flag>
147 <flag name="fifo">Support writing audio to a FIFO</flag>
148 <flag name="fluidsynth">Enables Fluidsynth MIDI software synthesis (discouraged)</flag>
149 - <flag name="glib">Enable GLib usage</flag>
150 <flag name="gme">Enables support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats.</flag>
151 <flag name="id3tag">Support for ID3 tags</flag>
152 <flag name="inotify">Use the Linux kernel inotify subsystem to notice changes to mpd music library</flag>
153
154 diff --git a/media-sound/mpd/mpd-0.19.19.ebuild b/media-sound/mpd/mpd-0.19.19.ebuild
155 deleted file mode 100644
156 index 2c72863763a..00000000000
157 --- a/media-sound/mpd/mpd-0.19.19.ebuild
158 +++ /dev/null
159 @@ -1,256 +0,0 @@
160 -# Copyright 1999-2018 Gentoo Foundation
161 -# Distributed under the terms of the GNU General Public License v2
162 -
163 -EAPI=6
164 -
165 -inherit autotools eutils flag-o-matic linux-info multilib systemd user
166 -
167 -DESCRIPTION="The Music Player Daemon (mpd)"
168 -HOMEPAGE="https://www.musicpd.org"
169 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
170 -
171 -LICENSE="GPL-2"
172 -SLOT="0"
173 -KEYWORDS="alpha amd64 arm ~hppa ppc ppc64 ~sh x86 ~x86-fbsd ~x64-macos"
174 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
175 - +fifo +ffmpeg flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack
176 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
177 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
178 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
179 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
180 -
181 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
182 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
183 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
184 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
185 -
186 -REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} )
187 - || ( ${DECODER_PLUGINS} )
188 - ao? ( glib )
189 - gme? ( glib )
190 - jack? ( glib )
191 - network? ( || ( ${ENCODER_PLUGINS} )
192 - glib )
193 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
194 - sid? ( glib )
195 - soundcloud? ( glib )
196 - sqlite? ( glib )
197 - opus? ( ogg )
198 - upnp? ( expat )
199 - vorbis? ( glib )
200 - wavpack? ( glib )"
201 -
202 -CDEPEND="!<sys-cluster/mpich2-1.4_rc2
203 - adplug? ( media-libs/adplug )
204 - alsa? ( media-sound/alsa-utils
205 - media-libs/alsa-lib )
206 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
207 - audiofile? ( media-libs/audiofile )
208 - bzip2? ( app-arch/bzip2 )
209 - cdio? ( dev-libs/libcdio-paranoia )
210 - curl? ( net-misc/curl )
211 - expat? ( dev-libs/expat )
212 - faad? ( media-libs/faad2 )
213 - ffmpeg? (
214 - libav? ( media-video/libav:0= )
215 - !libav? ( media-video/ffmpeg:0= )
216 - )
217 - flac? ( media-libs/flac[ogg?] )
218 - fluidsynth? ( media-sound/fluidsynth )
219 - glib? ( dev-libs/glib:2 )
220 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
221 - icu? ( dev-libs/icu:= )
222 - id3tag? ( media-libs/libid3tag )
223 - jack? ( media-sound/jack-audio-connection-kit )
224 - lame? ( network? ( media-sound/lame ) )
225 - libmpdclient? ( media-libs/libmpdclient )
226 - libsamplerate? ( media-libs/libsamplerate )
227 - mad? ( media-libs/libmad )
228 - mikmod? ( media-libs/libmikmod:0 )
229 - mms? ( media-libs/libmms )
230 - modplug? ( media-libs/libmodplug )
231 - mpg123? ( >=media-sound/mpg123-1.12.2 )
232 - musepack? ( media-sound/musepack-tools )
233 - network? ( >=media-libs/libshout-2
234 - !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
235 - nfs? ( net-fs/libnfs )
236 - ogg? ( media-libs/libogg )
237 - openal? ( media-libs/openal )
238 - opus? ( media-libs/opus )
239 - pulseaudio? ( media-sound/pulseaudio )
240 - samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
241 - sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
242 - sndfile? ( media-libs/libsndfile )
243 - soundcloud? ( >=dev-libs/yajl-2 )
244 - libsoxr? ( media-libs/soxr )
245 - sqlite? ( dev-db/sqlite:3 )
246 - systemd? ( sys-apps/systemd )
247 - tcpd? ( sys-apps/tcp-wrappers )
248 - twolame? ( media-sound/twolame )
249 - upnp? ( net-libs/libupnp )
250 - vorbis? ( media-libs/libvorbis )
251 - wavpack? ( media-sound/wavpack )
252 - wildmidi? ( media-sound/wildmidi )
253 - zeroconf? ( net-dns/avahi[dbus] )
254 - zip? ( dev-libs/zziplib )
255 - zlib? ( sys-libs/zlib )"
256 -DEPEND="${CDEPEND}
257 - dev-libs/boost
258 - virtual/pkgconfig"
259 -RDEPEND="${CDEPEND}
260 - selinux? ( sec-policy/selinux-mpd )
261 -"
262 -
263 -PATCHES=(
264 - "${FILESDIR}"/${PN}-0.18.conf.patch
265 - "${FILESDIR}"/${PN}-0.9.15-systemd.patch # bug 584742
266 -)
267 -
268 -pkg_setup() {
269 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
270 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
271 -
272 - enewuser mpd "" "" "/var/lib/mpd" audio
273 -
274 - if use eventfd; then
275 - CONFIG_CHECK+=" ~EVENTFD"
276 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
277 - fi
278 - if use signalfd; then
279 - CONFIG_CHECK+=" ~SIGNALFD"
280 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
281 - fi
282 - if use inotify; then
283 - CONFIG_CHECK+=" ~INOTIFY_USER"
284 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
285 - fi
286 - if use eventfd || use signalfd || use inotify; then
287 - linux-info_pkg_setup
288 - fi
289 -
290 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
291 - sure that MPD's pid_file is _set_."
292 -}
293 -
294 -src_prepare() {
295 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
296 - default
297 - eautoreconf
298 -}
299 -
300 -src_configure() {
301 - local mpdconf="--enable-database --disable-roar --disable-documentation
302 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
303 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
304 - --docdir=${EPREFIX}/usr/share/doc/${PF}"
305 -
306 - if use network; then
307 - mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
308 - --enable-httpd-output $(use_enable lame lame-encoder)
309 - $(use_enable twolame twolame-encoder)
310 - $(use_enable audiofile wave-encoder)"
311 - else
312 - mpdconf+=" --disable-shout --disable-vorbis-encoder
313 - --disable-httpd-output --disable-lame-encoder
314 - --disable-twolame-encoder --disable-wave-encoder"
315 - fi
316 -
317 - if use samba || use upnp; then
318 - mpdconf+=" --enable-neighbor-plugins"
319 - fi
320 -
321 - append-lfs-flags
322 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
323 -
324 - econf \
325 - $(use_enable eventfd) \
326 - $(use_enable signalfd) \
327 - $(use_enable libmpdclient) \
328 - $(use_enable expat) \
329 - $(use_enable upnp) \
330 - $(use_enable adplug) \
331 - $(use_enable alsa) \
332 - $(use_enable ao) \
333 - $(use_enable audiofile) \
334 - $(use_enable zlib) \
335 - $(use_enable bzip2) \
336 - $(use_enable cdio cdio-paranoia) \
337 - $(use_enable curl) \
338 - $(use_enable samba smbclient) \
339 - $(use_enable nfs) \
340 - $(use_enable debug) \
341 - $(use_enable ffmpeg) \
342 - $(use_enable fifo) \
343 - $(use_enable flac) \
344 - $(use_enable fluidsynth) \
345 - $(use_enable gme) \
346 - $(use_enable id3tag id3) \
347 - $(use_enable inotify) \
348 - $(use_enable ipv6) \
349 - $(use_enable cdio iso9660) \
350 - $(use_enable jack) \
351 - $(use_enable soundcloud) \
352 - $(use_enable tcpd libwrap) \
353 - $(use_enable libsamplerate lsr) \
354 - $(use_enable libsoxr soxr) \
355 - $(use_enable mad) \
356 - $(use_enable mikmod) \
357 - $(use_enable mms) \
358 - $(use_enable modplug) \
359 - $(use_enable musepack mpc) \
360 - $(use_enable mpg123) \
361 - $(use_enable openal) \
362 - $(use_enable opus) \
363 - $(use_enable oss) \
364 - $(use_enable pipe pipe-output) \
365 - $(use_enable pulseaudio pulse) \
366 - $(use_enable recorder recorder-output) \
367 - $(use_enable sid sidplay) \
368 - $(use_enable sndfile sndfile) \
369 - $(use_enable sqlite) \
370 - $(use_enable systemd) \
371 - $(use_enable vorbis) \
372 - $(use_enable wavpack) \
373 - $(use_enable wildmidi) \
374 - $(use_enable zip zzip) \
375 - $(use_enable icu) \
376 - $(use_enable glib) \
377 - $(use_enable faad aac) \
378 - $(use_with zeroconf zeroconf avahi) \
379 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
380 - ${mpdconf}
381 -}
382 -
383 -src_install() {
384 - emake DESTDIR="${D}" install
385 -
386 - insinto /etc
387 - newins doc/mpdconf.dist mpd.conf
388 -
389 - newinitd "${FILESDIR}"/${PN}2.init ${PN}
390 -
391 - systemd_newuserunit systemd/${PN}.service ${PN}.service
392 - sed -i '/WantedBy=/c WantedBy=default.target' \
393 - "${ED}"/usr/lib/systemd/user/mpd.service || die "sed failed"
394 -
395 - if use unicode; then
396 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
397 - "${ED}"/etc/mpd.conf || die "sed failed"
398 - fi
399 -
400 - insinto /etc/logrotate.d
401 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
402 -
403 - use prefix || diropts -m0755 -o mpd -g audio
404 - dodir /var/lib/mpd
405 - keepdir /var/lib/mpd
406 - dodir /var/lib/mpd/music
407 - keepdir /var/lib/mpd/music
408 - dodir /var/lib/mpd/playlists
409 - keepdir /var/lib/mpd/playlists
410 -}
411 -
412 -pkg_postinst() {
413 - # also change the homedir if the user has existed before
414 - usermod -d "/var/lib/mpd" mpd
415 -}