1 |
commit: 95993aeb66b63607751c7d764620335f4abd9e47 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 6 21:34:19 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 6 21:34:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95993aeb |
7 |
|
8 |
media-sound/mpd: Version bump (v0.21.4) |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
media-sound/mpd/Manifest | 1 + |
14 |
media-sound/mpd/mpd-0.21.4.ebuild | 298 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 299 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
18 |
index ee510bfefb0..3f80c3a48d7 100644 |
19 |
--- a/media-sound/mpd/Manifest |
20 |
+++ b/media-sound/mpd/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6 |
23 |
DIST mpd-0.21.3.tar.xz 664992 BLAKE2B 42e2bef46f4eb99e43c4078373dab4301cafa3062459abfed08e9f4b448a1fcfaa40da5a53941b49b426abecf2f31278fdb0857293b24156fa77845c56cbd095 SHA512 c6ce513ea641d026594cd7ae6e9051bd0060e45f5839d89b350ba144cc9094a8e1490052df4d024cbc92d88680ee8e8bae14fc8037431394771018a75c3ee3d7 |
24 |
+DIST mpd-0.21.4.tar.xz 663648 BLAKE2B c9226d2b02b1035091d3af535c269aec3fead779bf17d95b858706affb84089ca85250452884ed5ee96008724735abf80cdfa4d2de14d9928748284d753a4638 SHA512 454fde206f98f89a58ac773037963ac895ee6ce3e7d1032c49b980a3bfbbb69782a62900a5c09e4b39f24b2d1bcd380d7b520935563dd3b8d02f701389389ca7 |
25 |
|
26 |
diff --git a/media-sound/mpd/mpd-0.21.4.ebuild b/media-sound/mpd/mpd-0.21.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e93c903ec20 |
29 |
--- /dev/null |
30 |
+++ b/media-sound/mpd/mpd-0.21.4.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 user |
38 |
+ |
39 |
+MESON_AUTO_DEPEND="no" |
40 |
+ |
41 |
+DESCRIPTION="The Music Player Daemon (mpd)" |
42 |
+HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
43 |
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos" |
48 |
+IUSE="adplug +alsa ao audiofile bzip2 cdio chromaprint +cue +curl +dbus debug |
49 |
+ +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
50 |
+ +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms |
51 |
+ modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz |
52 |
+ recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd tcpd |
53 |
+ test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp |
54 |
+ zeroconf zip zlib" |
55 |
+ |
56 |
+OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
57 |
+DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
58 |
+ modplug mpg123 musepack flac sid vorbis wavpack wildmidi" |
59 |
+ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
60 |
+ |
61 |
+REQUIRED_USE=" |
62 |
+ || ( ${OUTPUT_PLUGINS} ) |
63 |
+ || ( ${DECODER_PLUGINS} ) |
64 |
+ network? ( || ( ${ENCODER_PLUGINS} ) ) |
65 |
+ recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
66 |
+ upnp? ( expat ) |
67 |
+ webdav? ( curl expat ) |
68 |
+ " |
69 |
+ |
70 |
+RESTRICT="!test? ( test )" |
71 |
+ |
72 |
+RDEPEND=" |
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 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
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.47.1 |
146 |
+ virtual/pkgconfig" |
147 |
+ |
148 |
+PATCHES=( |
149 |
+ "${FILESDIR}"/${PN}-0.18.conf.patch |
150 |
+) |
151 |
+ |
152 |
+pkg_setup() { |
153 |
+ enewuser mpd "" "" "/var/lib/mpd" audio |
154 |
+ |
155 |
+ if use eventfd; then |
156 |
+ CONFIG_CHECK+=" ~EVENTFD" |
157 |
+ ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
158 |
+ fi |
159 |
+ |
160 |
+ if use signalfd; then |
161 |
+ CONFIG_CHECK+=" ~SIGNALFD" |
162 |
+ ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
163 |
+ fi |
164 |
+ |
165 |
+ if use inotify; then |
166 |
+ CONFIG_CHECK+=" ~INOTIFY_USER" |
167 |
+ ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
168 |
+ fi |
169 |
+ |
170 |
+ if use eventfd || use signalfd || use inotify; then |
171 |
+ linux-info_pkg_setup |
172 |
+ fi |
173 |
+ |
174 |
+ elog "If you will be starting mpd via /etc/init.d/mpd, please make |
175 |
+ sure that MPD's pid_file is _set_." |
176 |
+} |
177 |
+ |
178 |
+src_prepare() { |
179 |
+ cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
180 |
+ default |
181 |
+} |
182 |
+ |
183 |
+src_configure() { |
184 |
+ local emesonargs=( |
185 |
+ -Dbzip2=$(usex bzip2 enabled disabled) |
186 |
+ -Dcdio_paranoia=$(usex cdio enabled disabled) |
187 |
+ -Dchromaprint=$(usex chromaprint enabled disabled) |
188 |
+ -Dcue=$(usex cue true false) |
189 |
+ -Dcurl=$(usex curl enabled disabled) |
190 |
+ -Ddbus=$(usex dbus enabled disabled) |
191 |
+ -Ddebug=$(usex debug true false) |
192 |
+ -Deventfd=$(usex eventfd true false) |
193 |
+ -Dexpat=$(usex expat enabled disabled) |
194 |
+ -Dicu=$(usex icu enabled disabled) |
195 |
+ -Did3tag=$(usex id3tag enabled disabled) |
196 |
+ -Dinotify=$(usex inotify true false) |
197 |
+ -Dipv6=$(usex ipv6 enabled disabled) |
198 |
+ -Diso9660=$(usex cdio enabled disabled) |
199 |
+ -Dlibmpdclient=$(usex libmpdclient enabled disabled) |
200 |
+ -Dlibsamplerate=$(usex libsamplerate enabled disabled) |
201 |
+ -Dlibwrap=$(usex tcpd enabled disabled) |
202 |
+ -Dmms=$(usex mms enabled disabled) |
203 |
+ -Dnfs=$(usex nfs enabled disabled) |
204 |
+ -Dsignalfd=$(usex signalfd true false) |
205 |
+ -Dsmbclient=$(usex samba enabled disabled) |
206 |
+ -Dsoxr=$(usex libsoxr enabled disabled) |
207 |
+ -Dsqlite=$(usex sqlite enabled disabled) |
208 |
+ -Dsystemd=$(usex systemd enabled disabled) |
209 |
+ -Dtest=$(usex test true false) |
210 |
+ -Dudisks=$(usex udisks enabled disabled) |
211 |
+ -Dupnp=$(usex upnp enabled disabled) |
212 |
+ -Dwebdav=$(usex webdav enabled disabled) |
213 |
+ -Dzeroconf=$(usex zeroconf avahi disabled) |
214 |
+ -Dzlib=$(usex zlib enabled disabled) |
215 |
+ -Dzzip=$(usex zip enabled disabled) |
216 |
+ ) |
217 |
+ |
218 |
+ emesonargs+=( |
219 |
+ -Dalsa=$(usex alsa enabled disabled) |
220 |
+ -Dao=$(usex ao enabled disabled) |
221 |
+ -Dfifo=$(usex fifo true false) |
222 |
+ -Djack=$(usex jack enabled disabled) |
223 |
+ -Dopenal=$(usex openal enabled disabled) |
224 |
+ -Doss=$(usex oss enabled disabled) |
225 |
+ -Dpipe=$(usex pipe true false) |
226 |
+ -Dpulse=$(usex pulseaudio enabled disabled) |
227 |
+ -Drecorder=$(usex recorder true false) |
228 |
+ ) |
229 |
+ |
230 |
+ if use samba || use upnp; then |
231 |
+ emesonargs+=( -Dneighbor=true ) |
232 |
+ fi |
233 |
+ |
234 |
+ append-lfs-flags |
235 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
236 |
+ |
237 |
+ if use network; then |
238 |
+ |
239 |
+ emesonargs+=( |
240 |
+ -Dshine=disabled |
241 |
+ -Dshout=enabled |
242 |
+ -Dvorbisenc=$(usex vorbis enabled disabled) |
243 |
+ -Dhttpd=true |
244 |
+ -Dlame=$(usex lame enabled disabled) |
245 |
+ -Dtwolame=$(usex twolame enabled disabled) |
246 |
+ -Dwave_encoder=$(usex audiofile true false) |
247 |
+ ) |
248 |
+ fi |
249 |
+ |
250 |
+ emesonargs+=( |
251 |
+ -Dadplug=$(usex adplug enabled disabled) |
252 |
+ -Daudiofile=$(usex audiofile enabled disabled) |
253 |
+ -Dfaad=$(usex faad enabled disabled) |
254 |
+ -Dffmpeg=$(usex ffmpeg enabled disabled) |
255 |
+ -Dflac=$(usex flac enabled disabled) |
256 |
+ -Dfluidsynth=$(usex fluidsynth enabled disabled) |
257 |
+ -Dgme=$(usex gme enabled disabled) |
258 |
+ -Dmad=$(usex mad enabled disabled) |
259 |
+ -Dmikmod=$(usex mikmod enabled disabled) |
260 |
+ -Dmodplug=$(usex modplug enabled disabled) |
261 |
+ -Dmpcdec=$(usex musepack enabled disabled) |
262 |
+ -Dmpg123=$(usex mpg123 enabled disabled) |
263 |
+ -Dopus=$(usex opus enabled disabled) |
264 |
+ -Dsidplay=$(usex sid enabled disabled) |
265 |
+ -Dsndfile=$(usex sndfile enabled disabled) |
266 |
+ -Dvorbis=$(usex vorbis enabled disabled) |
267 |
+ -Dwavpack=$(usex wavpack enabled disabled) |
268 |
+ -Dwildmidi=$(usex wildmidi enabled disabled) |
269 |
+ |
270 |
+ ) |
271 |
+ |
272 |
+ emesonargs+=( |
273 |
+ -Dqobuz=$(usex qobuz enabled disabled) |
274 |
+ -Dsoundcloud=$(usex soundcloud enabled disabled) |
275 |
+ -Dtidal=$(usex tidal enabled disabled) |
276 |
+ ) |
277 |
+ |
278 |
+ emesonargs+=( |
279 |
+ --libdir="/usr/$(get_libdir)" |
280 |
+ -Ddocumentation=false |
281 |
+ -Dsndio=disabled #not yet in the tree |
282 |
+ -Dsolaris_output=disabled |
283 |
+ |
284 |
+ -Ddatabase=true |
285 |
+ -Ddsd=true |
286 |
+ -Dtcp=true |
287 |
+ |
288 |
+ -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" |
289 |
+ -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" |
290 |
+ ) |
291 |
+ |
292 |
+ if use icu; then |
293 |
+ emesonargs+=( -Diconv=enabled ) |
294 |
+ else |
295 |
+ emesonargs+=( -Diconv=disabled ) |
296 |
+ fi |
297 |
+ |
298 |
+ meson_src_configure |
299 |
+} |
300 |
+ |
301 |
+src_install() { |
302 |
+ meson_src_install |
303 |
+ |
304 |
+ insinto /etc |
305 |
+ newins doc/mpdconf.dist mpd.conf |
306 |
+ |
307 |
+ insinto /etc/logrotate.d |
308 |
+ newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
309 |
+ |
310 |
+ newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN} |
311 |
+ |
312 |
+ if use unicode; then |
313 |
+ sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
314 |
+ "${ED}"/etc/mpd.conf || die "sed failed" |
315 |
+ fi |
316 |
+ |
317 |
+ doman doc/mpd.1 |
318 |
+ doman doc/mpd.conf.5 |
319 |
+ |
320 |
+ keepdir /var/lib/mpd |
321 |
+ keepdir /var/lib/mpd/music |
322 |
+ keepdir /var/lib/mpd/playlists |
323 |
+ |
324 |
+} |
325 |
+ |
326 |
+pkg_postinst() { |
327 |
+ # also change the homedir if the user has existed before |
328 |
+ usermod -d "/var/lib/mpd" mpd || die "usermod failed" |
329 |
+} |