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