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: Fri, 16 Nov 2018 14:04:02
Message-Id: 1542376978.2dbe961c28fe7e9613ba96a1b34f4a2160e37b8c.zlogene@gentoo
1 commit: 2dbe961c28fe7e9613ba96a1b34f4a2160e37b8c
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 16 14:02:58 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 16 14:02:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dbe961c
7
8 media-sound/mpd: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 media-sound/mpd/Manifest | 1 -
14 media-sound/mpd/mpd-0.21.1-r1.ebuild | 298 -----------------------------------
15 2 files changed, 299 deletions(-)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index f71c7e90bc7..4163208f1ae 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1,4 +1,3 @@
22 DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6
23 -DIST mpd-0.21.1.tar.xz 662308 BLAKE2B 59da1cf186d5a171d447bde8e17386b49e3b4e821b4afc429b5e70a7633fe23f9ef671debda4bdf46632a12f008dbfe68966c52e4d298aca0a063dda6ca615da SHA512 9af720f7bb7120a6c6006ad21cd80a61c0f1976ced7b2e6815d5e33d8b1e9caf4e8a0047754db3eb37875176754fbf03bfd77b26232ef4aec9da48667694ba92
24 DIST mpd-0.21.2.tar.xz 664408 BLAKE2B da1cde9b5f87c3e52c90d9a743ec8bf7acbcf52f3bf28969414bcc0f3f29151fd47157dc153a094844c94f6eb50e5a3564baf66a2e87d840b7b34efc8d0f760b SHA512 a98ff2636a22f7f0e377f814d0312b03344624317a68fcd89a7c5f33a40629908cd19f8bfff5dde1eef96cebd93e92cef63153bf60b02791803532357a38e020
25 DIST mpd-0.21.3.tar.xz 664992 BLAKE2B 42e2bef46f4eb99e43c4078373dab4301cafa3062459abfed08e9f4b448a1fcfaa40da5a53941b49b426abecf2f31278fdb0857293b24156fa77845c56cbd095 SHA512 c6ce513ea641d026594cd7ae6e9051bd0060e45f5839d89b350ba144cc9094a8e1490052df4d024cbc92d88680ee8e8bae14fc8037431394771018a75c3ee3d7
26
27 diff --git a/media-sound/mpd/mpd-0.21.1-r1.ebuild b/media-sound/mpd/mpd-0.21.1-r1.ebuild
28 deleted file mode 100644
29 index 1b27c1b94a1..00000000000
30 --- a/media-sound/mpd/mpd-0.21.1-r1.ebuild
31 +++ /dev/null
32 @@ -1,298 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit flag-o-matic linux-info meson systemd user
39 -
40 -MESON_AUTO_DEPEND="no"
41 -
42 -DESCRIPTION="The Music Player Daemon (mpd)"
43 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
44 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
45 -
46 -LICENSE="GPL-2"
47 -SLOT="0"
48 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
49 -IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug
50 - +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
51 - +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms
52 - modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz
53 - recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd tcpd
54 - test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp
55 - zeroconf zip zlib"
56 -
57 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
58 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
59 - modplug mpg123 musepack flac sid vorbis wavpack wildmidi"
60 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
61 -
62 -REQUIRED_USE="
63 - || ( ${OUTPUT_PLUGINS} )
64 - || ( ${DECODER_PLUGINS} )
65 - network? ( || ( ${ENCODER_PLUGINS} ) )
66 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
67 - upnp? ( expat )
68 - webdav? ( curl expat )
69 - "
70 -
71 -RESTRICT="!test? ( test )"
72 -
73 -RDEPEND="
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 - tcpd? ( sys-apps/tcp-wrappers )
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.47.1
147 - virtual/pkgconfig"
148 -
149 -PATCHES=(
150 - "${FILESDIR}"/${PN}-0.18.conf.patch
151 -)
152 -
153 -pkg_setup() {
154 - enewuser mpd "" "" "/var/lib/mpd" audio
155 -
156 - if use eventfd; then
157 - CONFIG_CHECK+=" ~EVENTFD"
158 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
159 - fi
160 -
161 - if use signalfd; then
162 - CONFIG_CHECK+=" ~SIGNALFD"
163 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
164 - fi
165 -
166 - if use inotify; then
167 - CONFIG_CHECK+=" ~INOTIFY_USER"
168 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
169 - fi
170 -
171 - if use eventfd || use signalfd || use inotify; then
172 - linux-info_pkg_setup
173 - fi
174 -
175 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
176 - sure that MPD's pid_file is _set_."
177 -}
178 -
179 -src_prepare() {
180 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
181 - default
182 -}
183 -
184 -src_configure() {
185 - local emesonargs=(
186 - -Dbzip2=$(usex bzip2 enabled disabled)
187 - -Dcdio_paranoia=$(usex cdio enabled disabled)
188 - -Dchromaprint=$(usex chromaprint enabled disabled)
189 - -Dcue=$(usex cue true false)
190 - -Dcurl=$(usex curl enabled disabled)
191 - -Ddbus=$(usex dbus enabled disabled)
192 - -Ddebug=$(usex debug true false)
193 - -Deventfd=$(usex eventfd true false)
194 - -Dexpat=$(usex expat enabled disabled)
195 - -Dicu=$(usex icu enabled disabled)
196 - -Did3tag=$(usex id3tag enabled disabled)
197 - -Dinotify=$(usex inotify true false)
198 - -Dipv6=$(usex ipv6 enabled disabled)
199 - -Diso9660=$(usex cdio enabled disabled)
200 - -Dlibmpdclient=$(usex libmpdclient enabled disabled)
201 - -Dlibsamplerate=$(usex libsamplerate enabled disabled)
202 - -Dlibwrap=$(usex tcpd enabled disabled)
203 - -Dmms=$(usex mms enabled disabled)
204 - -Dnfs=$(usex nfs enabled disabled)
205 - -Dsignalfd=$(usex signalfd true false)
206 - -Dsmbclient=$(usex samba enabled disabled)
207 - -Dsoxr=$(usex libsoxr enabled disabled)
208 - -Dsqlite=$(usex sqlite enabled disabled)
209 - -Dsystemd=$(usex systemd enabled disabled)
210 - -Dtest=$(usex test true false)
211 - -Dudisks=$(usex udisks enabled disabled)
212 - -Dupnp=$(usex upnp enabled disabled)
213 - -Dwebdav=$(usex webdav enabled disabled)
214 - -Dzeroconf=$(usex zeroconf avahi disabled)
215 - -Dzlib=$(usex zlib enabled disabled)
216 - -Dzzip=$(usex zip enabled disabled)
217 - )
218 -
219 - emesonargs+=(
220 - -Dalsa=$(usex alsa enabled disabled)
221 - -Dao=$(usex ao enabled disabled)
222 - -Dfifo=$(usex fifo true false)
223 - -Djack=$(usex jack enabled disabled)
224 - -Dopenal=$(usex openal enabled disabled)
225 - -Doss=$(usex oss enabled disabled)
226 - -Dpipe=$(usex pipe true false)
227 - -Dpulse=$(usex pulseaudio enabled disabled)
228 - -Drecorder=$(usex recorder true false)
229 - )
230 -
231 - if use samba || use upnp; then
232 - emesonargs+=( -Dneighbor=true )
233 - fi
234 -
235 - append-lfs-flags
236 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
237 -
238 - if use network; then
239 -
240 - emesonargs+=(
241 - -Dshine=disabled
242 - -Dshout=enabled
243 - -Dvorbisenc=$(usex vorbis enabled disabled)
244 - -Dhttpd=true
245 - -Dlame=$(usex lame enabled disabled)
246 - -Dtwolame=$(usex twolame enabled disabled)
247 - -Dwave_encoder=$(usex audiofile true false)
248 - )
249 - fi
250 -
251 - emesonargs+=(
252 - -Dadplug=$(usex adplug enabled disabled)
253 - -Daudiofile=$(usex audiofile enabled disabled)
254 - -Dfaad=$(usex faad enabled disabled)
255 - -Dffmpeg=$(usex ffmpeg enabled disabled)
256 - -Dflac=$(usex flac enabled disabled)
257 - -Dfluidsynth=$(usex fluidsynth enabled disabled)
258 - -Dgme=$(usex gme enabled disabled)
259 - -Dmad=$(usex mad enabled disabled)
260 - -Dmikmod=$(usex mikmod enabled disabled)
261 - -Dmodplug=$(usex modplug enabled disabled)
262 - -Dmpcdec=$(usex musepack enabled disabled)
263 - -Dmpg123=$(usex mpg123 enabled disabled)
264 - -Dopus=$(usex opus enabled disabled)
265 - -Dsidplay=$(usex sid enabled disabled)
266 - -Dsndfile=$(usex sndfile enabled disabled)
267 - -Dvorbis=$(usex vorbis enabled disabled)
268 - -Dwavpack=$(usex wavpack enabled disabled)
269 - -Dwildmidi=$(usex wildmidi enabled disabled)
270 -
271 - )
272 -
273 - emesonargs+=(
274 - -Dqobuz=$(usex qobuz enabled disabled)
275 - -Dsoundcloud=$(usex soundcloud enabled disabled)
276 - -Dtidal=$(usex tidal enabled disabled)
277 - )
278 -
279 - emesonargs+=(
280 - --libdir="/usr/$(get_libdir)"
281 - -Ddocumentation=false
282 - -Dsndio=disabled #not yet in the tree
283 - -Dsolaris_output=disabled
284 -
285 - -Ddatabase=true
286 - -Ddsd=true
287 - -Dtcp=true
288 -
289 - -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
290 - -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
291 - )
292 -
293 - if use icu; then
294 - emesonargs+=( -Diconv=enabled )
295 - else
296 - emesonargs+=( -Diconv=disabled )
297 - fi
298 -
299 - meson_src_configure
300 -}
301 -
302 -src_install() {
303 - meson_src_install
304 -
305 - insinto /etc
306 - newins doc/mpdconf.dist mpd.conf
307 -
308 - insinto /etc/logrotate.d
309 - newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
310 -
311 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
312 -
313 - if use unicode; then
314 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
315 - "${ED}"/etc/mpd.conf || die "sed failed"
316 - fi
317 -
318 - doman doc/mpd.1
319 - doman doc/mpd.conf.5
320 -
321 - keepdir /var/lib/mpd
322 - keepdir /var/lib/mpd/music
323 - keepdir /var/lib/mpd/playlists
324 -
325 -}
326 -
327 -pkg_postinst() {
328 - # also change the homedir if the user has existed before
329 - usermod -d "/var/lib/mpd" mpd || die "usermod failed"
330 -}