Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpd: ChangeLog mpd-0.16.8.ebuild
Date: Tue, 01 May 2012 04:56:58
Message-Id: 20120501045648.41D452004B@flycatcher.gentoo.org
1 radhermit 12/05/01 04:56:48
2
3 Modified: ChangeLog
4 Added: mpd-0.16.8.ebuild
5 Log:
6 Version bump (bug #413575).
7
8 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.280 media-sound/mpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.280&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.280&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?r1=1.279&r2=1.280
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v
20 retrieving revision 1.279
21 retrieving revision 1.280
22 diff -u -r1.279 -r1.280
23 --- ChangeLog 25 Apr 2012 07:04:22 -0000 1.279
24 +++ ChangeLog 1 May 2012 04:56:48 -0000 1.280
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-sound/mpd
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.279 2012/04/25 07:04:22 angelos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.280 2012/05/01 04:56:48 radhermit Exp $
30 +
31 +*mpd-0.16.8 (01 May 2012)
32 +
33 + 01 May 2012; Tim Harder <radhermit@g.o> +mpd-0.16.8.ebuild:
34 + Version bump (bug #413575).
35
36 25 Apr 2012; Christoph Mende <angelos@g.o> mpd-0.16.2.ebuild,
37 mpd-0.16.5.ebuild, mpd-0.16.6.ebuild, mpd-0.16.7.ebuild, mpd-9999.ebuild:
38
39
40
41 1.1 media-sound/mpd/mpd-0.16.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.16.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.16.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mpd-0.16.8.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.16.8.ebuild,v 1.1 2012/05/01 04:56:48 radhermit Exp $
51
52 EAPI=4
53 inherit eutils flag-o-matic linux-info multilib systemd
54
55 DESCRIPTION="The Music Player Daemon (mpd)"
56 HOMEPAGE="http://www.musicpd.org"
57 SRC_URI="mirror://sourceforge/musicpd/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
62 IUSE="aac +alsa ao audiofile bzip2 cdio cue +curl debug +fifo +ffmpeg flac
63 fluidsynth profile +id3tag inotify ipv6 jack lame lastfmradio mms libsamplerate
64 +mad mikmod modplug mpg123 musepack +network ogg openal oss pipe pulseaudio sid
65 sndfile sqlite tcpd twolame unicode vorbis wavpack wildmidi zeroconf zip"
66
67 REQUIRED_USE="|| ( alsa ao fifo jack network openal oss pipe pulseaudio )
68 || ( aac audiofile ffmpeg flac fluidsynth mad mikmod modplug mpg123 musepack
69 ogg flac sid vorbis wavpack wildmidi )
70 network? ( || ( audiofile flac lame twolame vorbis ) )
71 lastfmradio? ( curl )"
72
73 RDEPEND="!<sys-cluster/mpich2-1.4_rc2
74 dev-libs/glib:2
75 aac? ( media-libs/faad2 )
76 alsa? ( media-sound/alsa-utils )
77 ao? ( media-libs/libao[alsa?,pulseaudio?] )
78 audiofile? ( media-libs/audiofile )
79 bzip2? ( app-arch/bzip2 )
80 cdio? ( dev-libs/libcdio[-minimal] )
81 cue? ( media-libs/libcue )
82 curl? ( net-misc/curl )
83 ffmpeg? ( virtual/ffmpeg )
84 flac? ( media-libs/flac[ogg?] )
85 fluidsynth? ( media-sound/fluidsynth )
86 network? ( >=media-libs/libshout-2
87 !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
88 id3tag? ( media-libs/libid3tag )
89 jack? ( media-sound/jack-audio-connection-kit )
90 lame? ( network? ( media-sound/lame ) )
91 mms? ( media-libs/libmms )
92 libsamplerate? ( media-libs/libsamplerate )
93 mad? ( media-libs/libmad )
94 mikmod? ( media-libs/libmikmod:0 )
95 modplug? ( media-libs/libmodplug )
96 mpg123? ( >=media-sound/mpg123-1.12.2 )
97 musepack? ( media-sound/musepack-tools )
98 ogg? ( media-libs/libogg )
99 openal? ( media-libs/openal )
100 pulseaudio? ( media-sound/pulseaudio )
101 sid? ( media-libs/libsidplay:2 )
102 sndfile? ( media-libs/libsndfile )
103 sqlite? ( dev-db/sqlite:3 )
104 tcpd? ( sys-apps/tcp-wrappers )
105 twolame? ( media-sound/twolame )
106 vorbis? ( media-libs/libvorbis )
107 wavpack? ( media-sound/wavpack )
108 wildmidi? ( media-sound/wildmidi )
109 zeroconf? ( net-dns/avahi[dbus] )
110 zip? ( dev-libs/zziplib )"
111 DEPEND="${RDEPEND}
112 dev-util/pkgconfig"
113
114 pkg_setup() {
115 use network || ewarn "Icecast and Shoutcast streaming needs networking."
116 use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
117
118 enewuser mpd "" "" "/var/lib/mpd" audio
119
120 if use inotify; then
121 CONFIG_CHECK="~INOTIFY_USER"
122 ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
123 linux-info_pkg_setup
124 fi
125 }
126
127 src_prepare() {
128 cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
129 epatch "${FILESDIR}"/${PN}-0.16.conf.patch
130 }
131
132 src_configure() {
133 local mpdconf="--enable-tcp --enable-un --disable-documentation
134 --disable-ffado --disable-gme --enable-largefile
135 --disable-mvp --docdir=${EPREFIX}/usr/share/doc/${PF}"
136
137 if use network; then
138 mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
139 --enable-httpd-output $(use_enable lame lame-encoder)
140 $(use_enable twolame twolame-encoder)
141 $(use_enable audiofile wave-encoder)"
142 else
143 mpdconf+=" --disable-shout --disable-vorbis-encoder
144 --disable-httpd-output --disable-lame-encoder
145 --disable-twolame-encoder --disable-wave-encoder"
146 fi
147
148 if use flac && use ogg; then
149 mpdconf+=" --enable-oggflac"
150 else
151 mpdconf+=" --disable-oggflac"
152 fi
153
154 append-lfs-flags
155 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
156
157 econf \
158 $(use_enable aac) \
159 $(use_enable alsa) \
160 $(use_enable ao) \
161 $(use_enable audiofile) \
162 $(use_enable bzip2) \
163 $(use_enable cdio iso9660) \
164 $(use_enable cue) \
165 $(use_enable curl) \
166 $(use_enable debug) \
167 $(use_enable ffmpeg) \
168 $(use_enable fifo) \
169 $(use_enable flac) \
170 $(use_enable fluidsynth) \
171 $(use_enable id3tag id3) \
172 $(use_enable inotify) \
173 $(use_enable ipv6) \
174 $(use_enable jack) \
175 $(use_enable lastfmradio lastfm) \
176 $(use_enable mms) \
177 $(use_enable libsamplerate lsr) \
178 $(use_enable mad) \
179 $(use_enable mikmod) \
180 $(use_enable modplug) \
181 $(use_enable mpg123) \
182 $(use_enable musepack mpc) \
183 $(use_enable openal) \
184 $(use_enable oss) \
185 $(use_enable pipe pipe-output) \
186 $(use_enable profile gprof) \
187 $(use_enable pulseaudio pulse) \
188 $(use_enable sid sidplay) \
189 $(use_enable sndfile sndfile) \
190 $(use_enable sqlite) \
191 $(use_enable tcpd libwrap) \
192 $(use_enable vorbis) \
193 $(use_enable wavpack) \
194 $(use_enable wildmidi) \
195 $(use_enable zip zzip) \
196 $(use_with zeroconf zeroconf avahi) \
197 "$(systemd_with_unitdir)" \
198 ${mpdconf}
199 }
200
201 src_install() {
202 emake DESTDIR="${D}" install
203
204 insinto /etc
205 newins doc/mpdconf.dist mpd.conf
206
207 newinitd "${FILESDIR}"/mpd.init mpd
208
209 if use unicode; then
210 sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
211 "${D}"/etc/mpd.conf || die "sed failed"
212 fi
213
214 diropts -m0755 -o mpd -g audio
215 dodir /var/lib/mpd
216 keepdir /var/lib/mpd
217 dodir /var/lib/mpd/music
218 keepdir /var/lib/mpd/music
219 dodir /var/lib/mpd/playlists
220 keepdir /var/lib/mpd/playlists
221 }
222
223 pkg_postinst() {
224 elog "If you will be starting mpd via /etc/init.d/mpd, please make"
225 elog "sure that MPD's pid_file is unset."
226
227 # also change the homedir if the user has existed before
228 usermod -d "/var/lib/mpd" mpd
229 }