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: Wed, 25 Dec 2019 12:54:11
Message-Id: 1577278431.8218d7d0c878af72d2aa5e5b7ecf96c3699b8041.zlogene@gentoo
1 commit: 8218d7d0c878af72d2aa5e5b7ecf96c3699b8041
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 25 12:53:51 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 25 12:53:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8218d7d0
7
8 media-sound/mpd: Version bump Version bump (0.21.18)
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.18.ebuild | 298 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 299 insertions(+)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index 15bd4310026..94725e66073 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1,2 +1,3 @@
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
26 diff --git a/media-sound/mpd/mpd-0.21.18.ebuild b/media-sound/mpd/mpd-0.21.18.ebuild
27 new file mode 100644
28 index 00000000000..e3d021775eb
29 --- /dev/null
30 +++ b/media-sound/mpd/mpd-0.21.18.ebuild
31 @@ -0,0 +1,298 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic linux-info meson systemd xdg-utils
38 +
39 +DESCRIPTION="The Music Player Daemon (mpd)"
40 +HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
41 +SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x64-macos"
46 +IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug
47 + +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
48 + +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms
49 + modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz
50 + recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd
51 + test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp
52 + zeroconf zip zlib"
53 +
54 +OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
55 +DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
56 + modplug mpg123 musepack flac sid vorbis wavpack wildmidi"
57 +ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
58 +
59 +REQUIRED_USE="
60 + || ( ${OUTPUT_PLUGINS} )
61 + || ( ${DECODER_PLUGINS} )
62 + network? ( || ( ${ENCODER_PLUGINS} ) )
63 + recorder? ( || ( ${ENCODER_PLUGINS} ) )
64 + upnp? ( expat )
65 + webdav? ( curl expat )
66 + "
67 +
68 +RESTRICT="!test? ( test )"
69 +
70 +RDEPEND="
71 + acct-user/mpd
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 + tidal? ( dev-libs/yajl
130 + net-misc/curl )
131 + twolame? ( media-sound/twolame )
132 + udisks? ( sys-fs/udisks:2 )
133 + upnp? ( net-libs/libupnp:0 )
134 + vorbis? ( media-libs/libvorbis )
135 + wavpack? ( media-sound/wavpack )
136 + wildmidi? ( media-sound/wildmidi )
137 + zeroconf? ( net-dns/avahi[dbus] )
138 + zip? ( dev-libs/zziplib )
139 + zlib? ( sys-libs/zlib:= )"
140 +
141 +DEPEND="${RDEPEND}
142 + >=dev-libs/boost-1.58:=
143 + test? ( dev-cpp/gtest )"
144 +
145 +BDEPEND=">=dev-util/meson-0.49.2
146 + virtual/pkgconfig"
147 +
148 +PATCHES=(
149 + "${FILESDIR}"/${PN}-0.18.conf.patch
150 +)
151 +
152 +pkg_setup() {
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 + -Dmms=$(usex mms enabled disabled)
200 + -Dnfs=$(usex nfs enabled disabled)
201 + -Dsignalfd=$(usex signalfd true false)
202 + -Dsmbclient=$(usex samba enabled disabled)
203 + -Dsoxr=$(usex libsoxr enabled disabled)
204 + -Dsqlite=$(usex sqlite enabled disabled)
205 + -Dsystemd=$(usex systemd enabled disabled)
206 + -Dtest=$(usex test true false)
207 + -Dudisks=$(usex udisks enabled disabled)
208 + -Dupnp=$(usex upnp enabled disabled)
209 + -Dwebdav=$(usex webdav enabled disabled)
210 + -Dzeroconf=$(usex zeroconf avahi disabled)
211 + -Dzlib=$(usex zlib enabled disabled)
212 + -Dzzip=$(usex zip enabled disabled)
213 + )
214 +
215 + emesonargs+=(
216 + -Dalsa=$(usex alsa enabled disabled)
217 + -Dao=$(usex ao enabled disabled)
218 + -Dfifo=$(usex fifo true false)
219 + -Djack=$(usex jack enabled disabled)
220 + -Dopenal=$(usex openal enabled disabled)
221 + -Doss=$(usex oss enabled disabled)
222 + -Dpipe=$(usex pipe true false)
223 + -Dpulse=$(usex pulseaudio enabled disabled)
224 + -Drecorder=$(usex recorder true false)
225 + )
226 +
227 + if use samba || use upnp; then
228 + emesonargs+=( -Dneighbor=true )
229 + fi
230 +
231 + append-lfs-flags
232 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
233 +
234 + if use network; then
235 +
236 + emesonargs+=(
237 + -Dshine=disabled
238 + -Dshout=enabled
239 + -Dvorbisenc=$(usex vorbis enabled disabled)
240 + -Dhttpd=true
241 + -Dlame=$(usex lame enabled disabled)
242 + -Dtwolame=$(usex twolame enabled disabled)
243 + -Dwave_encoder=$(usex audiofile true false)
244 + )
245 + fi
246 +
247 + emesonargs+=(
248 + -Dadplug=$(usex adplug enabled disabled)
249 + -Daudiofile=$(usex audiofile enabled disabled)
250 + -Dfaad=$(usex faad enabled disabled)
251 + -Dffmpeg=$(usex ffmpeg enabled disabled)
252 + -Dflac=$(usex flac enabled disabled)
253 + -Dfluidsynth=$(usex fluidsynth enabled disabled)
254 + -Dgme=$(usex gme enabled disabled)
255 + -Dmad=$(usex mad enabled disabled)
256 + -Dmikmod=$(usex mikmod enabled disabled)
257 + -Dmodplug=$(usex modplug enabled disabled)
258 + -Dmpcdec=$(usex musepack enabled disabled)
259 + -Dmpg123=$(usex mpg123 enabled disabled)
260 + -Dopus=$(usex opus enabled disabled)
261 + -Dsidplay=$(usex sid enabled disabled)
262 + -Dsndfile=$(usex sndfile enabled disabled)
263 + -Dvorbis=$(usex vorbis enabled disabled)
264 + -Dwavpack=$(usex wavpack enabled disabled)
265 + -Dwildmidi=$(usex wildmidi enabled disabled)
266 +
267 + )
268 +
269 + emesonargs+=(
270 + -Dqobuz=$(usex qobuz enabled disabled)
271 + -Dsoundcloud=$(usex soundcloud enabled disabled)
272 + -Dtidal=$(usex tidal enabled disabled)
273 + )
274 +
275 + emesonargs+=(
276 + --libdir="/usr/$(get_libdir)"
277 + -Ddocumentation=false
278 + -Dsndio=disabled #not yet in the tree
279 + -Dsolaris_output=disabled
280 +
281 + -Ddatabase=true
282 + -Ddsd=true
283 + -Dtcp=true
284 +
285 + -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
286 + -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
287 + )
288 +
289 + if use icu; then
290 + emesonargs+=( -Diconv=enabled )
291 + else
292 + emesonargs+=( -Diconv=disabled )
293 + fi
294 +
295 + meson_src_configure
296 +}
297 +
298 +src_install() {
299 + meson_src_install
300 +
301 + insinto /etc
302 + newins doc/mpdconf.dist mpd.conf
303 +
304 + insinto /etc/logrotate.d
305 + newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
306 +
307 + newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN}
308 +
309 + if use unicode; then
310 + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
311 + "${ED}"/etc/mpd.conf || die "sed failed"
312 + fi
313 +
314 + doman doc/mpd.1
315 + doman doc/mpd.conf.5
316 +
317 + keepdir /var/lib/mpd
318 + keepdir /var/lib/mpd/music
319 + keepdir /var/lib/mpd/playlists
320 +
321 +}
322 +
323 +pkg_postinst() {
324 + xdg_icon_cache_update
325 +}
326 +
327 +pkg_postrm() {
328 + xdg_icon_cache_update
329 +}