1 |
commit: 18ffb33cd4079c2c654901b214f8049f829c39a4 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 23 20:25:31 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 20:25:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ffb33c |
7 |
|
8 |
media-sound/mpd: Version bump (v0.21.23) |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-sound/mpd/Manifest | 1 + |
14 |
media-sound/mpd/mpd-0.21.23.ebuild | 298 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 299 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
18 |
index 65499054a0b..c1159f7f343 100644 |
19 |
--- a/media-sound/mpd/Manifest |
20 |
+++ b/media-sound/mpd/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST mpd-0.21.20.tar.xz 676396 BLAKE2B e87d844ac0b20f10df7d2306d1c76f76ead84f5e61acb51f60d62847b1fb4f2ada66b20e0a36d87eaf70289027139e4beb80ea8ef7637b1cdb656c9635adb720 SHA512 9dd49190ba4c85014d24e88cdb02a4649e8fb687a49fc9ea019f23725eda483980008e9abebf0ad3960bd310b693c56999699d7c7ddee3ca18e9b2aa6d5a2176 |
23 |
DIST mpd-0.21.21.tar.xz 676668 BLAKE2B 83964784db4a7372344853ebf2e9c966e23ac293c06304a8aa6f927ec8ea38d2749d88670f1c5e380953bb8b777b4b0f2c5e8a98d7eb3cf1bae50b5e11549150 SHA512 1780a24f341dec1cbc3d9170cc2fc8249081cac8f677ff17df15fc959787cf43d30696eefba9b8a44824da14eee3d58e2ee78b34db1335c0a182b4c2a89e6b3a |
24 |
DIST mpd-0.21.22.tar.xz 679244 BLAKE2B d2d76662d1f249b138d3a173cdf712eafcebf91e819b70f2cbc6ccb36ca4bc1f2319972548445789d8861345af5e18ea82f071cd7874a7380bbdda85cf834b73 SHA512 051d97500d8224fe4769a667a58c7915eebcca809e9345a30881f99d7c33d99907d9cc0258c0a5fd20f10609edbeb6da16941099ac3c033762ceb4b116e4df04 |
25 |
+DIST mpd-0.21.23.tar.xz 680060 BLAKE2B 5c7b4a69ff5960b171d715560aa7a6b0712a7fd3758e1561e5aea957c5d13164d92bee0ed262b70ea7e91d73c16412840078603c95d50959cc06d9aa4a981022 SHA512 155f606cd6ddce3e74d745a0f1479776d9f73b4cd250604072a863e28ea72d1ff1a7eafeae44cada7b16042251065634376eaa1a211b503e2f874c72dbcdecf0 |
26 |
|
27 |
diff --git a/media-sound/mpd/mpd-0.21.23.ebuild b/media-sound/mpd/mpd-0.21.23.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..731ab04c695 |
30 |
--- /dev/null |
31 |
+++ b/media-sound/mpd/mpd-0.21.23.ebuild |
32 |
@@ -0,0 +1,298 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit flag-o-matic linux-info meson systemd xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="The Music Player Daemon (mpd)" |
41 |
+HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
42 |
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-macos" |
47 |
+IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl +dbus debug |
48 |
+ +eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify |
49 |
+ +ipv6 jack lame libav libmpdclient libsamplerate libsoxr +mad mikmod mms |
50 |
+ modplug mpg123 musepack +network nfs openal opus oss pipe pulseaudio qobuz |
51 |
+ recorder samba selinux sid signalfd sndfile soundcloud sqlite systemd |
52 |
+ test tidal twolame udisks unicode vorbis wavpack webdav wildmidi upnp |
53 |
+ zeroconf zip zlib" |
54 |
+ |
55 |
+OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
56 |
+DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod |
57 |
+ modplug mpg123 musepack flac sid vorbis wavpack wildmidi" |
58 |
+ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
59 |
+ |
60 |
+REQUIRED_USE=" |
61 |
+ || ( ${OUTPUT_PLUGINS} ) |
62 |
+ || ( ${DECODER_PLUGINS} ) |
63 |
+ network? ( || ( ${ENCODER_PLUGINS} ) ) |
64 |
+ recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
65 |
+ upnp? ( expat ) |
66 |
+ webdav? ( curl expat ) |
67 |
+ " |
68 |
+ |
69 |
+RESTRICT="!test? ( test )" |
70 |
+ |
71 |
+RDEPEND=" |
72 |
+ acct-user/mpd |
73 |
+ alsa? ( |
74 |
+ media-libs/alsa-lib |
75 |
+ media-sound/alsa-utils |
76 |
+ ) |
77 |
+ |
78 |
+ ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
79 |
+ audiofile? ( media-libs/audiofile:= ) |
80 |
+ |
81 |
+ cdio? ( |
82 |
+ dev-libs/libcdio:= |
83 |
+ dev-libs/libcdio-paranoia |
84 |
+ ) |
85 |
+ |
86 |
+ chromaprint? ( media-libs/chromaprint ) |
87 |
+ curl? ( net-misc/curl ) |
88 |
+ dbus? ( sys-apps/dbus ) |
89 |
+ expat? ( dev-libs/expat ) |
90 |
+ faad? ( media-libs/faad2 ) |
91 |
+ |
92 |
+ ffmpeg? ( |
93 |
+ libav? ( media-video/libav:0= ) |
94 |
+ !libav? ( media-video/ffmpeg:0= ) |
95 |
+ ) |
96 |
+ |
97 |
+ flac? ( media-libs/flac ) |
98 |
+ fluidsynth? ( media-sound/fluidsynth ) |
99 |
+ gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 ) |
100 |
+ icu? ( dev-libs/icu:= ) |
101 |
+ id3tag? ( media-libs/libid3tag ) |
102 |
+ jack? ( virtual/jack ) |
103 |
+ lame? ( network? ( media-sound/lame ) ) |
104 |
+ libmpdclient? ( media-libs/libmpdclient ) |
105 |
+ libsamplerate? ( media-libs/libsamplerate ) |
106 |
+ libsoxr? ( media-libs/soxr ) |
107 |
+ mad? ( media-libs/libmad ) |
108 |
+ mikmod? ( media-libs/libmikmod ) |
109 |
+ mms? ( media-libs/libmms ) |
110 |
+ modplug? ( media-libs/libmodplug ) |
111 |
+ mpg123? ( media-sound/mpg123 ) |
112 |
+ musepack? ( media-sound/musepack-tools ) |
113 |
+ network? ( media-libs/libshout ) |
114 |
+ nfs? ( net-fs/libnfs ) |
115 |
+ openal? ( media-libs/openal ) |
116 |
+ opus? ( media-libs/opus ) |
117 |
+ pulseaudio? ( media-sound/pulseaudio ) |
118 |
+ qobuz? ( dev-libs/libgcrypt:0 ) |
119 |
+ samba? ( net-fs/samba ) |
120 |
+ selinux? ( sec-policy/selinux-mpd ) |
121 |
+ sid? ( || ( |
122 |
+ media-libs/libsidplay:2 |
123 |
+ media-libs/libsidplayfp |
124 |
+ ) ) |
125 |
+ sndfile? ( media-libs/libsndfile ) |
126 |
+ soundcloud? ( >=dev-libs/yajl-2:= ) |
127 |
+ sqlite? ( dev-db/sqlite:3 ) |
128 |
+ systemd? ( sys-apps/systemd ) |
129 |
+ tidal? ( dev-libs/yajl |
130 |
+ net-misc/curl ) |
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.49.2 |
146 |
+ virtual/pkgconfig" |
147 |
+ |
148 |
+PATCHES=( |
149 |
+ "${FILESDIR}"/${PN}-0.18.conf.patch |
150 |
+) |
151 |
+ |
152 |
+pkg_setup() { |
153 |
+ if use eventfd; then |
154 |
+ CONFIG_CHECK+=" ~EVENTFD" |
155 |
+ ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
156 |
+ fi |
157 |
+ |
158 |
+ if use signalfd; then |
159 |
+ CONFIG_CHECK+=" ~SIGNALFD" |
160 |
+ ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
161 |
+ fi |
162 |
+ |
163 |
+ if use inotify; then |
164 |
+ CONFIG_CHECK+=" ~INOTIFY_USER" |
165 |
+ ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
166 |
+ fi |
167 |
+ |
168 |
+ if use eventfd || use signalfd || use inotify; then |
169 |
+ linux-info_pkg_setup |
170 |
+ fi |
171 |
+ |
172 |
+ elog "If you will be starting mpd via /etc/init.d/mpd, please make |
173 |
+ sure that MPD's pid_file is _set_." |
174 |
+} |
175 |
+ |
176 |
+src_prepare() { |
177 |
+ cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed" |
178 |
+ default |
179 |
+} |
180 |
+ |
181 |
+src_configure() { |
182 |
+ local emesonargs=( |
183 |
+ -Dbzip2=$(usex bzip2 enabled disabled) |
184 |
+ -Dcdio_paranoia=$(usex cdio enabled disabled) |
185 |
+ -Dchromaprint=$(usex chromaprint enabled disabled) |
186 |
+ -Dcue=$(usex cue true false) |
187 |
+ -Dcurl=$(usex curl enabled disabled) |
188 |
+ -Ddbus=$(usex dbus enabled disabled) |
189 |
+ -Ddebug=$(usex debug true false) |
190 |
+ -Deventfd=$(usex eventfd true false) |
191 |
+ -Dexpat=$(usex expat enabled disabled) |
192 |
+ -Dicu=$(usex icu enabled disabled) |
193 |
+ -Did3tag=$(usex id3tag enabled disabled) |
194 |
+ -Dinotify=$(usex inotify true false) |
195 |
+ -Dipv6=$(usex ipv6 enabled disabled) |
196 |
+ -Diso9660=$(usex cdio enabled disabled) |
197 |
+ -Dlibmpdclient=$(usex libmpdclient enabled disabled) |
198 |
+ -Dlibsamplerate=$(usex libsamplerate enabled disabled) |
199 |
+ -Dmms=$(usex mms enabled disabled) |
200 |
+ -Dnfs=$(usex nfs enabled disabled) |
201 |
+ -Dsignalfd=$(usex signalfd true false) |
202 |
+ -Dsmbclient=$(usex samba enabled disabled) |
203 |
+ -Dsoxr=$(usex libsoxr enabled disabled) |
204 |
+ -Dsqlite=$(usex sqlite enabled disabled) |
205 |
+ -Dsystemd=$(usex systemd enabled disabled) |
206 |
+ -Dtest=$(usex test true false) |
207 |
+ -Dudisks=$(usex udisks enabled disabled) |
208 |
+ -Dupnp=$(usex upnp enabled disabled) |
209 |
+ -Dwebdav=$(usex webdav enabled disabled) |
210 |
+ -Dzeroconf=$(usex zeroconf avahi disabled) |
211 |
+ -Dzlib=$(usex zlib enabled disabled) |
212 |
+ -Dzzip=$(usex zip enabled disabled) |
213 |
+ ) |
214 |
+ |
215 |
+ emesonargs+=( |
216 |
+ -Dalsa=$(usex alsa enabled disabled) |
217 |
+ -Dao=$(usex ao enabled disabled) |
218 |
+ -Dfifo=$(usex fifo true false) |
219 |
+ -Djack=$(usex jack enabled disabled) |
220 |
+ -Dopenal=$(usex openal enabled disabled) |
221 |
+ -Doss=$(usex oss enabled disabled) |
222 |
+ -Dpipe=$(usex pipe true false) |
223 |
+ -Dpulse=$(usex pulseaudio enabled disabled) |
224 |
+ -Drecorder=$(usex recorder true false) |
225 |
+ ) |
226 |
+ |
227 |
+ if use samba || use upnp; then |
228 |
+ emesonargs+=( -Dneighbor=true ) |
229 |
+ fi |
230 |
+ |
231 |
+ append-lfs-flags |
232 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
233 |
+ |
234 |
+ if use network; then |
235 |
+ |
236 |
+ emesonargs+=( |
237 |
+ -Dshine=disabled |
238 |
+ -Dshout=enabled |
239 |
+ -Dvorbisenc=$(usex vorbis enabled disabled) |
240 |
+ -Dhttpd=true |
241 |
+ -Dlame=$(usex lame enabled disabled) |
242 |
+ -Dtwolame=$(usex twolame enabled disabled) |
243 |
+ -Dwave_encoder=$(usex audiofile true false) |
244 |
+ ) |
245 |
+ fi |
246 |
+ |
247 |
+ emesonargs+=( |
248 |
+ # media-libs/adplug is not packaged anymore |
249 |
+ -Dadplug=disabled |
250 |
+ -Daudiofile=$(usex audiofile enabled disabled) |
251 |
+ -Dfaad=$(usex faad enabled disabled) |
252 |
+ -Dffmpeg=$(usex ffmpeg enabled disabled) |
253 |
+ -Dflac=$(usex flac enabled disabled) |
254 |
+ -Dfluidsynth=$(usex fluidsynth enabled disabled) |
255 |
+ -Dgme=$(usex gme enabled disabled) |
256 |
+ -Dmad=$(usex mad enabled disabled) |
257 |
+ -Dmikmod=$(usex mikmod enabled disabled) |
258 |
+ -Dmodplug=$(usex modplug enabled disabled) |
259 |
+ -Dmpcdec=$(usex musepack enabled disabled) |
260 |
+ -Dmpg123=$(usex mpg123 enabled disabled) |
261 |
+ -Dopus=$(usex opus enabled disabled) |
262 |
+ -Dsidplay=$(usex sid enabled disabled) |
263 |
+ -Dsndfile=$(usex sndfile enabled disabled) |
264 |
+ -Dvorbis=$(usex vorbis enabled disabled) |
265 |
+ -Dwavpack=$(usex wavpack enabled disabled) |
266 |
+ -Dwildmidi=$(usex wildmidi enabled disabled) |
267 |
+ |
268 |
+ ) |
269 |
+ |
270 |
+ emesonargs+=( |
271 |
+ -Dqobuz=$(usex qobuz enabled disabled) |
272 |
+ -Dsoundcloud=$(usex soundcloud enabled disabled) |
273 |
+ -Dtidal=$(usex tidal enabled disabled) |
274 |
+ ) |
275 |
+ |
276 |
+ emesonargs+=( |
277 |
+ --libdir="/usr/$(get_libdir)" |
278 |
+ -Ddocumentation=false |
279 |
+ -Dsndio=disabled #not yet in the tree |
280 |
+ -Dsolaris_output=disabled |
281 |
+ |
282 |
+ -Ddatabase=true |
283 |
+ -Ddsd=true |
284 |
+ -Dtcp=true |
285 |
+ |
286 |
+ -Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)" |
287 |
+ -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" |
288 |
+ ) |
289 |
+ |
290 |
+ if use icu; then |
291 |
+ emesonargs+=( -Diconv=enabled ) |
292 |
+ else |
293 |
+ emesonargs+=( -Diconv=disabled ) |
294 |
+ fi |
295 |
+ |
296 |
+ meson_src_configure |
297 |
+} |
298 |
+ |
299 |
+src_install() { |
300 |
+ meson_src_install |
301 |
+ |
302 |
+ insinto /etc |
303 |
+ newins doc/mpdconf.dist mpd.conf |
304 |
+ |
305 |
+ insinto /etc/logrotate.d |
306 |
+ newins "${FILESDIR}"/${PN}-0.21.1.logrotate ${PN} |
307 |
+ |
308 |
+ newinitd "${FILESDIR}"/${PN}-0.21.4.init ${PN} |
309 |
+ |
310 |
+ if use unicode; then |
311 |
+ sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
312 |
+ "${ED}"/etc/mpd.conf || die "sed failed" |
313 |
+ fi |
314 |
+ |
315 |
+ doman doc/mpd.1 |
316 |
+ doman doc/mpd.conf.5 |
317 |
+ |
318 |
+ keepdir /var/lib/mpd |
319 |
+ keepdir /var/lib/mpd/music |
320 |
+ keepdir /var/lib/mpd/playlists |
321 |
+ |
322 |
+} |
323 |
+ |
324 |
+pkg_postinst() { |
325 |
+ xdg_icon_cache_update |
326 |
+} |
327 |
+ |
328 |
+pkg_postrm() { |
329 |
+ xdg_icon_cache_update |
330 |
+} |