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, 22 Jan 2019 17:32:30
Message-Id: 1548178320.3f6f1286aaf6c8e39521e04dde474151c1d7de12.zlogene@gentoo
1 commit: 3f6f1286aaf6c8e39521e04dde474151c1d7de12
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 22 17:32:00 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 22 17:32:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f6f1286
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/mpd-0.21.4.ebuild | 298 --------------------------------------
14 1 file changed, 298 deletions(-)
15
16 diff --git a/media-sound/mpd/mpd-0.21.4.ebuild b/media-sound/mpd/mpd-0.21.4.ebuild
17 deleted file mode 100644
18 index e93c903ec20..00000000000
19 --- a/media-sound/mpd/mpd-0.21.4.ebuild
20 +++ /dev/null
21 @@ -1,298 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -inherit flag-o-matic linux-info meson systemd user
28 -
29 -MESON_AUTO_DEPEND="no"
30 -
31 -DESCRIPTION="The Music Player Daemon (mpd)"
32 -HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
33 -SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
38 -IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug
39 - +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
40 - +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms
41 - modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz
42 - recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd tcpd
43 - test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp
44 - zeroconf zip zlib"
45 -
46 -OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
47 -DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
48 - modplug mpg123 musepack flac sid vorbis wavpack wildmidi"
49 -ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
50 -
51 -REQUIRED_USE="
52 - || ( ${OUTPUT_PLUGINS} )
53 - || ( ${DECODER_PLUGINS} )
54 - network? ( || ( ${ENCODER_PLUGINS} ) )
55 - recorder? ( || ( ${ENCODER_PLUGINS} ) )
56 - upnp? ( expat )
57 - webdav? ( curl expat )
58 - "
59 -
60 -RESTRICT="!test? ( test )"
61 -
62 -RDEPEND="
63 - adplug? ( media-libs/adplug:= )
64 - alsa? (
65 - media-libs/alsa-lib
66 - media-sound/alsa-utils
67 - )
68 -
69 - ao? ( media-libs/libao[alsa?,pulseaudio?] )
70 - audiofile? ( media-libs/audiofile:= )
71 -
72 - cdio? (
73 - dev-libs/libcdio:=
74 - dev-libs/libcdio-paranoia
75 - )
76 -
77 - chromaprint? ( media-libs/chromaprint )
78 - curl? ( net-misc/curl )
79 - dbus? ( sys-apps/dbus )
80 - expat? ( dev-libs/expat )
81 - faad? ( media-libs/faad2 )
82 -
83 - ffmpeg? (
84 - libav? ( media-video/libav:0= )
85 - !libav? ( media-video/ffmpeg:0= )
86 - )
87 -
88 - flac? ( media-libs/flac )
89 - fluidsynth? ( media-sound/fluidsynth )
90 - gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
91 - icu? ( dev-libs/icu:= )
92 - id3tag? ( media-libs/libid3tag )
93 - jack? ( virtual/jack )
94 - lame? ( network? ( media-sound/lame ) )
95 - libmpdclient? ( media-libs/libmpdclient )
96 - libsamplerate? ( media-libs/libsamplerate )
97 - libsoxr? ( media-libs/soxr )
98 - mad? ( media-libs/libmad )
99 - mikmod? ( media-libs/libmikmod )
100 - mms? ( media-libs/libmms )
101 - modplug? ( media-libs/libmodplug )
102 - mpg123? ( media-sound/mpg123 )
103 - musepack? ( media-sound/musepack-tools )
104 - network? ( media-libs/libshout )
105 - nfs? ( net-fs/libnfs )
106 - openal? ( media-libs/openal )
107 - opus? ( media-libs/opus )
108 - pulseaudio? ( media-sound/pulseaudio )
109 - qobuz? ( dev-libs/libgcrypt:0 )
110 - samba? ( net-fs/samba )
111 - selinux? ( sec-policy/selinux-mpd )
112 - sid? ( || (
113 - media-libs/libsidplay:2
114 - media-libs/libsidplayfp
115 - ) )
116 - sndfile? ( media-libs/libsndfile )
117 - soundcloud? ( >=dev-libs/yajl-2:= )
118 - sqlite? ( dev-db/sqlite:3 )
119 - systemd? ( sys-apps/systemd )
120 - tcpd? ( sys-apps/tcp-wrappers )
121 - twolame? ( media-sound/twolame )
122 - udisks? ( sys-fs/udisks:2 )
123 - upnp? ( net-libs/libupnp:0 )
124 - vorbis? ( media-libs/libvorbis )
125 - wavpack? ( media-sound/wavpack )
126 - wildmidi? ( media-sound/wildmidi )
127 - zeroconf? ( net-dns/avahi[dbus] )
128 - zip? ( dev-libs/zziplib )
129 - zlib? ( sys-libs/zlib:= )"
130 -
131 -DEPEND="${RDEPEND}
132 - >=dev-libs/boost-1.58:=
133 - test? ( dev-cpp/gtest )"
134 -
135 -BDEPEND=">dev-util/meson-0.47.1
136 - virtual/pkgconfig"
137 -
138 -PATCHES=(
139 - "${FILESDIR}"/${PN}-0.18.conf.patch
140 -)
141 -
142 -pkg_setup() {
143 - enewuser mpd "" "" "/var/lib/mpd" audio
144 -
145 - if use eventfd; then
146 - CONFIG_CHECK+=" ~EVENTFD"
147 - ERROR_EVENTFD="${P} requires eventfd in-kernel support."
148 - fi
149 -
150 - if use signalfd; then
151 - CONFIG_CHECK+=" ~SIGNALFD"
152 - ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
153 - fi
154 -
155 - if use inotify; then
156 - CONFIG_CHECK+=" ~INOTIFY_USER"
157 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
158 - fi
159 -
160 - if use eventfd || use signalfd || use inotify; then
161 - linux-info_pkg_setup
162 - fi
163 -
164 - elog "If you will be starting mpd via /etc/init.d/mpd, please make
165 - sure that MPD's pid_file is _set_."
166 -}
167 -
168 -src_prepare() {
169 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
170 - default
171 -}
172 -
173 -src_configure() {
174 - local emesonargs=(
175 - -Dbzip2=$(usex bzip2 enabled disabled)
176 - -Dcdio_paranoia=$(usex cdio enabled disabled)
177 - -Dchromaprint=$(usex chromaprint enabled disabled)
178 - -Dcue=$(usex cue true false)
179 - -Dcurl=$(usex curl enabled disabled)
180 - -Ddbus=$(usex dbus enabled disabled)
181 - -Ddebug=$(usex debug true false)
182 - -Deventfd=$(usex eventfd true false)
183 - -Dexpat=$(usex expat enabled disabled)
184 - -Dicu=$(usex icu enabled disabled)
185 - -Did3tag=$(usex id3tag enabled disabled)
186 - -Dinotify=$(usex inotify true false)
187 - -Dipv6=$(usex ipv6 enabled disabled)
188 - -Diso9660=$(usex cdio enabled disabled)
189 - -Dlibmpdclient=$(usex libmpdclient enabled disabled)
190 - -Dlibsamplerate=$(usex libsamplerate enabled disabled)
191 - -Dlibwrap=$(usex tcpd enabled disabled)
192 - -Dmms=$(usex mms enabled disabled)
193 - -Dnfs=$(usex nfs enabled disabled)
194 - -Dsignalfd=$(usex signalfd true false)
195 - -Dsmbclient=$(usex samba enabled disabled)
196 - -Dsoxr=$(usex libsoxr enabled disabled)
197 - -Dsqlite=$(usex sqlite enabled disabled)
198 - -Dsystemd=$(usex systemd enabled disabled)
199 - -Dtest=$(usex test true false)
200 - -Dudisks=$(usex udisks enabled disabled)
201 - -Dupnp=$(usex upnp enabled disabled)
202 - -Dwebdav=$(usex webdav enabled disabled)
203 - -Dzeroconf=$(usex zeroconf avahi disabled)
204 - -Dzlib=$(usex zlib enabled disabled)
205 - -Dzzip=$(usex zip enabled disabled)
206 - )
207 -
208 - emesonargs+=(
209 - -Dalsa=$(usex alsa enabled disabled)
210 - -Dao=$(usex ao enabled disabled)
211 - -Dfifo=$(usex fifo true false)
212 - -Djack=$(usex jack enabled disabled)
213 - -Dopenal=$(usex openal enabled disabled)
214 - -Doss=$(usex oss enabled disabled)
215 - -Dpipe=$(usex pipe true false)
216 - -Dpulse=$(usex pulseaudio enabled disabled)
217 - -Drecorder=$(usex recorder true false)
218 - )
219 -
220 - if use samba || use upnp; then
221 - emesonargs+=( -Dneighbor=true )
222 - fi
223 -
224 - append-lfs-flags
225 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
226 -
227 - if use network; then
228 -
229 - emesonargs+=(
230 - -Dshine=disabled
231 - -Dshout=enabled
232 - -Dvorbisenc=$(usex vorbis enabled disabled)
233 - -Dhttpd=true
234 - -Dlame=$(usex lame enabled disabled)
235 - -Dtwolame=$(usex twolame enabled disabled)
236 - -Dwave_encoder=$(usex audiofile true false)
237 - )
238 - fi
239 -
240 - emesonargs+=(
241 - -Dadplug=$(usex adplug enabled disabled)
242 - -Daudiofile=$(usex audiofile enabled disabled)
243 - -Dfaad=$(usex faad enabled disabled)
244 - -Dffmpeg=$(usex ffmpeg enabled disabled)
245 - -Dflac=$(usex flac enabled disabled)
246 - -Dfluidsynth=$(usex fluidsynth enabled disabled)
247 - -Dgme=$(usex gme enabled disabled)
248 - -Dmad=$(usex mad enabled disabled)
249 - -Dmikmod=$(usex mikmod enabled disabled)
250 - -Dmodplug=$(usex modplug enabled disabled)
251 - -Dmpcdec=$(usex musepack enabled disabled)
252 - -Dmpg123=$(usex mpg123 enabled disabled)
253 - -Dopus=$(usex opus enabled disabled)
254 - -Dsidplay=$(usex sid enabled disabled)
255 - -Dsndfile=$(usex sndfile enabled disabled)
256 - -Dvorbis=$(usex vorbis enabled disabled)
257 - -Dwavpack=$(usex wavpack enabled disabled)
258 - -Dwildmidi=$(usex wildmidi enabled disabled)
259 -
260 - )
261 -
262 - emesonargs+=(
263 - -Dqobuz=$(usex qobuz enabled disabled)
264 - -Dsoundcloud=$(usex soundcloud enabled disabled)
265 - -Dtidal=$(usex tidal enabled disabled)
266 - )
267 -
268 - emesonargs+=(
269 - --libdir="/usr/$(get_libdir)"
270 - -Ddocumentation=false
271 - -Dsndio=disabled #not yet in the tree
272 - -Dsolaris_output=disabled
273 -
274 - -Ddatabase=true
275 - -Ddsd=true
276 - -Dtcp=true
277 -
278 - -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
279 - -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
280 - )
281 -
282 - if use icu; then
283 - emesonargs+=( -Diconv=enabled )
284 - else
285 - emesonargs+=( -Diconv=disabled )
286 - fi
287 -
288 - meson_src_configure
289 -}
290 -
291 -src_install() {
292 - meson_src_install
293 -
294 - insinto /etc
295 - newins doc/mpdconf.dist mpd.conf
296 -
297 - insinto /etc/logrotate.d
298 - newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
299 -
300 - newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
301 -
302 - if use unicode; then
303 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
304 - "${ED}"/etc/mpd.conf || die "sed failed"
305 - fi
306 -
307 - doman doc/mpd.1
308 - doman doc/mpd.conf.5
309 -
310 - keepdir /var/lib/mpd
311 - keepdir /var/lib/mpd/music
312 - keepdir /var/lib/mpd/playlists
313 -
314 -}
315 -
316 -pkg_postinst() {
317 - # also change the homedir if the user has existed before
318 - usermod -d "/var/lib/mpd" mpd || die "usermod failed"
319 -}