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