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