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, 19 Jan 2020 07:59:36
Message-Id: 1579420766.b64f2d97c3c0e3914f0b16f136d041409e341a29.zlogene@gentoo
1 commit: b64f2d97c3c0e3914f0b16f136d041409e341a29
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 07:56:42 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 07:59:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b64f2d97
7
8 media-sound/mpd: Version bump (v0.21.19)
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-sound/mpd/Manifest | 1 +
14 media-sound/mpd/mpd-0.21.19.ebuild | 298 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 299 insertions(+)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index 94725e66073..77030e5d1c6 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1,3 +1,4 @@
22 DIST mpd-0.21.16.tar.xz 673732 BLAKE2B ed43ae9d5d40fcac0d035c24161c4db3a1b6df2b05f6a006a47beb7f7ba8ec198cbd20e34c9fcaf4e9832dbf13c57a77a9e5864d7f16de2bdd1c414d41ce391c SHA512 bb7587acd03d675ae3127ab4e196d549170551ac643e5134baa2bccaf8d7c9bba6c9a9edec9bcb61a2ec3a6ce26f4d77190323ef0329033d0cd8c1f8964be05c
23 DIST mpd-0.21.17.tar.xz 675000 BLAKE2B 708ad03104529294b92e88aa0c29560b64301417a478b93dfaa922bc257920dad7cc687e3cc06c72c7c07a91237571c55fc0e3b05746e38a804df64cc69e3e5d SHA512 71a53ec7262d7292a7227878f3d6187563727a0fabb8716bd6df70d4b96990e2d0da0ea5e59a84530cdb1b5e3046f08118c6409cc67c731c191095bd66f256ec
24 DIST mpd-0.21.18.tar.xz 676084 BLAKE2B f55ea278da4b50bf24da476ed9e3ff50a8130215702fb5c4a0accdbfeb00ed734983034ce6ee0542623e42d488555b1c709acefbba026f0e01f17f25f749b833 SHA512 68b4d9dc4be8454d7ef92df2a7b42513dc2d97bfd6b11ba99bce6709fc58ccbeab05419863bacb7a3427f1325bc88da74f9f4b48206222349085f02d0135e1a8
25 +DIST mpd-0.21.19.tar.xz 676020 BLAKE2B 295dd9067b8517739334fa09d4afc95f1167f291441bc34c4e5c4177bda66ef60eb3f4184f9192242faf64997b05d1c0a13736d1d6a3f343317271acc24a0e70 SHA512 50609b104b84b37dbb297fb40e8f4b352f13de7be5791b8d48c3af3459bfa0f0f88d1d37dcbb0d2409aaee881bca7a7bf6f871b82418ddade19829b02a2bde6a
26
27 diff --git a/media-sound/mpd/mpd-0.21.19.ebuild b/media-sound/mpd/mpd-0.21.19.ebuild
28 new file mode 100644
29 index 00000000000..3395216d6d3
30 --- /dev/null
31 +++ b/media-sound/mpd/mpd-0.21.19.ebuild
32 @@ -0,0 +1,298 @@
33 +# Copyright 1999-2020 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 xdg-utils
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 ~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
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 + acct-user/mpd
73 + adplug? ( media-libs/adplug:= )
74 + alsa? (
75 + media-libs/alsa-lib
76 + media-sound/alsa-utils
77 + )
78 +
79 + ao? ( media-libs/libao[alsa?,pulseaudio?] )
80 + audiofile? ( media-libs/audiofile:= )
81 +
82 + cdio? (
83 + dev-libs/libcdio:=
84 + dev-libs/libcdio-paranoia
85 + )
86 +
87 + chromaprint? ( media-libs/chromaprint )
88 + curl? ( net-misc/curl )
89 + dbus? ( sys-apps/dbus )
90 + expat? ( dev-libs/expat )
91 + faad? ( media-libs/faad2 )
92 +
93 + ffmpeg? (
94 + libav? ( media-video/libav:0= )
95 + !libav? ( media-video/ffmpeg:0= )
96 + )
97 +
98 + flac? ( media-libs/flac )
99 + fluidsynth? ( media-sound/fluidsynth )
100 + gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
101 + icu? ( dev-libs/icu:= )
102 + id3tag? ( media-libs/libid3tag )
103 + jack? ( virtual/jack )
104 + lame? ( network? ( media-sound/lame ) )
105 + libmpdclient? ( media-libs/libmpdclient )
106 + libsamplerate? ( media-libs/libsamplerate )
107 + libsoxr? ( media-libs/soxr )
108 + mad? ( media-libs/libmad )
109 + mikmod? ( media-libs/libmikmod )
110 + mms? ( media-libs/libmms )
111 + modplug? ( media-libs/libmodplug )
112 + mpg123? ( media-sound/mpg123 )
113 + musepack? ( media-sound/musepack-tools )
114 + network? ( media-libs/libshout )
115 + nfs? ( net-fs/libnfs )
116 + openal? ( media-libs/openal )
117 + opus? ( media-libs/opus )
118 + pulseaudio? ( media-sound/pulseaudio )
119 + qobuz? ( dev-libs/libgcrypt:0 )
120 + samba? ( net-fs/samba )
121 + selinux? ( sec-policy/selinux-mpd )
122 + sid? ( || (
123 + media-libs/libsidplay:2
124 + media-libs/libsidplayfp
125 + ) )
126 + sndfile? ( media-libs/libsndfile )
127 + soundcloud? ( >=dev-libs/yajl-2:= )
128 + sqlite? ( dev-db/sqlite:3 )
129 + systemd? ( sys-apps/systemd )
130 + tidal? ( dev-libs/yajl
131 + net-misc/curl )
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.49.2
147 + virtual/pkgconfig"
148 +
149 +PATCHES=(
150 + "${FILESDIR}"/${PN}-0.18.conf.patch
151 +)
152 +
153 +pkg_setup() {
154 + if use eventfd; then
155 + CONFIG_CHECK+=" ~EVENTFD"
156 + ERROR_EVENTFD="${P} requires eventfd in-kernel support."
157 + fi
158 +
159 + if use signalfd; then
160 + CONFIG_CHECK+=" ~SIGNALFD"
161 + ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
162 + fi
163 +
164 + if use inotify; then
165 + CONFIG_CHECK+=" ~INOTIFY_USER"
166 + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
167 + fi
168 +
169 + if use eventfd || use signalfd || use inotify; then
170 + linux-info_pkg_setup
171 + fi
172 +
173 + elog "If you will be starting mpd via /etc/init.d/mpd, please make
174 + sure that MPD's pid_file is _set_."
175 +}
176 +
177 +src_prepare() {
178 + cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
179 + default
180 +}
181 +
182 +src_configure() {
183 + local emesonargs=(
184 + -Dbzip2=$(usex bzip2 enabled disabled)
185 + -Dcdio_paranoia=$(usex cdio enabled disabled)
186 + -Dchromaprint=$(usex chromaprint enabled disabled)
187 + -Dcue=$(usex cue true false)
188 + -Dcurl=$(usex curl enabled disabled)
189 + -Ddbus=$(usex dbus enabled disabled)
190 + -Ddebug=$(usex debug true false)
191 + -Deventfd=$(usex eventfd true false)
192 + -Dexpat=$(usex expat enabled disabled)
193 + -Dicu=$(usex icu enabled disabled)
194 + -Did3tag=$(usex id3tag enabled disabled)
195 + -Dinotify=$(usex inotify true false)
196 + -Dipv6=$(usex ipv6 enabled disabled)
197 + -Diso9660=$(usex cdio enabled disabled)
198 + -Dlibmpdclient=$(usex libmpdclient enabled disabled)
199 + -Dlibsamplerate=$(usex libsamplerate 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}"/${PN}-0.21.4.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 + xdg_icon_cache_update
326 +}
327 +
328 +pkg_postrm() {
329 + xdg_icon_cache_update
330 +}