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