Gentoo Archives: gentoo-commits

From: Christoph Mende <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpd/
Date: Thu, 29 Oct 2015 16:35:56
Message-Id: 1446136508.f9ab2cf126cf6cfe0443c77bde6d4dcb2c56c3c3.angelos@gentoo
1 commit: f9ab2cf126cf6cfe0443c77bde6d4dcb2c56c3c3
2 Author: Christoph Mende <angelos <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 16:35:08 2015 +0000
4 Commit: Christoph Mende <angelos <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 16:35:08 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9ab2cf1
7
8 media-sound/mpd: version bump to 0.19.11
9
10 Package-Manager: portage-2.2.23
11
12 media-sound/mpd/Manifest | 1 +
13 media-sound/mpd/mpd-0.19.11.ebuild | 250 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 251 insertions(+)
15
16 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
17 index f0f893d..1071f76 100644
18 --- a/media-sound/mpd/Manifest
19 +++ b/media-sound/mpd/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mpd-0.19.10.tar.xz 701668 SHA256 c386eb3d22f98dc993b5ae3c272f969aa7763713483c6800040ebf1791b15851 SHA512 037e1ccd69456bd7d388cbcba26de83144816684fb266995b173df960051e84203d3fc7255d7766eee5dbe0629dbb7745b9821664486158d33da4f29189edef8 WHIRLPOOL 02c2ec2c898fbeb9bf39ae9a2b57d85881825489a033f56b6140602f7cd6176f39d4aa09f0dfd2391214bd70d3ffab0e7a7eefcba8085e5ea7d15168028efa53
22 +DIST mpd-0.19.11.tar.xz 703064 SHA256 7a5c66aa5af97a5b7af3dc49e3d2594071dafd62a14e2e9f7c9a5a86342836c6 SHA512 3ad505a75651facd141efbb43ebb86a9f1b66a0bc044d39c9131068fc20d05037ad449935fd6fc20917dfd690cdc256c1d1deb7427039d2345b13bea2b2eb66e WHIRLPOOL da4a05fce7276e8f98acfe2a0eceb71e747049d9c64b7eed226b5e8e3b2c5fd197098b20509e5cb2ad2f280a4f3872439a893ad58677be5b79b251d57b04c90d
23 DIST mpd-0.19.9.tar.xz 701480 SHA256 47851423053cd38cfad65be5985b41b7cd5bdbe8d0d13378e11748a28b19f26f SHA512 7d74254e009008ed142ce0b69e75fe6f255ec2c814b246f570225af715ec5c3a5c75276f4720bc1ad351d48be5b20f9797843c03aae9380a6062796539507bf4 WHIRLPOOL 04ee826f55512c5f4b28f0bfbf78e23710070970be2f7da07b421483da1d9dad20b0b3513a2529f88d83c92f8202cb57bad09fee894eb18387cbc156312e3a06
24
25 diff --git a/media-sound/mpd/mpd-0.19.11.ebuild b/media-sound/mpd/mpd-0.19.11.ebuild
26 new file mode 100644
27 index 0000000..da43a94
28 --- /dev/null
29 +++ b/media-sound/mpd/mpd-0.19.11.ebuild
30 @@ -0,0 +1,250 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +inherit eutils flag-o-matic linux-info multilib readme.gentoo systemd user
37 +
38 +DESCRIPTION="The Music Player Daemon (mpd)"
39 +HOMEPAGE="http://www.musicpd.org"
40 +SRC_URI="http://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 +glib 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"
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="|| ( ${OUTPUT_PLUGINS} )
58 + || ( ${DECODER_PLUGINS} )
59 + ao? ( glib )
60 + gme? ( glib )
61 + jack? ( glib )
62 + network? ( || ( ${ENCODER_PLUGINS} )
63 + glib )
64 + recorder? ( || ( ${ENCODER_PLUGINS} ) )
65 + sid? ( glib )
66 + soundcloud? ( glib )
67 + sqlite? ( glib )
68 + opus? ( ogg )
69 + upnp? ( expat )
70 + vorbis? ( glib )
71 + wavpack? ( glib )"
72 +
73 +CDEPEND="!<sys-cluster/mpich2-1.4_rc2
74 + adplug? ( media-libs/adplug )
75 + alsa? ( media-sound/alsa-utils
76 + media-libs/alsa-lib )
77 + ao? ( media-libs/libao[alsa?,pulseaudio?] )
78 + audiofile? ( media-libs/audiofile )
79 + bzip2? ( app-arch/bzip2 )
80 + cdio? ( dev-libs/libcdio-paranoia )
81 + curl? ( net-misc/curl )
82 + expat? ( dev-libs/expat )
83 + faad? ( media-libs/faad2 )
84 + ffmpeg? (
85 + libav? ( media-video/libav:0= )
86 + !libav? ( media-video/ffmpeg:0= )
87 + )
88 + flac? ( media-libs/flac[ogg?] )
89 + fluidsynth? ( media-sound/fluidsynth )
90 + glib? ( dev-libs/glib:2 )
91 + gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
92 + icu? ( dev-libs/icu:= )
93 + id3tag? ( media-libs/libid3tag )
94 + jack? ( media-sound/jack-audio-connection-kit )
95 + lame? ( network? ( media-sound/lame ) )
96 + libmpdclient? ( media-libs/libmpdclient )
97 + libsamplerate? ( media-libs/libsamplerate )
98 + mad? ( media-libs/libmad )
99 + mikmod? ( media-libs/libmikmod:0 )
100 + mms? ( media-libs/libmms )
101 + modplug? ( media-libs/libmodplug )
102 + mpg123? ( >=media-sound/mpg123-1.12.2 )
103 + musepack? ( media-sound/musepack-tools )
104 + network? ( >=media-libs/libshout-2
105 + !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
106 + nfs? ( net-fs/libnfs )
107 + ogg? ( media-libs/libogg )
108 + openal? ( media-libs/openal )
109 + opus? ( media-libs/opus )
110 + pulseaudio? ( media-sound/pulseaudio )
111 + samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
112 + sid? ( media-libs/libsidplay:2 )
113 + sndfile? ( media-libs/libsndfile )
114 + soundcloud? ( >=dev-libs/yajl-2 )
115 + libsoxr? ( media-libs/soxr )
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 + selinux? ( sec-policy/selinux-mpd )
132 +"
133 +
134 +pkg_setup() {
135 + use network || ewarn "Icecast and Shoutcast streaming needs networking."
136 + use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
137 +
138 + enewuser mpd "" "" "/var/lib/mpd" audio
139 +
140 + if use eventfd; then
141 + CONFIG_CHECK+=" ~EVENTFD"
142 + ERROR_EVENTFD="${P} requires eventfd in-kernel support."
143 + fi
144 + if use signalfd; then
145 + CONFIG_CHECK+=" ~SIGNALFD"
146 + ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
147 + fi
148 + if use inotify; then
149 + CONFIG_CHECK+=" ~INOTIFY_USER"
150 + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
151 + fi
152 + if use eventfd || use signalfd || use inotify; then
153 + linux-info_pkg_setup
154 + fi
155 +}
156 +
157 +src_prepare() {
158 + DOC_CONTENTS="If you will be starting mpd via /etc/init.d/mpd, please make
159 + sure that MPD's pid_file is _set_."
160 +
161 + cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
162 + epatch "${FILESDIR}"/${PN}-0.18.conf.patch
163 +}
164 +
165 +src_configure() {
166 + local mpdconf="--enable-database --disable-roar --disable-documentation
167 + --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
168 + --disable-solaris-output --enable-tcp --enable-un --disable-werror
169 + --docdir=${EPREFIX}/usr/share/doc/${PF}"
170 +
171 + if use network; then
172 + mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
173 + --enable-httpd-output $(use_enable lame lame-encoder)
174 + $(use_enable twolame twolame-encoder)
175 + $(use_enable audiofile wave-encoder)"
176 + else
177 + mpdconf+=" --disable-shout --disable-vorbis-encoder
178 + --disable-httpd-output --disable-lame-encoder
179 + --disable-twolame-encoder --disable-wave-encoder"
180 + fi
181 +
182 + if use samba || use upnp; then
183 + mpdconf+=" --enable-neighbor-plugins"
184 + fi
185 +
186 + append-lfs-flags
187 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
188 +
189 + econf \
190 + $(use_enable eventfd) \
191 + $(use_enable signalfd) \
192 + $(use_enable libmpdclient) \
193 + $(use_enable expat) \
194 + $(use_enable upnp) \
195 + $(use_enable adplug) \
196 + $(use_enable alsa) \
197 + $(use_enable ao) \
198 + $(use_enable audiofile) \
199 + $(use_enable zlib) \
200 + $(use_enable bzip2) \
201 + $(use_enable cdio cdio-paranoia) \
202 + $(use_enable curl) \
203 + $(use_enable samba smbclient) \
204 + $(use_enable nfs) \
205 + $(use_enable debug) \
206 + $(use_enable ffmpeg) \
207 + $(use_enable fifo) \
208 + $(use_enable flac) \
209 + $(use_enable fluidsynth) \
210 + $(use_enable gme) \
211 + $(use_enable id3tag id3) \
212 + $(use_enable inotify) \
213 + $(use_enable ipv6) \
214 + $(use_enable cdio iso9660) \
215 + $(use_enable jack) \
216 + $(use_enable soundcloud) \
217 + $(use_enable tcpd libwrap) \
218 + $(use_enable libsamplerate lsr) \
219 + $(use_enable libsoxr soxr) \
220 + $(use_enable mad) \
221 + $(use_enable mikmod) \
222 + $(use_enable mms) \
223 + $(use_enable modplug) \
224 + $(use_enable musepack mpc) \
225 + $(use_enable mpg123) \
226 + $(use_enable openal) \
227 + $(use_enable opus) \
228 + $(use_enable oss) \
229 + $(use_enable pipe pipe-output) \
230 + $(use_enable pulseaudio pulse) \
231 + $(use_enable recorder recorder-output) \
232 + $(use_enable sid sidplay) \
233 + $(use_enable sndfile sndfile) \
234 + $(use_enable sqlite) \
235 + $(use_enable systemd systemd-daemon) \
236 + $(use_enable vorbis) \
237 + $(use_enable wavpack) \
238 + $(use_enable wildmidi) \
239 + $(use_enable zip zzip) \
240 + $(use_enable icu) \
241 + $(use_enable glib) \
242 + $(use_enable faad aac) \
243 + $(use_with zeroconf zeroconf avahi) \
244 + "$(systemd_with_unitdir)" \
245 + ${mpdconf}
246 +}
247 +
248 +src_install() {
249 + emake DESTDIR="${D}" install
250 +
251 + insinto /etc
252 + newins doc/mpdconf.dist mpd.conf
253 +
254 + newinitd "${FILESDIR}"/${PN}2.init ${PN}
255 +
256 + if use unicode; then
257 + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
258 + "${ED}"/etc/mpd.conf || die "sed failed"
259 + fi
260 +
261 + insinto /etc/logrotate.d
262 + newins "${FILESDIR}"/${PN}.logrotate ${PN}
263 +
264 + use prefix || diropts -m0755 -o mpd -g audio
265 + dodir /var/lib/mpd
266 + keepdir /var/lib/mpd
267 + dodir /var/lib/mpd/music
268 + keepdir /var/lib/mpd/music
269 + dodir /var/lib/mpd/playlists
270 + keepdir /var/lib/mpd/playlists
271 +
272 + readme.gentoo_create_doc
273 +}
274 +
275 +pkg_postinst() {
276 + readme.gentoo_print_elog
277 +
278 + # also change the homedir if the user has existed before
279 + usermod -d "/var/lib/mpd" mpd
280 +}