1 |
commit: 700dbede45a2affc636e593559eefd4e34acf4b7 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 29 15:56:16 2021 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 29 15:56:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=700dbede |
7 |
|
8 |
media-sound/mpd: add 0.22.11 |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
|
12 |
media-sound/mpd/Manifest | 1 + |
13 |
media-sound/mpd/mpd-0.22.11.ebuild | 299 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 300 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
17 |
index 29dd9a87aeb..ed7a9ee6c05 100644 |
18 |
--- a/media-sound/mpd/Manifest |
19 |
+++ b/media-sound/mpd/Manifest |
20 |
@@ -1,5 +1,6 @@ |
21 |
DIST mpd-0.21.26.tar.xz 685396 BLAKE2B 176c75069190c8df79e5c0b37605abeafac2358dc1840ec66b2eecb809449cf0908b7a3af61c499e88d82b210c8907a752b4f006bcffb7c7d279cbdbc082032f SHA512 31eb5d42bcfc942116cb203d8b1ceb8489b46251204f7288d1e8d7e052ff4cab2c8b2087795cc8118c8b86f080613f80cb182163fcb1c5b5027053d53c5a594a |
22 |
DIST mpd-0.22.10.tar.xz 736456 BLAKE2B eb95efff44425f7aa261c937d3cf185eec17e3ade212c8b4873f4bb5cb5b775cbab621b851e972bba20fe3a56a3e7465aa0c26cc2fad60f50499925046cfb443 SHA512 e29deec7473a25236d17609ae898d7154e716f29a137c658492952cae162d59fbe9992be2b50971b8dbe03e9b11a894b6c5e9b4767c265d178f6da3ff49e3820 |
23 |
+DIST mpd-0.22.11.tar.xz 737184 BLAKE2B b47dcbd1e01812b66c81f33a53fc0838ddb8b7a145763744d1cf1aacc7ca38e763b723498f3ab7360f49637bc80c0ada5a69c7d619f3cf167071a7bec2440d20 SHA512 c53d386d42c2360502aad5e7574ae5ff76a20df037696989f9e1700f9cffb88afdd329cce758067356c59308d0cbcf3ba3ccf6f013e2fcec54ddf08bd0212b43 |
24 |
DIST mpd-0.22.3.tar.xz 726356 BLAKE2B a821e9fed56c3ad625d155057867747d2c883dd90d110b097dfd4acc56ff583949889b849686d5644687226f205c5ae3f95eec182841f706f56135c7e8f3746b SHA512 deeafbe1a95f777fa4f9f355293a648a3f7121fae8e299c92dbd43d821319ffa4182c558cb0691f65e90f243428cec2cf14f64e9572bc72fc6a2af0fd9c0cd60 |
25 |
DIST mpd-0.22.4.tar.xz 729264 BLAKE2B d8060a205f94fa369ad8aee7a3e12f1389e7587aac7843eeec6ab3e6b39c2e063cfd5413bc7c9738ce6c68c56d3befefd48112c1c93f725a6940ff1889d882e6 SHA512 e169d6656b378d52798e822ffd47f554bd7c076ca8bc5a1119e3b2fad36bee79335dc392aa8d78d854689af62168625698c1777440e08a67075099898ee5fe34 |
26 |
DIST mpd-0.22.5.tar.xz 730308 BLAKE2B 2c7375af25c1b5d6dd8cf79f71e67842f75dcdb38b1ca90c8dda2661a5bd6d110ad0ebbefc53e0a38cfa6434ee4d2ad99688982588ee6d8d6895b24e15e3f927 SHA512 589516b7ee5820cbeee99042017b411a46857d39547302bce0bedb9c265da2c8465224a6817a1b7e65105f344398bee5fb2a3674064e42507157cdac01416295 |
27 |
|
28 |
diff --git a/media-sound/mpd/mpd-0.22.11.ebuild b/media-sound/mpd/mpd-0.22.11.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..7e5eda24cd4 |
31 |
--- /dev/null |
32 |
+++ b/media-sound/mpd/mpd-0.22.11.ebuild |
33 |
@@ -0,0 +1,299 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit flag-o-matic linux-info meson systemd xdg-utils |
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 ~ppc ~ppc64 ~x86" |
48 |
+IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl doc +dbus |
49 |
+ +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
50 |
+ +ipv6 jack lame 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 sndio soundcloud sqlite systemd |
53 |
+ test tidal twolame udisks vorbis wavpack webdav wildmidi upnp |
54 |
+ zeroconf zip zlib" |
55 |
+ |
56 |
+OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio sndio recorder" |
57 |
+DECODER_PLUGINS="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 |
+ acct-user/mpd |
74 |
+ sys-libs/liburing:= |
75 |
+ alsa? ( |
76 |
+ media-libs/alsa-lib |
77 |
+ media-sound/alsa-utils |
78 |
+ ) |
79 |
+ |
80 |
+ ao? ( media-libs/libao:=[alsa?,pulseaudio?] ) |
81 |
+ audiofile? ( media-libs/audiofile:= ) |
82 |
+ |
83 |
+ cdio? ( |
84 |
+ dev-libs/libcdio:= |
85 |
+ dev-libs/libcdio-paranoia |
86 |
+ ) |
87 |
+ |
88 |
+ chromaprint? ( media-libs/chromaprint ) |
89 |
+ curl? ( net-misc/curl ) |
90 |
+ dbus? ( sys-apps/dbus ) |
91 |
+ doc? ( dev-python/sphinx ) |
92 |
+ expat? ( dev-libs/expat ) |
93 |
+ faad? ( media-libs/faad2 ) |
94 |
+ ffmpeg? ( media-video/ffmpeg:0= ) |
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 |
+ sndio? ( media-sound/sndio ) |
125 |
+ soundcloud? ( >=dev-libs/yajl-2:= ) |
126 |
+ sqlite? ( dev-db/sqlite:3 ) |
127 |
+ systemd? ( sys-apps/systemd ) |
128 |
+ tidal? ( dev-libs/yajl |
129 |
+ net-misc/curl ) |
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 |
+pkg_setup() { |
148 |
+ if use eventfd; then |
149 |
+ CONFIG_CHECK+=" ~EVENTFD" |
150 |
+ ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
151 |
+ fi |
152 |
+ |
153 |
+ if use signalfd; then |
154 |
+ CONFIG_CHECK+=" ~SIGNALFD" |
155 |
+ ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
156 |
+ fi |
157 |
+ |
158 |
+ if use inotify; then |
159 |
+ CONFIG_CHECK+=" ~INOTIFY_USER" |
160 |
+ ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
161 |
+ fi |
162 |
+ |
163 |
+ if use eventfd || use signalfd || use inotify; then |
164 |
+ linux-info_pkg_setup |
165 |
+ fi |
166 |
+ |
167 |
+ elog "If you will be starting mpd via /etc/init.d/mpd, please make |
168 |
+ sure that MPD's pid_file is _set_." |
169 |
+} |
170 |
+ |
171 |
+src_prepare() { |
172 |
+ sed -i \ |
173 |
+ -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
174 |
+ -e 's:^#user.*$:user "mpd":' \ |
175 |
+ -e 's:^#bind_to_address.*any.*$:bind_to_address "localhost":' \ |
176 |
+ -e 's:^#bind_to_address.*$:bind_to_address "/var/lib/mpd/socket":' \ |
177 |
+ -e 's:^#music_directory.*$:music_directory "/var/lib/mpd/music":' \ |
178 |
+ -e 's:^#playlist_directory.*$:playlist_directory "/var/lib/mpd/playlists":' \ |
179 |
+ -e 's:^#db_file.*$:db_file "/var/lib/mpd/database":' \ |
180 |
+ -e 's:^#log_file.*$:log_file "/var/lib/mpd/log":' \ |
181 |
+ -e 's:^#pid_file.*$:pid_file "/var/lib/mpd/pid":' \ |
182 |
+ -e 's:^#state_file.*$:state_file "/var/lib/mpd/state":' \ |
183 |
+ doc/mpdconf.example || die |
184 |
+ default |
185 |
+} |
186 |
+ |
187 |
+src_configure() { |
188 |
+ local emesonargs=( |
189 |
+ -Dbzip2=$(usex bzip2 enabled disabled) |
190 |
+ -Dcdio_paranoia=$(usex cdio enabled disabled) |
191 |
+ -Dchromaprint=$(usex chromaprint enabled disabled) |
192 |
+ -Dcue=$(usex cue true false) |
193 |
+ -Dcurl=$(usex curl enabled disabled) |
194 |
+ -Ddbus=$(usex dbus enabled disabled) |
195 |
+ -Deventfd=$(usex eventfd true false) |
196 |
+ -Dexpat=$(usex expat enabled disabled) |
197 |
+ -Dicu=$(usex icu enabled disabled) |
198 |
+ -Did3tag=$(usex id3tag enabled disabled) |
199 |
+ -Dinotify=$(usex inotify true false) |
200 |
+ -Dipv6=$(usex ipv6 enabled disabled) |
201 |
+ -Diso9660=$(usex cdio enabled disabled) |
202 |
+ -Dlibmpdclient=$(usex libmpdclient enabled disabled) |
203 |
+ -Dlibsamplerate=$(usex libsamplerate enabled disabled) |
204 |
+ -Dmms=$(usex mms enabled disabled) |
205 |
+ -Dnfs=$(usex nfs enabled disabled) |
206 |
+ -Dsignalfd=$(usex signalfd true false) |
207 |
+ -Dsmbclient=$(usex samba enabled disabled) |
208 |
+ -Dsoxr=$(usex libsoxr enabled disabled) |
209 |
+ -Dsqlite=$(usex sqlite enabled disabled) |
210 |
+ -Dsystemd=$(usex systemd enabled disabled) |
211 |
+ -Dtest=$(usex test true false) |
212 |
+ -Dudisks=$(usex udisks enabled disabled) |
213 |
+ -Dupnp=$(usex upnp enabled disabled) |
214 |
+ -Dwebdav=$(usex webdav enabled disabled) |
215 |
+ -Dzeroconf=$(usex zeroconf avahi disabled) |
216 |
+ -Dzlib=$(usex zlib enabled disabled) |
217 |
+ -Dzzip=$(usex zip enabled disabled) |
218 |
+ ) |
219 |
+ |
220 |
+ emesonargs+=( |
221 |
+ -Dalsa=$(usex alsa enabled disabled) |
222 |
+ -Dao=$(usex ao enabled disabled) |
223 |
+ -Dfifo=$(usex fifo true false) |
224 |
+ -Djack=$(usex jack enabled disabled) |
225 |
+ -Dopenal=$(usex openal enabled disabled) |
226 |
+ -Doss=$(usex oss enabled disabled) |
227 |
+ -Dpipe=$(usex pipe true false) |
228 |
+ -Dpulse=$(usex pulseaudio enabled disabled) |
229 |
+ -Drecorder=$(usex recorder true false) |
230 |
+ -Dsndio=$(usex sndio enabled disabled) |
231 |
+ ) |
232 |
+ |
233 |
+ if use samba || use upnp; then |
234 |
+ emesonargs+=( -Dneighbor=true ) |
235 |
+ fi |
236 |
+ |
237 |
+ append-lfs-flags |
238 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
239 |
+ |
240 |
+ if use network; then |
241 |
+ |
242 |
+ emesonargs+=( |
243 |
+ -Dshine=disabled |
244 |
+ -Dshout=enabled |
245 |
+ -Dvorbisenc=$(usex vorbis enabled disabled) |
246 |
+ -Dhttpd=true |
247 |
+ -Dlame=$(usex lame enabled disabled) |
248 |
+ -Dtwolame=$(usex twolame enabled disabled) |
249 |
+ -Dwave_encoder=$(usex audiofile true false) |
250 |
+ ) |
251 |
+ fi |
252 |
+ |
253 |
+ emesonargs+=( |
254 |
+ # media-libs/adplug is not packaged anymore |
255 |
+ -Dadplug=disabled |
256 |
+ -Daudiofile=$(usex audiofile enabled disabled) |
257 |
+ -Dfaad=$(usex faad enabled disabled) |
258 |
+ -Dffmpeg=$(usex ffmpeg enabled disabled) |
259 |
+ -Dflac=$(usex flac enabled disabled) |
260 |
+ -Dfluidsynth=$(usex fluidsynth enabled disabled) |
261 |
+ -Dgme=$(usex gme enabled disabled) |
262 |
+ -Dmad=$(usex mad enabled disabled) |
263 |
+ -Dmikmod=$(usex mikmod enabled disabled) |
264 |
+ -Dmodplug=$(usex modplug enabled disabled) |
265 |
+ -Dmpcdec=$(usex musepack enabled disabled) |
266 |
+ -Dmpg123=$(usex mpg123 enabled disabled) |
267 |
+ -Dopus=$(usex opus enabled disabled) |
268 |
+ -Dsidplay=$(usex sid enabled disabled) |
269 |
+ -Dsndfile=$(usex sndfile enabled disabled) |
270 |
+ -Dvorbis=$(usex vorbis enabled disabled) |
271 |
+ -Dwavpack=$(usex wavpack enabled disabled) |
272 |
+ -Dwildmidi=$(usex wildmidi enabled disabled) |
273 |
+ |
274 |
+ ) |
275 |
+ |
276 |
+ emesonargs+=( |
277 |
+ -Dqobuz=$(usex qobuz enabled disabled) |
278 |
+ -Dsoundcloud=$(usex soundcloud enabled disabled) |
279 |
+ -Dtidal=$(usex tidal enabled disabled) |
280 |
+ ) |
281 |
+ |
282 |
+ emesonargs+=( |
283 |
+ --libdir="/usr/$(get_libdir)" |
284 |
+ -Ddocumentation=$(usex doc enabled disabled) |
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 |
+ |
296 |
+ if use icu; then |
297 |
+ emesonargs+=( -Diconv=enabled ) |
298 |
+ else |
299 |
+ emesonargs+=( -Diconv=disabled ) |
300 |
+ fi |
301 |
+ |
302 |
+ meson_src_configure |
303 |
+} |
304 |
+ |
305 |
+src_install() { |
306 |
+ meson_src_install |
307 |
+ |
308 |
+ insinto /etc |
309 |
+ newins doc/mpdconf.example mpd.conf |
310 |
+ |
311 |
+ insinto /etc/logrotate.d |
312 |
+ newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
313 |
+ |
314 |
+ newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} |
315 |
+ |
316 |
+ keepdir /var/lib/mpd |
317 |
+ keepdir /var/lib/mpd/music |
318 |
+ keepdir /var/lib/mpd/playlists |
319 |
+ |
320 |
+ fowners mpd:audio -R /var/lib/mpd |
321 |
+ |
322 |
+ rm -r "${ED}"/usr/share/doc/mpd || die |
323 |
+ |
324 |
+} |
325 |
+ |
326 |
+pkg_postinst() { |
327 |
+ xdg_icon_cache_update |
328 |
+} |
329 |
+ |
330 |
+pkg_postrm() { |
331 |
+ xdg_icon_cache_update |
332 |
+} |