Gentoo Archives: gentoo-commits

From: "Christoph Mende (angelos)" <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpd: mpd-0.16.4.ebuild ChangeLog
Date: Sat, 03 Sep 2011 18:39:35
Message-Id: 20110903183924.84E1820054@flycatcher.gentoo.org
1 angelos 11/09/03 18:39:24
2
3 Modified: ChangeLog
4 Added: mpd-0.16.4.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.263 media-sound/mpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.263&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.263&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?r1=1.262&r2=1.263
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v
20 retrieving revision 1.262
21 retrieving revision 1.263
22 diff -u -r1.262 -r1.263
23 --- ChangeLog 7 Aug 2011 15:26:40 -0000 1.262
24 +++ ChangeLog 3 Sep 2011 18:39:24 -0000 1.263
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-sound/mpd
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.262 2011/08/07 15:26:40 angelos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.263 2011/09/03 18:39:24 angelos Exp $
30 +
31 +*mpd-0.16.4 (03 Sep 2011)
32 +
33 + 03 Sep 2011; Christoph Mende <angelos@g.o> +mpd-0.16.4.ebuild:
34 + Version bump
35
36 07 Aug 2011; Christoph Mende <angelos@g.o> -mpd-0.15.8.ebuild,
37 -mpd-0.15.15.ebuild, -mpd-0.15.16.ebuild, -mpd-0.16.3.ebuild:
38
39
40
41 1.1 media-sound/mpd/mpd-0.16.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.16.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.16.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mpd-0.16.4.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.4.ebuild,v 1.1 2011/09/03 18:39:24 angelos Exp $
51
52 EAPI=4
53 inherit eutils flag-o-matic linux-info multilib
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 )
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 )
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 "${FILESDIR}"/${P}-ffmpeg.patch
131 }
132
133 src_configure() {
134 local mpdconf="--enable-tcp --enable-un --disable-documentation
135 --disable-ffado --disable-gme --enable-largefile
136 --disable-mvp --docdir=${EPREFIX}/usr/share/doc/${PF}"
137
138 if use network; then
139 mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
140 --enable-httpd-output $(use_enable lame lame-encoder)
141 $(use_enable twolame twolame-encoder)
142 $(use_enable audiofile wave-encoder)"
143 else
144 mpdconf+=" --disable-shout --disable-vorbis-encoder
145 --disable-httpd-output --disable-lame-encoder
146 --disable-twolame-encoder --disable-wave-encoder"
147 fi
148
149 if use flac && use ogg; then
150 mpdconf+=" --enable-oggflac"
151 else
152 mpdconf+=" --disable-oggflac"
153 fi
154
155 append-lfs-flags
156 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
157
158 econf \
159 $(use_enable aac) \
160 $(use_enable alsa) \
161 $(use_enable ao) \
162 $(use_enable audiofile) \
163 $(use_enable bzip2) \
164 $(use_enable cdio iso9660) \
165 $(use_enable cue) \
166 $(use_enable curl) \
167 $(use_enable debug) \
168 $(use_enable ffmpeg) \
169 $(use_enable fifo) \
170 $(use_enable flac) \
171 $(use_enable fluidsynth) \
172 $(use_enable id3tag id3) \
173 $(use_enable inotify) \
174 $(use_enable ipv6) \
175 $(use_enable jack) \
176 $(use_enable lastfmradio lastfm) \
177 $(use_enable mms) \
178 $(use_enable libsamplerate lsr) \
179 $(use_enable mad) \
180 $(use_enable mikmod) \
181 $(use_enable modplug) \
182 $(use_enable mpg123) \
183 $(use_enable musepack mpc) \
184 $(use_enable openal) \
185 $(use_enable oss) \
186 $(use_enable pipe pipe-output) \
187 $(use_enable profile gprof) \
188 $(use_enable pulseaudio pulse) \
189 $(use_enable sid sidplay) \
190 $(use_enable sndfile sndfile) \
191 $(use_enable sqlite) \
192 $(use_enable tcpd libwrap) \
193 $(use_enable vorbis) \
194 $(use_enable wavpack) \
195 $(use_enable wildmidi) \
196 $(use_enable zip zzip) \
197 $(use_with zeroconf zeroconf avahi) \
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 }