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: Sun, 24 Feb 2019 08:10:21
Message-Id: 1550995782.972a120498847d4766b3f02257667cfda7b21292.zlogene@gentoo
1 commit: 972a120498847d4766b3f02257667cfda7b21292
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 24 08:09:20 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 24 08:09:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=972a1204
7
8 Revert "media-sound/mpd: Version bump (v0.21.5)"
9
10 This reverts commit 98a1b332be3034a237a53c449fab578974c42691.
11
12 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
13
14 media-sound/mpd/Manifest | 1 -
15 media-sound/mpd/mpd-0.21.5.ebuild | 295 --------------------------------------
16 2 files changed, 296 deletions(-)
17
18 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
19 index c7056fa3ea4..491f415937a 100644
20 --- a/media-sound/mpd/Manifest
21 +++ b/media-sound/mpd/Manifest
22 @@ -1,3 +1,2 @@
23 DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6
24 DIST mpd-0.21.4.tar.xz 663648 BLAKE2B c9226d2b02b1035091d3af535c269aec3fead779bf17d95b858706affb84089ca85250452884ed5ee96008724735abf80cdfa4d2de14d9928748284d753a4638 SHA512 454fde206f98f89a58ac773037963ac895ee6ce3e7d1032c49b980a3bfbbb69782a62900a5c09e4b39f24b2d1bcd380d7b520935563dd3b8d02f701389389ca7
25 -DIST mpd-0.21.5.tar.xz 667624 BLAKE2B d4de4c55306a42caf4f79ee469db2037c0217563d50d7a4ed349d0c2c61cab1c6e519da96f552f38692bedf18ffbdb2032ae0a3314a05b2f2461c2da526f85e5 SHA512 b3a938f43cd554e0e761890ca7ea910e21b8f98f54f5bfceb0efcbef4df46db0d110d1bbc24a233021b463e3424d6246c1013f5a6ebdfc85a418008d49ced7a4
26
27 diff --git a/media-sound/mpd/mpd-0.21.5.ebuild b/media-sound/mpd/mpd-0.21.5.ebuild
28 deleted file mode 100644
29 index 51216f324c5..00000000000
30 --- a/media-sound/mpd/mpd-0.21.5.ebuild
31 +++ /dev/null
32 @@ -1,295 +0,0 @@
33 -# Copyright 1999-2019 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 -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 chromaprint +cue +curl +dbus debug
48 - +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
49 - +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms
50 - modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz
51 - recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd tcpd
52 - test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp
53 - zeroconf zip zlib"
54 -
55 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
56 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
57 - modplug mpg123 musepack flac sid vorbis wavpack wildmidi"
58 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
59 -
60 -REQUIRED_USE="
61 - || ( ${OUTPUT_PLUGINS} )
62 - || ( ${DECODER_PLUGINS} )
63 - network? ( || ( ${ENCODER_PLUGINS} ) )
64 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
65 - upnp? ( expat )
66 - webdav? ( curl expat )
67 - "
68 -
69 -RESTRICT="!test? ( test )"
70 -
71 -RDEPEND="
72 - adplug? ( media-libs/adplug:= )
73 - alsa? (
74 - media-libs/alsa-lib
75 - media-sound/alsa-utils
76 - )
77 -
78 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
79 - audiofile? ( media-libs/audiofile:= )
80 -
81 - cdio? (
82 - dev-libs/libcdio:=
83 - dev-libs/libcdio-paranoia
84 - )
85 -
86 - chromaprint? ( media-libs/chromaprint )
87 - curl? ( net-misc/curl )
88 - dbus? ( sys-apps/dbus )
89 - expat? ( dev-libs/expat )
90 - faad? ( media-libs/faad2 )
91 -
92 - ffmpeg? (
93 - libav? ( media-video/libav:0= )
94 - !libav? ( media-video/ffmpeg:0= )
95 - )
96 -
97 - flac? ( media-libs/flac )
98 - fluidsynth? ( media-sound/fluidsynth )
99 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
100 - icu? ( dev-libs/icu:= )
101 - id3tag? ( media-libs/libid3tag )
102 - jack? ( virtual/jack )
103 - lame? ( network? ( media-sound/lame ) )
104 - libmpdclient? ( media-libs/libmpdclient )
105 - libsamplerate? ( media-libs/libsamplerate )
106 - libsoxr? ( media-libs/soxr )
107 - mad? ( media-libs/libmad )
108 - mikmod? ( media-libs/libmikmod )
109 - mms? ( media-libs/libmms )
110 - modplug? ( media-libs/libmodplug )
111 - mpg123? ( media-sound/mpg123 )
112 - musepack? ( media-sound/musepack-tools )
113 - network? ( media-libs/libshout )
114 - nfs? ( net-fs/libnfs )
115 - openal? ( media-libs/openal )
116 - opus? ( media-libs/opus )
117 - pulseaudio? ( media-sound/pulseaudio )
118 - qobuz? ( dev-libs/libgcrypt:0 )
119 - samba? ( net-fs/samba )
120 - selinux? ( sec-policy/selinux-mpd )
121 - sid? ( || (
122 - media-libs/libsidplay:2
123 - media-libs/libsidplayfp
124 - ) )
125 - sndfile? ( media-libs/libsndfile )
126 - soundcloud? ( >=dev-libs/yajl-2:= )
127 - sqlite? ( dev-db/sqlite:3 )
128 - systemd? ( sys-apps/systemd )
129 - tcpd? ( sys-apps/tcp-wrappers )
130 - twolame? ( media-sound/twolame )
131 - udisks? ( sys-fs/udisks:2 )
132 - upnp? ( net-libs/libupnp:0 )
133 - vorbis? ( media-libs/libvorbis )
134 - wavpack? ( media-sound/wavpack )
135 - wildmidi? ( media-sound/wildmidi )
136 - zeroconf? ( net-dns/avahi[dbus] )
137 - zip? ( dev-libs/zziplib )
138 - zlib? ( sys-libs/zlib:= )"
139 -
140 -DEPEND="${RDEPEND}
141 - >=dev-libs/boost-1.58:=
142 - test? ( dev-cpp/gtest )"
143 -
144 -BDEPEND="virtual/pkgconfig"
145 -
146 -PATCHES=(
147 - "${FILESDIR}"/${PN}-0.18.conf.patch
148 -)
149 -
150 -pkg_setup() {
151 - enewuser mpd "" "" "/var/lib/mpd" audio
152 -
153 - if use eventfd; then
154 - CONFIG_CHECK+=" ~EVENTFD"
155 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
156 - fi
157 -
158 - if use signalfd; then
159 - CONFIG_CHECK+=" ~SIGNALFD"
160 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
161 - fi
162 -
163 - if use inotify; then
164 - CONFIG_CHECK+=" ~INOTIFY_USER"
165 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
166 - fi
167 -
168 - if use eventfd || use signalfd || use inotify; then
169 - linux-info_pkg_setup
170 - fi
171 -
172 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
173 - sure that MPD's pid_file is _set_."
174 -}
175 -
176 -src_prepare() {
177 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
178 - default
179 -}
180 -
181 -src_configure() {
182 - local emesonargs=(
183 - -Dbzip2=$(usex bzip2 enabled disabled)
184 - -Dcdio_paranoia=$(usex cdio enabled disabled)
185 - -Dchromaprint=$(usex chromaprint enabled disabled)
186 - -Dcue=$(usex cue true false)
187 - -Dcurl=$(usex curl enabled disabled)
188 - -Ddbus=$(usex dbus enabled disabled)
189 - -Ddebug=$(usex debug true false)
190 - -Deventfd=$(usex eventfd true false)
191 - -Dexpat=$(usex expat enabled disabled)
192 - -Dicu=$(usex icu enabled disabled)
193 - -Did3tag=$(usex id3tag enabled disabled)
194 - -Dinotify=$(usex inotify true false)
195 - -Dipv6=$(usex ipv6 enabled disabled)
196 - -Diso9660=$(usex cdio enabled disabled)
197 - -Dlibmpdclient=$(usex libmpdclient enabled disabled)
198 - -Dlibsamplerate=$(usex libsamplerate enabled disabled)
199 - -Dlibwrap=$(usex tcpd 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 - -Dadplug=$(usex adplug enabled disabled)
250 - -Daudiofile=$(usex audiofile enabled disabled)
251 - -Dfaad=$(usex faad enabled disabled)
252 - -Dffmpeg=$(usex ffmpeg enabled disabled)
253 - -Dflac=$(usex flac enabled disabled)
254 - -Dfluidsynth=$(usex fluidsynth enabled disabled)
255 - -Dgme=$(usex gme enabled disabled)
256 - -Dmad=$(usex mad enabled disabled)
257 - -Dmikmod=$(usex mikmod enabled disabled)
258 - -Dmodplug=$(usex modplug enabled disabled)
259 - -Dmpcdec=$(usex musepack enabled disabled)
260 - -Dmpg123=$(usex mpg123 enabled disabled)
261 - -Dopus=$(usex opus enabled disabled)
262 - -Dsidplay=$(usex sid enabled disabled)
263 - -Dsndfile=$(usex sndfile enabled disabled)
264 - -Dvorbis=$(usex vorbis enabled disabled)
265 - -Dwavpack=$(usex wavpack enabled disabled)
266 - -Dwildmidi=$(usex wildmidi enabled disabled)
267 -
268 - )
269 -
270 - emesonargs+=(
271 - -Dqobuz=$(usex qobuz enabled disabled)
272 - -Dsoundcloud=$(usex soundcloud enabled disabled)
273 - -Dtidal=$(usex tidal enabled disabled)
274 - )
275 -
276 - emesonargs+=(
277 - --libdir="/usr/$(get_libdir)"
278 - -Ddocumentation=false
279 - -Dsndio=disabled #not yet in the tree
280 - -Dsolaris_output=disabled
281 -
282 - -Ddatabase=true
283 - -Ddsd=true
284 - -Dtcp=true
285 -
286 - -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
287 - -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
288 - )
289 -
290 - if use icu; then
291 - emesonargs+=( -Diconv=enabled )
292 - else
293 - emesonargs+=( -Diconv=disabled )
294 - fi
295 -
296 - meson_src_configure
297 -}
298 -
299 -src_install() {
300 - meson_src_install
301 -
302 - insinto /etc
303 - newins doc/mpdconf.dist mpd.conf
304 -
305 - insinto /etc/logrotate.d
306 - newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
307 -
308 - newinitd "${FILESDIR}"/${P}.init ${PN}
309 -
310 - if use unicode; then
311 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
312 - "${ED}"/etc/mpd.conf || die "sed failed"
313 - fi
314 -
315 - doman doc/mpd.1
316 - doman doc/mpd.conf.5
317 -
318 - keepdir /var/lib/mpd
319 - keepdir /var/lib/mpd/music
320 - keepdir /var/lib/mpd/playlists
321 -
322 -}
323 -
324 -pkg_postinst() {
325 - # also change the homedir if the user has existed before
326 - usermod -d "/var/lib/mpd" mpd || die "usermod failed"
327 -}