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