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:44
Message-Id: 1454242123.ececcadf8d811175a6d8125ea9a074e397b69f5c.angelos@gentoo
1 commit: ececcadf8d811175a6d8125ea9a074e397b69f5c
2 Author: Christoph Mende <angelos <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 31 12:08:43 2016 +0000
4 Commit: Christoph Mende <angelos <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 12:08:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ececcadf
7
8 media-sound/mpd: remove old
9
10 Package-Manager: portage-2.2.27
11
12 media-sound/mpd/Manifest | 1 -
13 media-sound/mpd/mpd-0.19.9-r1.ebuild | 236 -----------------------------------
14 2 files changed, 237 deletions(-)
15
16 diff --git a/media-sound/mpd/Manifest b/media-sound/mpd/Manifest
17 index f760c42..f1b6c79 100644
18 --- a/media-sound/mpd/Manifest
19 +++ b/media-sound/mpd/Manifest
20 @@ -1,4 +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.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.9-r1.ebuild b/media-sound/mpd/mpd-0.19.9-r1.ebuild
27 deleted file mode 100644
28 index 9c438b6..0000000
29 --- a/media-sound/mpd/mpd-0.19.9-r1.ebuild
30 +++ /dev/null
31 @@ -1,236 +0,0 @@
32 -# Copyright 1999-2015 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 expat faad +fifo +ffmpeg
47 - flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack lame mms
48 - libav libmpdclient libsamplerate libsoxr +mad mikmod modplug mpg123 musepack
49 - +network nfs ogg openal opus oss pipe pulseaudio recorder samba selinux sid
50 - sndfile soundcloud sqlite systemd tcpd twolame unicode upnp vorbis wavpack
51 - wildmidi zeroconf zip"
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 -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 inotify; then
141 - CONFIG_CHECK="~INOTIFY_USER"
142 - ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
143 - linux-info_pkg_setup
144 - fi
145 -}
146 -
147 -src_prepare() {
148 - DOC_CONTENTS="If you will be starting mpd via /etc/init.d/mpd, please make
149 - sure that MPD's pid_file is _set_."
150 -
151 - cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
152 - epatch "${FILESDIR}"/${PN}-0.18.conf.patch
153 -}
154 -
155 -src_configure() {
156 - local mpdconf="--enable-database --disable-roar --disable-documentation
157 - --enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
158 - --disable-solaris-output --enable-tcp --enable-un --disable-werror
159 - --docdir=${EPREFIX}/usr/share/doc/${PF}"
160 -
161 - if use network; then
162 - mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
163 - --enable-httpd-output $(use_enable lame lame-encoder)
164 - $(use_enable twolame twolame-encoder)
165 - $(use_enable audiofile wave-encoder)"
166 - else
167 - mpdconf+=" --disable-shout --disable-vorbis-encoder
168 - --disable-httpd-output --disable-lame-encoder
169 - --disable-twolame-encoder --disable-wave-encoder"
170 - fi
171 -
172 - if use samba || use upnp; then
173 - mpdconf+=" --enable-neighbor-plugins"
174 - fi
175 -
176 - append-lfs-flags
177 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
178 -
179 - econf \
180 - $(use_enable libmpdclient) \
181 - $(use_enable expat) \
182 - $(use_enable upnp) \
183 - $(use_enable adplug) \
184 - $(use_enable alsa) \
185 - $(use_enable ao) \
186 - $(use_enable audiofile) \
187 - $(use_enable bzip2) \
188 - $(use_enable cdio cdio-paranoia) \
189 - $(use_enable cdio iso9660) \
190 - $(use_enable curl) \
191 - $(use_enable samba smbclient) \
192 - $(use_enable nfs) \
193 - $(use_enable debug) \
194 - $(use_enable ffmpeg) \
195 - $(use_enable fifo) \
196 - $(use_enable flac) \
197 - $(use_enable fluidsynth) \
198 - $(use_enable gme) \
199 - $(use_enable id3tag id3) \
200 - $(use_enable inotify) \
201 - $(use_enable ipv6) \
202 - $(use_enable jack) \
203 - $(use_enable soundcloud) \
204 - $(use_enable tcpd libwrap) \
205 - $(use_enable libsamplerate lsr) \
206 - $(use_enable libsoxr soxr) \
207 - $(use_enable mad) \
208 - $(use_enable mikmod) \
209 - $(use_enable mms) \
210 - $(use_enable modplug) \
211 - $(use_enable musepack mpc) \
212 - $(use_enable mpg123) \
213 - $(use_enable openal) \
214 - $(use_enable opus) \
215 - $(use_enable oss) \
216 - $(use_enable pipe pipe-output) \
217 - $(use_enable pulseaudio pulse) \
218 - $(use_enable recorder recorder-output) \
219 - $(use_enable sid sidplay) \
220 - $(use_enable sndfile sndfile) \
221 - $(use_enable sqlite) \
222 - $(use_enable systemd systemd-daemon) \
223 - $(use_enable vorbis) \
224 - $(use_enable wavpack) \
225 - $(use_enable wildmidi) \
226 - $(use_enable zip zzip) \
227 - $(use_enable icu) \
228 - $(use_enable glib) \
229 - $(use_enable faad aac) \
230 - $(use_with zeroconf zeroconf avahi) \
231 - "$(systemd_with_unitdir)" \
232 - ${mpdconf}
233 -}
234 -
235 -src_install() {
236 - emake DESTDIR="${D}" install
237 -
238 - insinto /etc
239 - newins doc/mpdconf.dist mpd.conf
240 -
241 - newinitd "${FILESDIR}"/${PN}2.init ${PN}
242 -
243 - if use unicode; then
244 - sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
245 - "${ED}"/etc/mpd.conf || die "sed failed"
246 - fi
247 -
248 - insinto /etc/logrotate.d
249 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
250 -
251 - use prefix || diropts -m0755 -o mpd -g audio
252 - dodir /var/lib/mpd
253 - keepdir /var/lib/mpd
254 - dodir /var/lib/mpd/music
255 - keepdir /var/lib/mpd/music
256 - dodir /var/lib/mpd/playlists
257 - keepdir /var/lib/mpd/playlists
258 -
259 - readme.gentoo_create_doc
260 -}
261 -
262 -pkg_postinst() {
263 - readme.gentoo_print_elog
264 -
265 - # also change the homedir if the user has existed before
266 - usermod -d "/var/lib/mpd" mpd
267 -}