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