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