Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpd/
Date: Thu, 25 Oct 2018 19:42:06
Message-Id: 1540496510.ebcb4dc6f2d7157039b3054ccfc5bf329c64aa43.zlogene@gentoo
1 commit: ebcb4dc6f2d7157039b3054ccfc5bf329c64aa43
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 25 19:41:28 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 25 19:41:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebcb4dc6
7
8 media-sound/mpd: Version bump (v0.20.22)
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 media-sound/mpd/Manifest | 1 +
14 media-sound/mpd/mpd-0.20.22.ebuild | 270 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 271 insertions(+)
16
17 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
18 index 519d5fac1d6..2fc94c7a71f 100644
19 --- a/media-sound/mpd/Manifest
20 +++ b/media-sound/mpd/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mpd-0.20.10.tar.xz 778828 BLAKE2B c16b955ace770cf3d5da2ccad81fd3089cf2e60bf47774745d75babcff38fa344646b26dd32617fa2fe86ee0c785b9c8272ea6c90f77266b1a0cba2d48145236 SHA512 bac6a71e5b85600c590eae6b785474574cf0d7b03d9add537161b968a2997a975a597639a9fece119a01a7e27b5207523e4ae30b2f4f35791eff8c3ff26d107c
23 DIST mpd-0.20.21.tar.xz 800476 BLAKE2B 0c807ae8d79abd9400aa417b516c709073b23390aeed2b385c716e20f8c4f93376a235b54fe5f5cfcd451b04c76e105b41acbd180d294281432d4d1b6a427a15 SHA512 d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6
24 +DIST mpd-0.20.22.tar.xz 807084 BLAKE2B 156b5cac8ea571df37cd4460fb6c511c4101bed16dd9196d4287ed7dd83069d7cbe1c6ab64b2d955c36c22499653c929da2516a1ceafb498ba4b5645390ea568 SHA512 7fe2b7f31cdda874ec686fd3d2047a6630c9370d7475004c09fdb3c35e85ef1e1ee5d63e039ed1fed52929498a3d261b297e68ed802ae7487810d5779b02ad10
25
26 diff --git a/media-sound/mpd/mpd-0.20.22.ebuild b/media-sound/mpd/mpd-0.20.22.ebuild
27 new file mode 100644
28 index 00000000000..0e22d829753
29 --- /dev/null
30 +++ b/media-sound/mpd/mpd-0.20.22.ebuild
31 @@ -0,0 +1,270 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit autotools flag-o-matic linux-info systemd user
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 ~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 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 webdav"
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="
59 + || ( ${OUTPUT_PLUGINS} )
60 + || ( ${DECODER_PLUGINS} )
61 + network? ( || ( ${ENCODER_PLUGINS} ) )
62 + recorder? ( || ( ${ENCODER_PLUGINS} ) )
63 + opus? ( ogg )
64 + upnp? ( expat )
65 + webdav? ( curl expat )
66 +"
67 +
68 +COMMON_DEPEND="
69 + adplug? ( media-libs/adplug )
70 + alsa? (
71 + media-libs/alsa-lib
72 + media-sound/alsa-utils
73 + )
74 + ao? ( media-libs/libao[alsa?,pulseaudio?] )
75 + audiofile? ( media-libs/audiofile )
76 + bzip2? ( app-arch/bzip2 )
77 + cdio? (
78 + dev-libs/libcdio:=
79 + dev-libs/libcdio-paranoia
80 + )
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 + gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
91 + icu? ( dev-libs/icu:= )
92 + id3tag? ( media-libs/libid3tag )
93 + jack? ( virtual/jack )
94 + lame? ( network? ( media-sound/lame ) )
95 + libmpdclient? ( media-libs/libmpdclient )
96 + libsamplerate? ( media-libs/libsamplerate )
97 + libsoxr? ( media-libs/soxr )
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? (
105 + >=media-libs/libshout-2
106 + !lame? ( !vorbis? ( media-libs/libvorbis ) )
107 + )
108 + nfs? ( net-fs/libnfs )
109 + ogg? ( media-libs/libogg )
110 + openal? ( media-libs/openal )
111 + opus? ( media-libs/opus )
112 + pulseaudio? ( media-sound/pulseaudio )
113 + samba? ( >=net-fs/samba-4.0.25 )
114 + sid? ( || (
115 + media-libs/libsidplay:2
116 + media-libs/libsidplayfp
117 + ) )
118 + sndfile? ( media-libs/libsndfile )
119 + soundcloud? ( >=dev-libs/yajl-2:= )
120 + sqlite? ( dev-db/sqlite:3 )
121 + systemd? ( sys-apps/systemd )
122 + tcpd? ( sys-apps/tcp-wrappers )
123 + twolame? ( media-sound/twolame )
124 + upnp? ( net-libs/libupnp:0= )
125 + vorbis? ( media-libs/libvorbis )
126 + wavpack? ( media-sound/wavpack )
127 + wildmidi? ( media-sound/wildmidi )
128 + zeroconf? ( net-dns/avahi[dbus] )
129 + zip? ( dev-libs/zziplib )
130 + zlib? ( sys-libs/zlib )"
131 +DEPEND="${COMMON_DEPEND}
132 + dev-libs/boost
133 + virtual/pkgconfig"
134 +RDEPEND="${COMMON_DEPEND}
135 + !<sys-cluster/mpich2-1.4_rc2
136 + selinux? ( sec-policy/selinux-mpd )
137 +"
138 +
139 +PATCHES=(
140 + "${FILESDIR}"/${PN}-0.18.conf.patch
141 +)
142 +
143 +pkg_setup() {
144 + use network || ewarn "Icecast and Shoutcast streaming needs networking."
145 + use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
146 +
147 + enewuser mpd "" "" "/var/lib/mpd" audio
148 +
149 + if use eventfd; then
150 + CONFIG_CHECK+=" ~EVENTFD"
151 + ERROR_EVENTFD="${P} requires eventfd in-kernel support."
152 + fi
153 + if use signalfd; then
154 + CONFIG_CHECK+=" ~SIGNALFD"
155 + ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
156 + fi
157 + if use inotify; then
158 + CONFIG_CHECK+=" ~INOTIFY_USER"
159 + ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
160 + fi
161 + if use eventfd || use signalfd || use inotify; then
162 + linux-info_pkg_setup
163 + fi
164 +
165 + elog "If you will be starting mpd via /etc/init.d/mpd, please make
166 + sure that MPD's pid_file is _set_."
167 +}
168 +
169 +src_prepare() {
170 + cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
171 + default
172 + eautoreconf
173 +}
174 +
175 +src_configure() {
176 + local myeconfargs=(
177 + --enable-database --disable-roar --disable-documentation
178 + --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
179 + --disable-solaris-output --enable-tcp --enable-un --disable-werror
180 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
181 + )
182 +
183 + if use network; then
184 + myeconfargs+=(
185 + --enable-shout
186 + $(use_enable vorbis vorbis-encoder)
187 + --enable-httpd-output
188 + $(use_enable lame lame-encoder)
189 + $(use_enable twolame twolame-encoder)
190 + $(use_enable audiofile wave-encoder)
191 + )
192 + else
193 + myeconfargs+=(
194 + --disable-shout
195 + --disable-vorbis-encoder
196 + --disable-httpd-output
197 + --disable-lame-encoder
198 + --disable-twolame-encoder
199 + --disable-wave-encoder
200 + )
201 + fi
202 +
203 + if use samba || use upnp; then
204 + myeconfargs+=( --enable-neighbor-plugins )
205 + fi
206 +
207 + append-lfs-flags
208 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
209 +
210 + myeconfargs+=(
211 + $(use_enable eventfd)
212 + $(use_enable signalfd)
213 + $(use_enable libmpdclient)
214 + $(use_enable expat)
215 + $(use_enable upnp)
216 + $(use_enable adplug)
217 + $(use_enable alsa)
218 + $(use_enable ao)
219 + $(use_enable audiofile)
220 + $(use_enable zlib)
221 + $(use_enable bzip2)
222 + $(use_enable cdio cdio-paranoia)
223 + $(use_enable curl)
224 + $(use_enable samba smbclient)
225 + $(use_enable nfs)
226 + $(use_enable debug)
227 + $(use_enable ffmpeg)
228 + $(use_enable fifo)
229 + $(use_enable flac)
230 + $(use_enable fluidsynth)
231 + $(use_enable gme)
232 + $(use_enable id3tag id3)
233 + $(use_enable inotify)
234 + $(use_enable ipv6)
235 + $(use_enable cdio iso9660)
236 + $(use_enable jack)
237 + $(use_enable soundcloud)
238 + $(use_enable tcpd libwrap)
239 + $(use_enable libsamplerate lsr)
240 + $(use_enable libsoxr soxr)
241 + $(use_enable mad)
242 + $(use_enable mikmod)
243 + $(use_enable mms)
244 + $(use_enable modplug)
245 + $(use_enable musepack mpc)
246 + $(use_enable mpg123)
247 + $(use_enable openal)
248 + $(use_enable opus)
249 + $(use_enable oss)
250 + $(use_enable pipe pipe-output)
251 + $(use_enable pulseaudio pulse)
252 + $(use_enable recorder recorder-output)
253 + $(use_enable sid sidplay)
254 + $(use_enable sndfile sndfile)
255 + $(use_enable sqlite)
256 + $(use_enable systemd systemd_daemon)
257 + $(use_enable vorbis)
258 + $(use_enable wavpack)
259 + $(use_enable wildmidi)
260 + $(use_enable zip zzip)
261 + $(use_enable icu)
262 + $(use_enable webdav)
263 + $(use_enable faad aac)
264 + $(use_with zeroconf zeroconf avahi)
265 + --with-boost="${EPREFIX}"/usr
266 + --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
267 + --with-systemduserunitdir=$(systemd_get_userunitdir)
268 + )
269 +
270 + econf "${myeconfargs[@]}"
271 +}
272 +
273 +src_install() {
274 + default
275 +
276 + insinto /etc
277 + newins doc/mpdconf.dist mpd.conf
278 +
279 + newinitd "${FILESDIR}"/${PN}-0.20.4.init ${PN}
280 +
281 + if use unicode; then
282 + sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
283 + "${ED}"/etc/mpd.conf || die "sed failed"
284 + fi
285 +
286 + insinto /etc/logrotate.d
287 + newins "${FILESDIR}"/${PN}-0.20.21.logrotate ${PN}
288 +
289 + use prefix || diropts -m0755 -o mpd -g audio
290 + dodir /var/lib/mpd
291 + keepdir /var/lib/mpd
292 + dodir /var/lib/mpd/music
293 + keepdir /var/lib/mpd/music
294 + dodir /var/lib/mpd/playlists
295 + keepdir /var/lib/mpd/playlists
296 +}
297 +
298 +pkg_postinst() {
299 + # also change the homedir if the user has existed before
300 + usermod -d "/var/lib/mpd" mpd
301 +}