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