1 |
commit: f9d610a56339495bb5bf5d4bd0e770b15247f21d |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 28 12:08:09 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 28 12:09:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d610a5 |
7 |
|
8 |
media-sound/mpd: Version bump (v0.20.21) |
9 |
|
10 |
- CDEPEND -> COMMON_DEPEND to avoid possible further collision |
11 |
- switch src_install() to default |
12 |
- pin net-libs/libupnp to the zero slot as pkg-config fails otherwise |
13 |
- remove lbcdio patch (has been upstreamed) |
14 |
|
15 |
Closes: https://bugs.gentoo.org/641120 |
16 |
Closes: https://bugs.gentoo.org/645916 |
17 |
Closes: https://bugs.gentoo.org/641584 |
18 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
19 |
|
20 |
media-sound/mpd/Manifest | 1 + |
21 |
media-sound/mpd/mpd-0.20.21.ebuild | 270 +++++++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 271 insertions(+) |
23 |
|
24 |
diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest |
25 |
index 3e72942f5c3..72f3cdc1d4a 100644 |
26 |
--- a/media-sound/mpd/Manifest |
27 |
+++ b/media-sound/mpd/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST mpd-0.20.10.tar.xz 778828 BLAKE2B c16b955ace770cf3d5da2ccad81fd3089cf2e60bf47774745d75babcff38fa344646b26dd32617fa2fe86ee0c785b9c8272ea6c90f77266b1a0cba2d48145236 SHA512 bac6a71e5b85600c590eae6b785474574cf0d7b03d9add537161b968a2997a975a597639a9fece119a01a7e27b5207523e4ae30b2f4f35791eff8c3ff26d107c |
30 |
DIST mpd-0.20.12.tar.xz 781072 BLAKE2B 0f305efa94dca844ebc9e4548d0f57ce01c0274c49f40fe3fc8510b8f2748f2cf623125c16da382a8495aa6eeb1a8b9707a3bb46a5fa8a0657c9ffa11fbcb5dc SHA512 3e221edc71cc65f9da46aa4f1d0bc2f8ca701cc4a103ea8efb08191918312b2f3b0023288e3dcabe0779e81ee6f628773d779462e09a55f2c090cca0e3d099af |
31 |
+DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6 |
32 |
|
33 |
diff --git a/media-sound/mpd/mpd-0.20.21.ebuild b/media-sound/mpd/mpd-0.20.21.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..8bf40077c49 |
36 |
--- /dev/null |
37 |
+++ b/media-sound/mpd/mpd-0.20.21.ebuild |
38 |
@@ -0,0 +1,270 @@ |
39 |
+# Copyright 1999-2018 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit autotools flag-o-matic linux-info systemd user |
45 |
+ |
46 |
+DESCRIPTION="The Music Player Daemon (mpd)" |
47 |
+HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD" |
48 |
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos" |
53 |
+IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad |
54 |
+ +fifo +ffmpeg flac fluidsynth gme +icu +id3tag +inotify +ipv6 jack |
55 |
+ lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug |
56 |
+ mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder |
57 |
+ samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame |
58 |
+ unicode upnp vorbis wavpack wildmidi zeroconf zip zlib webdav" |
59 |
+ |
60 |
+OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder" |
61 |
+DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod |
62 |
+ modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi" |
63 |
+ENCODER_PLUGINS="audiofile flac lame twolame vorbis" |
64 |
+ |
65 |
+REQUIRED_USE=" |
66 |
+ || ( ${OUTPUT_PLUGINS} ) |
67 |
+ || ( ${DECODER_PLUGINS} ) |
68 |
+ network? ( || ( ${ENCODER_PLUGINS} ) ) |
69 |
+ recorder? ( || ( ${ENCODER_PLUGINS} ) ) |
70 |
+ opus? ( ogg ) |
71 |
+ upnp? ( expat ) |
72 |
+ webdav? ( curl expat ) |
73 |
+" |
74 |
+ |
75 |
+COMMON_DEPEND=" |
76 |
+ adplug? ( media-libs/adplug ) |
77 |
+ alsa? ( |
78 |
+ media-libs/alsa-lib |
79 |
+ media-sound/alsa-utils |
80 |
+ ) |
81 |
+ ao? ( media-libs/libao[alsa?,pulseaudio?] ) |
82 |
+ audiofile? ( media-libs/audiofile ) |
83 |
+ bzip2? ( app-arch/bzip2 ) |
84 |
+ cdio? ( |
85 |
+ dev-libs/libcdio:= |
86 |
+ dev-libs/libcdio-paranoia |
87 |
+ ) |
88 |
+ curl? ( net-misc/curl ) |
89 |
+ expat? ( dev-libs/expat ) |
90 |
+ faad? ( media-libs/faad2 ) |
91 |
+ ffmpeg? ( |
92 |
+ libav? ( media-video/libav:0= ) |
93 |
+ !libav? ( media-video/ffmpeg:0= ) |
94 |
+ ) |
95 |
+ flac? ( media-libs/flac[ogg?] ) |
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:0 ) |
107 |
+ mms? ( media-libs/libmms ) |
108 |
+ modplug? ( media-libs/libmodplug ) |
109 |
+ mpg123? ( >=media-sound/mpg123-1.12.2 ) |
110 |
+ musepack? ( media-sound/musepack-tools ) |
111 |
+ network? ( |
112 |
+ >=media-libs/libshout-2 |
113 |
+ !lame? ( !vorbis? ( media-libs/libvorbis ) ) |
114 |
+ ) |
115 |
+ nfs? ( net-fs/libnfs ) |
116 |
+ ogg? ( media-libs/libogg ) |
117 |
+ openal? ( media-libs/openal ) |
118 |
+ opus? ( media-libs/opus ) |
119 |
+ pulseaudio? ( media-sound/pulseaudio ) |
120 |
+ samba? ( >=net-fs/samba-4.0.25 ) |
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 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
130 |
+ twolame? ( media-sound/twolame ) |
131 |
+ upnp? ( net-libs/libupnp:0= ) |
132 |
+ vorbis? ( media-libs/libvorbis ) |
133 |
+ wavpack? ( media-sound/wavpack ) |
134 |
+ wildmidi? ( media-sound/wildmidi ) |
135 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
136 |
+ zip? ( dev-libs/zziplib ) |
137 |
+ zlib? ( sys-libs/zlib )" |
138 |
+DEPEND="${COMMON_DEPEND} |
139 |
+ dev-libs/boost |
140 |
+ virtual/pkgconfig" |
141 |
+RDEPEND="${COMMON_DEPEND} |
142 |
+ !<sys-cluster/mpich2-1.4_rc2 |
143 |
+ selinux? ( sec-policy/selinux-mpd ) |
144 |
+" |
145 |
+ |
146 |
+PATCHES=( |
147 |
+ "${FILESDIR}"/${PN}-0.18.conf.patch |
148 |
+) |
149 |
+ |
150 |
+pkg_setup() { |
151 |
+ use network || ewarn "Icecast and Shoutcast streaming needs networking." |
152 |
+ use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
153 |
+ |
154 |
+ enewuser mpd "" "" "/var/lib/mpd" audio |
155 |
+ |
156 |
+ if use eventfd; then |
157 |
+ CONFIG_CHECK+=" ~EVENTFD" |
158 |
+ ERROR_EVENTFD="${P} requires eventfd in-kernel support." |
159 |
+ fi |
160 |
+ if use signalfd; then |
161 |
+ CONFIG_CHECK+=" ~SIGNALFD" |
162 |
+ ERROR_SIGNALFD="${P} requires signalfd in-kernel support." |
163 |
+ fi |
164 |
+ if use inotify; then |
165 |
+ CONFIG_CHECK+=" ~INOTIFY_USER" |
166 |
+ ERROR_INOTIFY_USER="${P} requires inotify in-kernel support." |
167 |
+ fi |
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 |
+ eautoreconf |
180 |
+} |
181 |
+ |
182 |
+src_configure() { |
183 |
+ local myeconfargs=( |
184 |
+ --enable-database --disable-roar --disable-documentation |
185 |
+ --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder |
186 |
+ --disable-solaris-output --enable-tcp --enable-un --disable-werror |
187 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} |
188 |
+ ) |
189 |
+ |
190 |
+ if use network; then |
191 |
+ myeconfargs+=( |
192 |
+ --enable-shout |
193 |
+ $(use_enable vorbis vorbis-encoder) |
194 |
+ --enable-httpd-output |
195 |
+ $(use_enable lame lame-encoder) |
196 |
+ $(use_enable twolame twolame-encoder) |
197 |
+ $(use_enable audiofile wave-encoder) |
198 |
+ ) |
199 |
+ else |
200 |
+ myeconfargs+=( |
201 |
+ --disable-shout |
202 |
+ --disable-vorbis-encoder |
203 |
+ --disable-httpd-output |
204 |
+ --disable-lame-encoder |
205 |
+ --disable-twolame-encoder |
206 |
+ --disable-wave-encoder |
207 |
+ ) |
208 |
+ fi |
209 |
+ |
210 |
+ if use samba || use upnp; then |
211 |
+ myeconfargs+=( --enable-neighbor-plugins ) |
212 |
+ fi |
213 |
+ |
214 |
+ append-lfs-flags |
215 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders" |
216 |
+ |
217 |
+ myeconfargs+=( |
218 |
+ $(use_enable eventfd) |
219 |
+ $(use_enable signalfd) |
220 |
+ $(use_enable libmpdclient) |
221 |
+ $(use_enable expat) |
222 |
+ $(use_enable upnp) |
223 |
+ $(use_enable adplug) |
224 |
+ $(use_enable alsa) |
225 |
+ $(use_enable ao) |
226 |
+ $(use_enable audiofile) |
227 |
+ $(use_enable zlib) |
228 |
+ $(use_enable bzip2) |
229 |
+ $(use_enable cdio cdio-paranoia) |
230 |
+ $(use_enable curl) |
231 |
+ $(use_enable samba smbclient) |
232 |
+ $(use_enable nfs) |
233 |
+ $(use_enable debug) |
234 |
+ $(use_enable ffmpeg) |
235 |
+ $(use_enable fifo) |
236 |
+ $(use_enable flac) |
237 |
+ $(use_enable fluidsynth) |
238 |
+ $(use_enable gme) |
239 |
+ $(use_enable id3tag id3) |
240 |
+ $(use_enable inotify) |
241 |
+ $(use_enable ipv6) |
242 |
+ $(use_enable cdio iso9660) |
243 |
+ $(use_enable jack) |
244 |
+ $(use_enable soundcloud) |
245 |
+ $(use_enable tcpd libwrap) |
246 |
+ $(use_enable libsamplerate lsr) |
247 |
+ $(use_enable libsoxr soxr) |
248 |
+ $(use_enable mad) |
249 |
+ $(use_enable mikmod) |
250 |
+ $(use_enable mms) |
251 |
+ $(use_enable modplug) |
252 |
+ $(use_enable musepack mpc) |
253 |
+ $(use_enable mpg123) |
254 |
+ $(use_enable openal) |
255 |
+ $(use_enable opus) |
256 |
+ $(use_enable oss) |
257 |
+ $(use_enable pipe pipe-output) |
258 |
+ $(use_enable pulseaudio pulse) |
259 |
+ $(use_enable recorder recorder-output) |
260 |
+ $(use_enable sid sidplay) |
261 |
+ $(use_enable sndfile sndfile) |
262 |
+ $(use_enable sqlite) |
263 |
+ $(use_enable systemd systemd_daemon) |
264 |
+ $(use_enable vorbis) |
265 |
+ $(use_enable wavpack) |
266 |
+ $(use_enable wildmidi) |
267 |
+ $(use_enable zip zzip) |
268 |
+ $(use_enable icu) |
269 |
+ $(use_enable webdav) |
270 |
+ $(use_enable faad aac) |
271 |
+ $(use_with zeroconf zeroconf avahi) |
272 |
+ --with-boost="${EPREFIX}"/usr |
273 |
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir) |
274 |
+ --with-systemduserunitdir=$(systemd_get_userunitdir) |
275 |
+ ) |
276 |
+ |
277 |
+ econf "${myeconfargs[@]}" |
278 |
+} |
279 |
+ |
280 |
+src_install() { |
281 |
+ default |
282 |
+ |
283 |
+ insinto /etc |
284 |
+ newins doc/mpdconf.dist mpd.conf |
285 |
+ |
286 |
+ newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN} |
287 |
+ |
288 |
+ if use unicode; then |
289 |
+ sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
290 |
+ "${ED}"/etc/mpd.conf || die "sed failed" |
291 |
+ fi |
292 |
+ |
293 |
+ insinto /etc/logrotate.d |
294 |
+ newins "${FILESDIR}"/${PN}-0.20.12.logrotate ${PN} |
295 |
+ |
296 |
+ use prefix || diropts -m0755 -o mpd -g audio |
297 |
+ dodir /var/lib/mpd |
298 |
+ keepdir /var/lib/mpd |
299 |
+ dodir /var/lib/mpd/music |
300 |
+ keepdir /var/lib/mpd/music |
301 |
+ dodir /var/lib/mpd/playlists |
302 |
+ keepdir /var/lib/mpd/playlists |
303 |
+} |
304 |
+ |
305 |
+pkg_postinst() { |
306 |
+ # also change the homedir if the user has existed before |
307 |
+ usermod -d "/var/lib/mpd" mpd |
308 |
+} |