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/files/, media-sound/mpd/
Date: Sun, 21 Oct 2018 18:35:54
Message-Id: 1540146930.7333603665c371de2e2ae0ced4f3c6c9bf14c654.zlogene@gentoo
1 commit: 7333603665c371de2e2ae0ced4f3c6c9bf14c654
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 21 18:35:30 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 18:35:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73336036
7
8 media-sound/mpd: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 media-sound/mpd/Manifest | 1 -
14 media-sound/mpd/files/mpd-0.20.12.logrotate | 6 -
15 media-sound/mpd/mpd-0.20.12-r2.ebuild | 271 ----------------------------
16 3 files changed, 278 deletions(-)
17
18 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
19 index 72f3cdc1d4a..519d5fac1d6 100644
20 --- a/media-sound/mpd/Manifest
21 +++ b/media-sound/mpd/Manifest
22 @@ -1,3 +1,2 @@
23 DIST mpd-0.20.10.tar.xz 778828 BLAKE2B c16b955ace770cf3d5da2ccad81fd3089cf2e60bf47774745d75babcff38fa344646b26dd32617fa2fe86ee0c785b9c8272ea6c90f77266b1a0cba2d48145236 SHA512 bac6a71e5b85600c590eae6b785474574cf0d7b03d9add537161b968a2997a975a597639a9fece119a01a7e27b5207523e4ae30b2f4f35791eff8c3ff26d107c
24 -DIST mpd-0.20.12.tar.xz 781072 BLAKE2B 0f305efa94dca844ebc9e4548d0f57ce01c0274c49f40fe3fc8510b8f2748f2cf623125c16da382a8495aa6eeb1a8b9707a3bb46a5fa8a0657c9ffa11fbcb5dc SHA512 3e221edc71cc65f9da46aa4f1d0bc2f8ca701cc4a103ea8efb08191918312b2f3b0023288e3dcabe0779e81ee6f628773d779462e09a55f2c090cca0e3d099af
25 DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6
26
27 diff --git a/media-sound/mpd/files/mpd-0.20.12.logrotate b/media-sound/mpd/files/mpd-0.20.12.logrotate
28 deleted file mode 100644
29 index 738313e9e31..00000000000
30 --- a/media-sound/mpd/files/mpd-0.20.12.logrotate
31 +++ /dev/null
32 @@ -1,6 +0,0 @@
33 -/var/lib/mpd/log {
34 - missingok
35 - postrotate
36 - /etc/init.d/mpd --quiet reload
37 - endscript
38 -}
39
40 diff --git a/media-sound/mpd/mpd-0.20.12-r2.ebuild b/media-sound/mpd/mpd-0.20.12-r2.ebuild
41 deleted file mode 100644
42 index 78b954370d7..00000000000
43 --- a/media-sound/mpd/mpd-0.20.12-r2.ebuild
44 +++ /dev/null
45 @@ -1,271 +0,0 @@
46 -# Copyright 1999-2018 Gentoo Foundation
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI=6
50 -
51 -inherit autotools flag-o-matic linux-info systemd user
52 -
53 -DESCRIPTION="The Music Player Daemon (mpd)"
54 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
55 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
56 -
57 -LICENSE="GPL-2"
58 -SLOT="0"
59 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
60 -IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
61 - +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack
62 - lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
63 - mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
64 - samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
65 - unicode upnp vorbis wavpack wildmidi zeroconf zip zlib webdav"
66 -
67 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
68 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
69 - modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
70 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
71 -
72 -REQUIRED_USE="
73 - || ( ${OUTPUT_PLUGINS} )
74 - || ( ${DECODER_PLUGINS} )
75 - network? ( || ( ${ENCODER_PLUGINS} ) )
76 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
77 - opus? ( ogg )
78 - upnp? ( expat )
79 - webdav? ( curl expat )
80 -"
81 -
82 -CDEPEND="
83 - adplug? ( media-libs/adplug )
84 - alsa? (
85 - media-libs/alsa-lib
86 - media-sound/alsa-utils
87 - )
88 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
89 - audiofile? ( media-libs/audiofile )
90 - bzip2? ( app-arch/bzip2 )
91 - cdio? (
92 - dev-libs/libcdio:=
93 - dev-libs/libcdio-paranoia
94 - )
95 - curl? ( net-misc/curl )
96 - expat? ( dev-libs/expat )
97 - faad? ( media-libs/faad2 )
98 - ffmpeg? (
99 - libav? ( media-video/libav:0= )
100 - !libav? ( media-video/ffmpeg:0= )
101 - )
102 - flac? ( media-libs/flac[ogg?] )
103 - fluidsynth? ( media-sound/fluidsynth )
104 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
105 - icu? ( dev-libs/icu:= )
106 - id3tag? ( media-libs/libid3tag )
107 - jack? ( virtual/jack )
108 - lame? ( network? ( media-sound/lame ) )
109 - libmpdclient? ( media-libs/libmpdclient )
110 - libsamplerate? ( media-libs/libsamplerate )
111 - libsoxr? ( media-libs/soxr )
112 - mad? ( media-libs/libmad )
113 - mikmod? ( media-libs/libmikmod:0 )
114 - mms? ( media-libs/libmms )
115 - modplug? ( media-libs/libmodplug )
116 - mpg123? ( >=media-sound/mpg123-1.12.2 )
117 - musepack? ( media-sound/musepack-tools )
118 - network? (
119 - >=media-libs/libshout-2
120 - !lame? ( !vorbis? ( media-libs/libvorbis ) )
121 - )
122 - nfs? ( net-fs/libnfs )
123 - ogg? ( media-libs/libogg )
124 - openal? ( media-libs/openal )
125 - opus? ( media-libs/opus )
126 - pulseaudio? ( media-sound/pulseaudio )
127 - samba? ( >=net-fs/samba-4.0.25 )
128 - sid? ( || (
129 - media-libs/libsidplay:2
130 - media-libs/libsidplayfp
131 - ) )
132 - sndfile? ( media-libs/libsndfile )
133 - soundcloud? ( >=dev-libs/yajl-2:= )
134 - sqlite? ( dev-db/sqlite:3 )
135 - systemd? ( sys-apps/systemd )
136 - tcpd? ( sys-apps/tcp-wrappers )
137 - twolame? ( media-sound/twolame )
138 - upnp? ( net-libs/libupnp:= )
139 - vorbis? ( media-libs/libvorbis )
140 - wavpack? ( media-sound/wavpack )
141 - wildmidi? ( media-sound/wildmidi )
142 - zeroconf? ( net-dns/avahi[dbus] )
143 - zip? ( dev-libs/zziplib )
144 - zlib? ( sys-libs/zlib )"
145 -DEPEND="${CDEPEND}
146 - dev-libs/boost
147 - virtual/pkgconfig"
148 -RDEPEND="${CDEPEND}
149 - !<sys-cluster/mpich2-1.4_rc2
150 - selinux? ( sec-policy/selinux-mpd )
151 -"
152 -
153 -PATCHES=(
154 - "${FILESDIR}"/${PN}-0.18.conf.patch
155 - "${FILESDIR}"/${PN}-0.20.10-libcdio-2.patch
156 -)
157 -
158 -pkg_setup() {
159 - use network || ewarn "Icecast and Shoutcast streaming needs networking."
160 - use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
161 -
162 - enewuser mpd "" "" "/var/lib/mpd" audio
163 -
164 - if use eventfd; then
165 - CONFIG_CHECK+=" ~EVENTFD"
166 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
167 - fi
168 - if use signalfd; then
169 - CONFIG_CHECK+=" ~SIGNALFD"
170 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
171 - fi
172 - if use inotify; then
173 - CONFIG_CHECK+=" ~INOTIFY_USER"
174 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
175 - fi
176 - if use eventfd || use signalfd || use inotify; then
177 - linux-info_pkg_setup
178 - fi
179 -
180 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
181 - sure that MPD's pid_file is _set_."
182 -}
183 -
184 -src_prepare() {
185 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
186 - default
187 - eautoreconf
188 -}
189 -
190 -src_configure() {
191 - local myeconfargs=(
192 - --enable-database --disable-roar --disable-documentation
193 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
194 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
195 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
196 - )
197 -
198 - if use network; then
199 - myeconfargs+=(
200 - --enable-shout
201 - $(use_enable vorbis vorbis-encoder)
202 - --enable-httpd-output
203 - $(use_enable lame lame-encoder)
204 - $(use_enable twolame twolame-encoder)
205 - $(use_enable audiofile wave-encoder)
206 - )
207 - else
208 - myeconfargs+=(
209 - --disable-shout
210 - --disable-vorbis-encoder
211 - --disable-httpd-output
212 - --disable-lame-encoder
213 - --disable-twolame-encoder
214 - --disable-wave-encoder
215 - )
216 - fi
217 -
218 - if use samba || use upnp; then
219 - myeconfargs+=( --enable-neighbor-plugins )
220 - fi
221 -
222 - append-lfs-flags
223 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
224 -
225 - myeconfargs+=(
226 - $(use_enable eventfd)
227 - $(use_enable signalfd)
228 - $(use_enable libmpdclient)
229 - $(use_enable expat)
230 - $(use_enable upnp)
231 - $(use_enable adplug)
232 - $(use_enable alsa)
233 - $(use_enable ao)
234 - $(use_enable audiofile)
235 - $(use_enable zlib)
236 - $(use_enable bzip2)
237 - $(use_enable cdio cdio-paranoia)
238 - $(use_enable curl)
239 - $(use_enable samba smbclient)
240 - $(use_enable nfs)
241 - $(use_enable debug)
242 - $(use_enable ffmpeg)
243 - $(use_enable fifo)
244 - $(use_enable flac)
245 - $(use_enable fluidsynth)
246 - $(use_enable gme)
247 - $(use_enable id3tag id3)
248 - $(use_enable inotify)
249 - $(use_enable ipv6)
250 - $(use_enable cdio iso9660)
251 - $(use_enable jack)
252 - $(use_enable soundcloud)
253 - $(use_enable tcpd libwrap)
254 - $(use_enable libsamplerate lsr)
255 - $(use_enable libsoxr soxr)
256 - $(use_enable mad)
257 - $(use_enable mikmod)
258 - $(use_enable mms)
259 - $(use_enable modplug)
260 - $(use_enable musepack mpc)
261 - $(use_enable mpg123)
262 - $(use_enable openal)
263 - $(use_enable opus)
264 - $(use_enable oss)
265 - $(use_enable pipe pipe-output)
266 - $(use_enable pulseaudio pulse)
267 - $(use_enable recorder recorder-output)
268 - $(use_enable sid sidplay)
269 - $(use_enable sndfile sndfile)
270 - $(use_enable sqlite)
271 - $(use_enable systemd systemd_daemon)
272 - $(use_enable vorbis)
273 - $(use_enable wavpack)
274 - $(use_enable wildmidi)
275 - $(use_enable zip zzip)
276 - $(use_enable icu)
277 - $(use_enable webdav)
278 - $(use_enable faad aac)
279 - $(use_with zeroconf zeroconf avahi)
280 - --with-boost="${EPREFIX}"/usr
281 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
282 - --with-systemduserunitdir=$(systemd_get_userunitdir)
283 - )
284 -
285 - econf "${myeconfargs[@]}"
286 -}
287 -
288 -src_install() {
289 - emake DESTDIR="${D}" install
290 -
291 - insinto /etc
292 - newins doc/mpdconf.dist mpd.conf
293 -
294 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
295 -
296 - if use unicode; then
297 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
298 - "${ED}"/etc/mpd.conf || die "sed failed"
299 - fi
300 -
301 - insinto /etc/logrotate.d
302 - newins "${FILESDIR}"/${PN}-0.20.12.logrotate ${PN}
303 -
304 - use prefix || diropts -m0755 -o mpd -g audio
305 - dodir /var/lib/mpd
306 - keepdir /var/lib/mpd
307 - dodir /var/lib/mpd/music
308 - keepdir /var/lib/mpd/music
309 - dodir /var/lib/mpd/playlists
310 - keepdir /var/lib/mpd/playlists
311 -}
312 -
313 -pkg_postinst() {
314 - # also change the homedir if the user has existed before
315 - usermod -d "/var/lib/mpd" mpd
316 -}