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, 07 Aug 2019 08:19:15
Message-Id: 1565165935.26362c09ae049bae1f662b50aab4c0774a4e94a0.zlogene@gentoo
1 commit: 26362c09ae049bae1f662b50aab4c0774a4e94a0
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 7 08:18:55 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 7 08:18:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26362c09
7
8 media-sound/mpd: Version bump (v0.21.13)
9
10 Package-Manager: Portage-2.3.69, 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.13.ebuild | 296 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 297 insertions(+)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index cb8282a4614..40fe268feed 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1,3 +1,4 @@
22 DIST mpd-0.21.10.tar.xz 670952 BLAKE2B efebbd5202b82e52800ff7e4f60fb9e7606e0b07cb157cf0bf04859887316a8466976095bc1cb83479f76f4a54074967ecfd3bbd1bf703e6ff6d5b8ad75a7816 SHA512 42272ab5f767c5a6b907f5dd922ca35abc759dfbb4769a235261fdf0433a0f70494f503255403d41dfd34902bd6aff21f48291b24fd5bc260a5fdef53800c991
23 DIST mpd-0.21.11.tar.xz 671444 BLAKE2B d10e65103e9c0c6dfc44f8d4858c202ad68a5e7a44bd7dd473b7f78c697b20ab7d52d2bff0f7e7434ce06b1afb9a68e6f71ca6148efdf51e122c463506b356b2 SHA512 40e25428295f1bded618872c1450f6836c46b2e788dca06d0af134b939a25a7a9a215273bb005306df288e5dc5ccb44d4054c47e5583e54b970fa252e4b030a7
24 DIST mpd-0.21.12.tar.xz 672144 BLAKE2B 06eda513314fcb028784115cfc378d0d6482174565ee843a2025af7b2af1fdd7dfadc05b08981e227d11b615aa457f979e80170bc1a91886648f464772240ece SHA512 d35eb7162cfb50c10d57d1d4b035f6c4f7088fb930add97c2159c7b29ab9d7ed33a8b4d22640af78527387305b9f5d380c7c03b98cf957dc1519f772d842e7e3
25 +DIST mpd-0.21.13.tar.xz 672184 BLAKE2B 5aad54f0d747034f3e43f741ecaeff8317a91192c125a4631e99978f7f9c7274a921a05b92a4496fb53f70ee428321f5ae92f96386e439733c028664d80c4dc1 SHA512 626e658b4d53408be5419ce3a93a19005da5c5386119b241c1572eaaba96a628f941d5f46977de08e1de736eeab6cd6ba274d5df8f1df3e3f4b0df064a6ec43d
26
27 diff --git a/media-sound/mpd/mpd-0.21.13.ebuild b/media-sound/mpd/mpd-0.21.13.ebuild
28 new file mode 100644
29 index 00000000000..969b82d8481
30 --- /dev/null
31 +++ b/media-sound/mpd/mpd-0.21.13.ebuild
32 @@ -0,0 +1,296 @@
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=">=dev-util/meson-0.49.2
145 + virtual/pkgconfig"
146 +
147 +PATCHES=(
148 + "${FILESDIR}"/${PN}-0.18.conf.patch
149 +)
150 +
151 +pkg_setup() {
152 + enewuser mpd "" "" "/var/lib/mpd" audio
153 +
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 + -Dlibwrap=$(usex tcpd enabled disabled)
201 + -Dmms=$(usex mms enabled disabled)
202 + -Dnfs=$(usex nfs enabled disabled)
203 + -Dsignalfd=$(usex signalfd true false)
204 + -Dsmbclient=$(usex samba enabled disabled)
205 + -Dsoxr=$(usex libsoxr enabled disabled)
206 + -Dsqlite=$(usex sqlite enabled disabled)
207 + -Dsystemd=$(usex systemd enabled disabled)
208 + -Dtest=$(usex test true false)
209 + -Dudisks=$(usex udisks enabled disabled)
210 + -Dupnp=$(usex upnp enabled disabled)
211 + -Dwebdav=$(usex webdav enabled disabled)
212 + -Dzeroconf=$(usex zeroconf avahi disabled)
213 + -Dzlib=$(usex zlib enabled disabled)
214 + -Dzzip=$(usex zip enabled disabled)
215 + )
216 +
217 + emesonargs+=(
218 + -Dalsa=$(usex alsa enabled disabled)
219 + -Dao=$(usex ao enabled disabled)
220 + -Dfifo=$(usex fifo true false)
221 + -Djack=$(usex jack enabled disabled)
222 + -Dopenal=$(usex openal enabled disabled)
223 + -Doss=$(usex oss enabled disabled)
224 + -Dpipe=$(usex pipe true false)
225 + -Dpulse=$(usex pulseaudio enabled disabled)
226 + -Drecorder=$(usex recorder true false)
227 + )
228 +
229 + if use samba || use upnp; then
230 + emesonargs+=( -Dneighbor=true )
231 + fi
232 +
233 + append-lfs-flags
234 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
235 +
236 + if use network; then
237 +
238 + emesonargs+=(
239 + -Dshine=disabled
240 + -Dshout=enabled
241 + -Dvorbisenc=$(usex vorbis enabled disabled)
242 + -Dhttpd=true
243 + -Dlame=$(usex lame enabled disabled)
244 + -Dtwolame=$(usex twolame enabled disabled)
245 + -Dwave_encoder=$(usex audiofile true false)
246 + )
247 + fi
248 +
249 + emesonargs+=(
250 + -Dadplug=$(usex adplug enabled disabled)
251 + -Daudiofile=$(usex audiofile enabled disabled)
252 + -Dfaad=$(usex faad enabled disabled)
253 + -Dffmpeg=$(usex ffmpeg enabled disabled)
254 + -Dflac=$(usex flac enabled disabled)
255 + -Dfluidsynth=$(usex fluidsynth enabled disabled)
256 + -Dgme=$(usex gme enabled disabled)
257 + -Dmad=$(usex mad enabled disabled)
258 + -Dmikmod=$(usex mikmod enabled disabled)
259 + -Dmodplug=$(usex modplug enabled disabled)
260 + -Dmpcdec=$(usex musepack enabled disabled)
261 + -Dmpg123=$(usex mpg123 enabled disabled)
262 + -Dopus=$(usex opus enabled disabled)
263 + -Dsidplay=$(usex sid enabled disabled)
264 + -Dsndfile=$(usex sndfile enabled disabled)
265 + -Dvorbis=$(usex vorbis enabled disabled)
266 + -Dwavpack=$(usex wavpack enabled disabled)
267 + -Dwildmidi=$(usex wildmidi enabled disabled)
268 +
269 + )
270 +
271 + emesonargs+=(
272 + -Dqobuz=$(usex qobuz enabled disabled)
273 + -Dsoundcloud=$(usex soundcloud enabled disabled)
274 + -Dtidal=$(usex tidal enabled disabled)
275 + )
276 +
277 + emesonargs+=(
278 + --libdir="/usr/$(get_libdir)"
279 + -Ddocumentation=false
280 + -Dsndio=disabled #not yet in the tree
281 + -Dsolaris_output=disabled
282 +
283 + -Ddatabase=true
284 + -Ddsd=true
285 + -Dtcp=true
286 +
287 + -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
288 + -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
289 + )
290 +
291 + if use icu; then
292 + emesonargs+=( -Diconv=enabled )
293 + else
294 + emesonargs+=( -Diconv=disabled )
295 + fi
296 +
297 + meson_src_configure
298 +}
299 +
300 +src_install() {
301 + meson_src_install
302 +
303 + insinto /etc
304 + newins doc/mpdconf.dist mpd.conf
305 +
306 + insinto /etc/logrotate.d
307 + newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
308 +
309 + newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN}
310 +
311 + if use unicode; then
312 + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
313 + "${ED}"/etc/mpd.conf || die "sed failed"
314 + fi
315 +
316 + doman doc/mpd.1
317 + doman doc/mpd.conf.5
318 +
319 + keepdir /var/lib/mpd
320 + keepdir /var/lib/mpd/music
321 + keepdir /var/lib/mpd/playlists
322 +
323 +}
324 +
325 +pkg_postinst() {
326 + # also change the homedir if the user has existed before
327 + usermod -d "/var/lib/mpd" mpd || die "usermod failed"
328 +}