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: Thu, 26 Sep 2019 18:25:22
Message-Id: 1569522301.6f80bfa19b0adce2101b47c3256db454bd81c67d.zlogene@gentoo
1 commit: 6f80bfa19b0adce2101b47c3256db454bd81c67d
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 26 18:25:01 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 26 18:25:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f80bfa1
7
8 media-sound/mpd: Version bump (v0.21.15)
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.15.ebuild | 294 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 295 insertions(+)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index 17628dac5d6..a42ae7cf554 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1 +1,2 @@
22 DIST mpd-0.21.14.tar.xz 673036 BLAKE2B 73eed90c0d48e26d747e26b0cd000d3e0a12dfebb015f865fe9d3ddbe5f7fa564b1655b7e0639951e9aeb2554185063b11d6bc818813ca6366688ea05705ba4a SHA512 d5ce06741444d545c7334f4c4ab32dbfacaa264df5a1ac61b73d951e0a6f952c8ea1e4df1b5bfc827e7faa35a6b8026e78cbf3a057ee35adf448fa7204389cd9
23 +DIST mpd-0.21.15.tar.xz 673056 BLAKE2B e399c0439e790ac62525b33c5d2d26b47d36687edc877169934dd5379646d1d38ed7fec75532498a4c0f6e51e355e872847873045ae2446d037cce8781be3067 SHA512 c67ebdb7609b36b4b8504ce0751ca2dcc38a2fba03a5b8419185e8be64bce7e19560347a600773b65f55ba0a3cedeff051117071db8e7fe0a90c9771de8bd37e
24
25 diff --git a/media-sound/mpd/mpd-0.21.15.ebuild b/media-sound/mpd/mpd-0.21.15.ebuild
26 new file mode 100644
27 index 00000000000..984310bc536
28 --- /dev/null
29 +++ b/media-sound/mpd/mpd-0.21.15.ebuild
30 @@ -0,0 +1,294 @@
31 +# Copyright 1999-2019 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 user
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 ~x86-fbsd ~x64-macos"
45 +IUSE="adplug +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="adplug 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 + adplug? ( media-libs/adplug:= )
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 + twolame? ( media-sound/twolame )
128 + udisks? ( sys-fs/udisks:2 )
129 + upnp? ( net-libs/libupnp:0 )
130 + vorbis? ( media-libs/libvorbis )
131 + wavpack? ( media-sound/wavpack )
132 + wildmidi? ( media-sound/wildmidi )
133 + zeroconf? ( net-dns/avahi[dbus] )
134 + zip? ( dev-libs/zziplib )
135 + zlib? ( sys-libs/zlib:= )"
136 +
137 +DEPEND="${RDEPEND}
138 + >=dev-libs/boost-1.58:=
139 + test? ( dev-cpp/gtest )"
140 +
141 +BDEPEND=">=dev-util/meson-0.49.2
142 + virtual/pkgconfig"
143 +
144 +PATCHES=(
145 + "${FILESDIR}"/${PN}-0.18.conf.patch
146 +)
147 +
148 +pkg_setup() {
149 + enewuser mpd "" "" "/var/lib/mpd" audio
150 +
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 + -Dadplug=$(usex adplug enabled disabled)
247 + -Daudiofile=$(usex audiofile enabled disabled)
248 + -Dfaad=$(usex faad enabled disabled)
249 + -Dffmpeg=$(usex ffmpeg enabled disabled)
250 + -Dflac=$(usex flac enabled disabled)
251 + -Dfluidsynth=$(usex fluidsynth enabled disabled)
252 + -Dgme=$(usex gme enabled disabled)
253 + -Dmad=$(usex mad enabled disabled)
254 + -Dmikmod=$(usex mikmod enabled disabled)
255 + -Dmodplug=$(usex modplug enabled disabled)
256 + -Dmpcdec=$(usex musepack enabled disabled)
257 + -Dmpg123=$(usex mpg123 enabled disabled)
258 + -Dopus=$(usex opus enabled disabled)
259 + -Dsidplay=$(usex sid enabled disabled)
260 + -Dsndfile=$(usex sndfile enabled disabled)
261 + -Dvorbis=$(usex vorbis enabled disabled)
262 + -Dwavpack=$(usex wavpack enabled disabled)
263 + -Dwildmidi=$(usex wildmidi enabled disabled)
264 +
265 + )
266 +
267 + emesonargs+=(
268 + -Dqobuz=$(usex qobuz enabled disabled)
269 + -Dsoundcloud=$(usex soundcloud enabled disabled)
270 + -Dtidal=$(usex tidal enabled disabled)
271 + )
272 +
273 + emesonargs+=(
274 + --libdir="/usr/$(get_libdir)"
275 + -Ddocumentation=false
276 + -Dsndio=disabled #not yet in the tree
277 + -Dsolaris_output=disabled
278 +
279 + -Ddatabase=true
280 + -Ddsd=true
281 + -Dtcp=true
282 +
283 + -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
284 + -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
285 + )
286 +
287 + if use icu; then
288 + emesonargs+=( -Diconv=enabled )
289 + else
290 + emesonargs+=( -Diconv=disabled )
291 + fi
292 +
293 + meson_src_configure
294 +}
295 +
296 +src_install() {
297 + meson_src_install
298 +
299 + insinto /etc
300 + newins doc/mpdconf.dist mpd.conf
301 +
302 + insinto /etc/logrotate.d
303 + newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN}
304 +
305 + newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN}
306 +
307 + if use unicode; then
308 + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
309 + "${ED}"/etc/mpd.conf || die "sed failed"
310 + fi
311 +
312 + doman doc/mpd.1
313 + doman doc/mpd.conf.5
314 +
315 + keepdir /var/lib/mpd
316 + keepdir /var/lib/mpd/music
317 + keepdir /var/lib/mpd/playlists
318 +
319 +}
320 +
321 +pkg_postinst() {
322 + # also change the homedir if the user has existed before
323 + usermod -d "/var/lib/mpd" mpd || die "usermod failed"
324 +}