1 |
commit: 49e0f672a3b841c59242cdc4ec4370ca81239180 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 25 23:10:28 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 25 23:12:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49e0f672 |
7 |
|
8 |
media-sound/mpd: add 0.23.6 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/790536 |
11 |
Closes: https://bugs.gentoo.org/835955 |
12 |
Closes: https://bugs.gentoo.org/832627 |
13 |
Closes: https://bugs.gentoo.org/830872 |
14 |
Closes: https://bugs.gentoo.org/803278 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
media-sound/mpd/Manifest | 1 + |
18 |
media-sound/mpd/mpd-0.23.6.ebuild | 289 ++++++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 290 insertions(+) |
20 |
|
21 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
22 |
index bf413097dd25..c21d866d1e69 100644 |
23 |
--- a/media-sound/mpd/Manifest |
24 |
+++ b/media-sound/mpd/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
DIST mpd-0.22.11.tar.xz 737184 BLAKE2B b47dcbd1e01812b66c81f33a53fc0838ddb8b7a145763744d1cf1aacc7ca38e763b723498f3ab7360f49637bc80c0ada5a69c7d619f3cf167071a7bec2440d20 SHA512 c53d386d42c2360502aad5e7574ae5ff76a20df037696989f9e1700f9cffb88afdd329cce758067356c59308d0cbcf3ba3ccf6f013e2fcec54ddf08bd0212b43 |
27 |
DIST mpd-0.22.3.tar.xz 726356 BLAKE2B a821e9fed56c3ad625d155057867747d2c883dd90d110b097dfd4acc56ff583949889b849686d5644687226f205c5ae3f95eec182841f706f56135c7e8f3746b SHA512 deeafbe1a95f777fa4f9f355293a648a3f7121fae8e299c92dbd43d821319ffa4182c558cb0691f65e90f243428cec2cf14f64e9572bc72fc6a2af0fd9c0cd60 |
28 |
DIST mpd-0.23.5.tar.xz 770700 BLAKE2B 91f0d37bca0632a414083f6ecf8838ba5dc4ef4965692b14e56587d3d145140f61bcc120fe4b2bf83eb41f2a7e085da4d999efc19ca9717d2552d92fc6359c65 SHA512 3a870e79bb82c9e8877958d271e933daa3dd970a4510aff4aeea91feab521d7927cd59c7f1ea16a36e84ff879e4f24e4347602ac449c5da31853acb5a3b46f34 |
29 |
+DIST mpd-0.23.6.tar.xz 770812 BLAKE2B 5ccb4a7c06c4317e3285846a261438bdcc10db5eaf71fcba969bcae8321ca50bb26fe9317e23e38eca1c4a8785015596064d5bfc692bf66f8007d0d2a1b71cbb SHA512 1595fcc53a67f1a68b0c0516697d242da53b91626e37bc2f49095add78eb497a52c67c961a421f20b40f3c57a571557a76559a212838de2a3ec4aec6c7a3288d |
30 |
|
31 |
diff --git a/media-sound/mpd/mpd-0.23.6.ebuild b/media-sound/mpd/mpd-0.23.6.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..e328075e3301 |
34 |
--- /dev/null |
35 |
+++ b/media-sound/mpd/mpd-0.23.6.ebuild |
36 |
@@ -0,0 +1,289 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+inherit flag-o-matic linux-info meson systemd xdg |
43 |
+ |
44 |
+DESCRIPTION="The Music Player Daemon (mpd)" |
45 |
+HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
46 |
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~riscv ~x86" |
51 |
+IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl doc +dbus |
52 |
+ +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
53 |
+ +ipv6 jack lame libmpdclient libsamplerate libsoxr +mad mikmod mms |
54 |
+ modplug mpg123 musepack +network nfs openal openmpt opus oss pipe pipewire pulseaudio qobuz |
55 |
+ recorder samba selinux sid signalfd snapcast sndfile sndio soundcloud sqlite systemd |
56 |
+ test twolame udisks unicode vorbis wavpack webdav wildmidi upnp |
57 |
+ zeroconf zip zlib" |
58 |
+ |
59 |
+OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pipewire pulseaudio snapcast sndio recorder" |
60 |
+DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod |
61 |
+ modplug mpg123 musepack opus openmpt flac sid vorbis wavpack wildmidi" |
62 |
+ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
63 |
+ |
64 |
+REQUIRED_USE=" |
65 |
+ || ( ${OUTPUT_PLUGINS} ) |
66 |
+ || ( ${DECODER_PLUGINS} ) |
67 |
+ network? ( || ( ${ENCODER_PLUGINS} ) ) |
68 |
+ recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
69 |
+ qobuz? ( curl soundcloud ) |
70 |
+ udisks? ( dbus ) |
71 |
+ upnp? ( curl expat ) |
72 |
+ webdav? ( curl expat ) |
73 |
+" |
74 |
+ |
75 |
+RESTRICT="!test? ( test )" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ acct-user/mpd |
79 |
+ sys-libs/liburing:= |
80 |
+ alsa? ( |
81 |
+ media-libs/alsa-lib |
82 |
+ media-sound/alsa-utils |
83 |
+ ) |
84 |
+ |
85 |
+ ao? ( media-libs/libao:=[alsa?,pulseaudio?] ) |
86 |
+ audiofile? ( media-libs/audiofile:= ) |
87 |
+ |
88 |
+ cdio? ( |
89 |
+ dev-libs/libcdio:= |
90 |
+ dev-libs/libcdio-paranoia |
91 |
+ ) |
92 |
+ |
93 |
+ chromaprint? ( media-libs/chromaprint ) |
94 |
+ curl? ( net-misc/curl ) |
95 |
+ dbus? ( sys-apps/dbus ) |
96 |
+ doc? ( dev-python/sphinx ) |
97 |
+ expat? ( dev-libs/expat ) |
98 |
+ faad? ( media-libs/faad2 ) |
99 |
+ ffmpeg? ( media-video/ffmpeg:0= ) |
100 |
+ flac? ( media-libs/flac ) |
101 |
+ fluidsynth? ( media-sound/fluidsynth ) |
102 |
+ gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
103 |
+ icu? ( dev-libs/icu:= ) |
104 |
+ id3tag? ( media-libs/libid3tag:= ) |
105 |
+ jack? ( virtual/jack ) |
106 |
+ lame? ( network? ( media-sound/lame ) ) |
107 |
+ libmpdclient? ( media-libs/libmpdclient ) |
108 |
+ libsamplerate? ( media-libs/libsamplerate ) |
109 |
+ libsoxr? ( media-libs/soxr ) |
110 |
+ mad? ( media-libs/libmad ) |
111 |
+ mikmod? ( media-libs/libmikmod ) |
112 |
+ mms? ( media-libs/libmms ) |
113 |
+ modplug? ( media-libs/libmodplug ) |
114 |
+ mpg123? ( media-sound/mpg123 ) |
115 |
+ musepack? ( media-sound/musepack-tools ) |
116 |
+ network? ( media-libs/libshout ) |
117 |
+ nfs? ( net-fs/libnfs ) |
118 |
+ openal? ( media-libs/openal ) |
119 |
+ openmpt? ( media-libs/libopenmpt ) |
120 |
+ opus? ( media-libs/opus ) |
121 |
+ pulseaudio? ( media-sound/pulseaudio ) |
122 |
+ pipewire? ( media-video/pipewire:= ) |
123 |
+ qobuz? ( dev-libs/libgcrypt:0 ) |
124 |
+ samba? ( net-fs/samba ) |
125 |
+ selinux? ( sec-policy/selinux-mpd ) |
126 |
+ sid? ( || ( |
127 |
+ media-libs/libsidplay:2 |
128 |
+ media-libs/libsidplayfp |
129 |
+ ) ) |
130 |
+ snapcast? ( media-sound/snapcast ) |
131 |
+ sndfile? ( media-libs/libsndfile ) |
132 |
+ sndio? ( media-sound/sndio ) |
133 |
+ soundcloud? ( >=dev-libs/yajl-2:= ) |
134 |
+ sqlite? ( dev-db/sqlite:3 ) |
135 |
+ systemd? ( sys-apps/systemd ) |
136 |
+ twolame? ( media-sound/twolame ) |
137 |
+ udisks? ( sys-fs/udisks:2 ) |
138 |
+ upnp? ( net-libs/libupnp:0 ) |
139 |
+ vorbis? ( media-libs/libvorbis ) |
140 |
+ wavpack? ( media-sound/wavpack ) |
141 |
+ wildmidi? ( media-sound/wildmidi ) |
142 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
143 |
+ zip? ( dev-libs/zziplib:= ) |
144 |
+ zlib? ( sys-libs/zlib:= )" |
145 |
+ |
146 |
+DEPEND="${RDEPEND} |
147 |
+ >=dev-libs/boost-1.68:= |
148 |
+ dev-libs/libfmt:= |
149 |
+ test? ( dev-cpp/gtest )" |
150 |
+ |
151 |
+BDEPEND="virtual/pkgconfig" |
152 |
+ |
153 |
+pkg_setup() { |
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 sure that MPD's pid_file is _set_." |
174 |
+} |
175 |
+ |
176 |
+src_prepare() { |
177 |
+ sed -i \ |
178 |
+ -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
179 |
+ -e 's:^#user.*$:user "mpd":' \ |
180 |
+ -e 's:^#bind_to_address.*any.*$:bind_to_address "localhost":' \ |
181 |
+ -e 's:^#bind_to_address.*$:bind_to_address "/var/lib/mpd/socket":' \ |
182 |
+ -e 's:^#music_directory.*$:music_directory "/var/lib/mpd/music":' \ |
183 |
+ -e 's:^#playlist_directory.*$:playlist_directory "/var/lib/mpd/playlists":' \ |
184 |
+ -e 's:^#db_file.*$:db_file "/var/lib/mpd/database":' \ |
185 |
+ -e 's:^#log_file.*$:log_file "/var/lib/mpd/log":' \ |
186 |
+ -e 's:^#pid_file.*$:pid_file "/var/lib/mpd/pid":' \ |
187 |
+ -e 's:^#state_file.*$:state_file "/var/lib/mpd/state":' \ |
188 |
+ doc/mpdconf.example || die |
189 |
+ default |
190 |
+} |
191 |
+ |
192 |
+src_configure() { |
193 |
+ local emesonargs=( |
194 |
+ $(meson_feature bzip2) |
195 |
+ $(meson_feature cdio cdio_paranoia) |
196 |
+ $(meson_feature chromaprint) |
197 |
+ $(meson_use cue) |
198 |
+ $(meson_feature curl) |
199 |
+ $(meson_feature dbus) |
200 |
+ $(meson_use eventfd) |
201 |
+ $(meson_feature expat) |
202 |
+ $(meson_feature icu) |
203 |
+ $(meson_feature id3tag) |
204 |
+ $(meson_use inotify) |
205 |
+ $(meson_feature ipv6) |
206 |
+ $(meson_feature cdio iso9660) |
207 |
+ $(meson_feature libmpdclient) |
208 |
+ $(meson_feature libsamplerate) |
209 |
+ $(meson_feature mms) |
210 |
+ $(meson_feature nfs) |
211 |
+ $(meson_use signalfd) |
212 |
+ $(meson_feature samba smbclient) |
213 |
+ $(meson_feature libsoxr soxr) |
214 |
+ $(meson_feature sqlite) |
215 |
+ $(meson_feature systemd) |
216 |
+ $(meson_use test) |
217 |
+ $(meson_feature udisks) |
218 |
+ -Dupnp=$(usex upnp pupnp disabled) |
219 |
+ $(meson_feature webdav) |
220 |
+ $(meson_feature zeroconf) |
221 |
+ $(meson_feature zlib) |
222 |
+ $(meson_feature zip zzip) |
223 |
+ ) |
224 |
+ |
225 |
+ emesonargs+=( |
226 |
+ $(meson_feature alsa) |
227 |
+ $(meson_feature ao) |
228 |
+ $(meson_use fifo) |
229 |
+ $(meson_feature jack) |
230 |
+ $(meson_feature openal) |
231 |
+ $(meson_feature oss) |
232 |
+ $(meson_use pipe) |
233 |
+ $(meson_feature pipewire) |
234 |
+ $(meson_feature pulseaudio pulse) |
235 |
+ $(meson_use recorder) |
236 |
+ $(meson_use snapcast) |
237 |
+ $(meson_feature sndio) |
238 |
+ ) |
239 |
+ |
240 |
+ if use samba || use upnp; then |
241 |
+ emesonargs+=( -Dneighbor=true ) |
242 |
+ fi |
243 |
+ |
244 |
+ append-lfs-flags |
245 |
+ append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/sidplay/builders" |
246 |
+ |
247 |
+ if use network; then |
248 |
+ emesonargs+=( |
249 |
+ -Dshine=disabled |
250 |
+ -Dshout=enabled |
251 |
+ $(meson_feature vorbis vorbisenc) |
252 |
+ -Dhttpd=true |
253 |
+ $(meson_feature lame) |
254 |
+ $(meson_feature twolame) |
255 |
+ $(meson_use audiofile wave_encoder) |
256 |
+ ) |
257 |
+ fi |
258 |
+ |
259 |
+ emesonargs+=( |
260 |
+ # media-libs/adplug is not packaged anymore |
261 |
+ -Dadplug=disabled |
262 |
+ $(meson_feature audiofile) |
263 |
+ $(meson_feature faad) |
264 |
+ $(meson_feature ffmpeg) |
265 |
+ $(meson_feature flac) |
266 |
+ $(meson_feature fluidsynth) |
267 |
+ $(meson_feature gme) |
268 |
+ $(meson_feature mad) |
269 |
+ $(meson_feature mikmod) |
270 |
+ $(meson_feature modplug) |
271 |
+ $(meson_feature musepack mpcdec) |
272 |
+ $(meson_feature mpg123) |
273 |
+ $(meson_feature openmpt) |
274 |
+ $(meson_feature opus) |
275 |
+ $(meson_feature sid sidplay) |
276 |
+ $(meson_feature sndfile) |
277 |
+ $(meson_feature vorbis) |
278 |
+ $(meson_feature wavpack) |
279 |
+ $(meson_feature wildmidi) |
280 |
+ $(meson_feature qobuz) |
281 |
+ $(meson_feature soundcloud) |
282 |
+ |
283 |
+ --libdir="/usr/$(get_libdir)" |
284 |
+ $(meson_feature doc documentation) |
285 |
+ -Dsolaris_output=disabled |
286 |
+ |
287 |
+ -Ddatabase=true |
288 |
+ -Ddsd=true |
289 |
+ -Dio_uring=enabled |
290 |
+ -Dtcp=true |
291 |
+ |
292 |
+ -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" |
293 |
+ -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" |
294 |
+ |
295 |
+ $(meson_feature icu iconv) |
296 |
+ ) |
297 |
+ |
298 |
+ meson_src_configure |
299 |
+} |
300 |
+ |
301 |
+src_install() { |
302 |
+ meson_src_install |
303 |
+ |
304 |
+ insinto /etc |
305 |
+ newins doc/mpdconf.example mpd.conf |
306 |
+ |
307 |
+ insinto /etc/logrotate.d |
308 |
+ newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
309 |
+ |
310 |
+ newinitd "${FILESDIR}"/${PN}-0.21.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 |
+ keepdir /var/lib/mpd |
318 |
+ keepdir /var/lib/mpd/music |
319 |
+ keepdir /var/lib/mpd/playlists |
320 |
+ |
321 |
+ rm -r "${ED}"/usr/share/doc/mpd || die |
322 |
+ |
323 |
+ fowners mpd:audio -R /var/lib/mpd |
324 |
+ |
325 |
+} |