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.15.10.ebuild ChangeLog
Date: Mon, 31 May 2010 19:23:22
Message-Id: 20100531192317.B46792CF37@corvid.gentoo.org
1 angelos 10/05/31 19:23:17
2
3 Modified: ChangeLog
4 Added: mpd-0.15.10.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.204 media-sound/mpd/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.204&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?rev=1.204&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/ChangeLog?r1=1.203&r2=1.204
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v
19 retrieving revision 1.203
20 retrieving revision 1.204
21 diff -u -r1.203 -r1.204
22 --- ChangeLog 18 May 2010 17:52:14 -0000 1.203
23 +++ ChangeLog 31 May 2010 19:23:17 -0000 1.204
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-sound/mpd
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.203 2010/05/18 17:52:14 angelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/ChangeLog,v 1.204 2010/05/31 19:23:17 angelos Exp $
29 +
30 +*mpd-0.15.10 (30 May 2010)
31 +
32 + 30 May 2010; Christoph Mende <angelos@g.o> +mpd-0.15.10.ebuild:
33 + Version bump
34
35 18 May 2010; Christoph Mende <angelos@g.o> -mpd-0.15.ebuild,
36 -mpd-0.15.3.ebuild, -mpd-0.15.5.ebuild, -mpd-0.15.6.ebuild:
37
38
39
40 1.1 media-sound/mpd/mpd-0.15.10.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.15.10.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpd/mpd-0.15.10.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mpd-0.15.10.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.15.10.ebuild,v 1.1 2010/05/31 19:23:17 angelos Exp $
50
51 EAPI=2
52 inherit eutils flag-o-matic multilib
53
54 DESCRIPTION="The Music Player Daemon (mpd)"
55 HOMEPAGE="http://www.musicpd.org"
56 SRC_URI="mirror://sourceforge/musicpd/${P}.tar.bz2"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="aac +alsa ao audiofile avahi bzip2 cdio cue +curl debug +fifo +ffmpeg flac
62 fluidsynth profile +id3 ipv6 jack lame lastfmradio libmms libsamplerate +mad
63 mikmod modplug musepack +network ogg oss pipe pulseaudio sid sqlite unicode
64 vorbis wavpack zip"
65
66 RDEPEND="!sys-cluster/mpich2
67 >=dev-libs/glib-2.6:2
68 aac? ( >=media-libs/faad2-2 )
69 alsa? ( media-sound/alsa-utils )
70 ao? ( >=media-libs/libao-0.8.4[alsa?,pulseaudio?] )
71 audiofile? ( media-libs/audiofile )
72 bzip2? ( app-arch/bzip2 )
73 cdio? ( dev-libs/libcdio )
74 cue? ( >=media-libs/libcue-0.13 )
75 curl? ( net-misc/curl )
76 ffmpeg? ( media-video/ffmpeg )
77 flac? ( media-libs/flac[ogg?] )
78 fluidsynth? ( media-sound/fluidsynth )
79 network? ( >=media-libs/libshout-2
80 !lame? ( !vorbis? ( media-libs/libvorbis ) ) )
81 id3? ( media-libs/libid3tag )
82 jack? ( media-sound/jack-audio-connection-kit )
83 lame? ( network? ( media-sound/lame ) )
84 libmms? ( >=media-libs/libmms-0.4 )
85 libsamplerate? ( media-libs/libsamplerate )
86 mad? ( media-libs/libmad )
87 mikmod? ( media-libs/libmikmod )
88 modplug? ( media-libs/libmodplug )
89 musepack? ( >=media-sound/musepack-tools-444 )
90 ogg? ( media-libs/libogg )
91 pulseaudio? ( media-sound/pulseaudio )
92 sid? ( >=media-libs/libsidplay-2.1.1-r2:2 )
93 sqlite? ( dev-db/sqlite:3 )
94 vorbis? ( media-libs/libvorbis )
95 wavpack? ( media-sound/wavpack )
96 avahi? ( net-dns/avahi )
97 zip? ( dev-libs/zziplib )"
98 DEPEND="${RDEPEND}
99 dev-util/pkgconfig"
100
101 pkg_setup() {
102 use network || ewarn "Icecast and Shoutcast streaming needs networking."
103 use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
104
105 enewuser mpd "" "" "/var/lib/mpd" audio
106 }
107
108 src_prepare() {
109 cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
110 epatch "${FILESDIR}"/0.15.1-mpdconf.patch
111 }
112
113 src_configure() {
114 local mpdconf="--disable-dependency-tracking --enable-tcp --enable-un
115 --disable-wildmidi --disable-libOggFLACtest --disable-documentation
116 --docdir=${EPREFIX}/usr/share/doc/${PF}"
117
118 if use network; then
119 mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
120 --enable-httpd-output $(use_enable lame lame-encoder)"
121 if ! use lame && ! use vorbis; then
122 ewarn "At least one encoder is required, enabling vorbis for you."
123 mpdconf+=" --enable-vorbis-encoder"
124 fi
125 else
126 mpdconf+=" --disable-shout --disable-vorbis-encoder
127 --disable-httpd-output --disable-lame-encoder"
128 fi
129
130 if use flac && use ogg; then
131 mpdconf+=" --enable-oggflac"
132 else
133 mpdconf+=" --disable-oggflac"
134 fi
135
136 append-lfs-flags
137 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
138
139 cd "${S}"
140
141 econf \
142 $(use_enable ipv6) $(use_enable cue) \
143 $(use_enable sqlite) $(use_enable curl) \
144 $(use_enable lastfmradio lastfm) $(use_enable libmms mms) \
145 $(use_enable bzip2) $(use_enable zip) \
146 $(use_enable cdio iso9660) $(use_enable id3) \
147 $(use_enable audiofile) $(use_enable ffmpeg) \
148 $(use_enable flac) $(use_enable mad) \
149 $(use_enable mikmod) $(use_enable modplug) \
150 $(use_enable musepack mpc) $(use_enable vorbis) \
151 $(use_enable sid sidplay) $(use_enable fluidsynth) \
152 $(use_enable wavpack) $(use_enable libsamplerate lsr) \
153 $(use_enable alsa) $(use_enable ao) \
154 $(use_enable fifo) $(use_enable pipe pipe-output) \
155 $(use_enable jack) $(use_enable oss) \
156 $(use_enable pulseaudio pulse) $(use_enable aac) \
157 $(use_enable debug) $(use_enable profile gprof) \
158 $(use_with avahi zeroconf avahi) \
159 ${mpdconf}
160 }
161
162 src_install() {
163 dodir /var/run/mpd
164 fowners mpd:audio /var/run/mpd
165 fperms 750 /var/run/mpd
166 keepdir /var/run/mpd
167
168 emake DESTDIR="${D}" install || die "emake install failed"
169
170 insinto /etc
171 newins doc/mpdconf.example mpd.conf
172
173 newinitd "${FILESDIR}"/mpd.rc mpd
174
175 if use unicode; then
176 dosed 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
177 /etc/mpd.conf || die "dosed failed"
178 fi
179
180 diropts -m0755 -o mpd -g audio
181 dodir /var/lib/mpd
182 keepdir /var/lib/mpd
183 dodir /var/lib/mpd/music
184 keepdir /var/lib/mpd/music
185 dodir /var/lib/mpd/playlists
186 keepdir /var/lib/mpd/playlists
187 dodir /var/log/mpd
188 keepdir /var/log/mpd
189
190 if use alsa; then
191 dosed 's:need :need alsasound :' /etc/init.d/mpd || die "dosed failed"
192 fi
193 }
194
195 pkg_postinst() {
196 elog "If you will be starting mpd via /etc/init.d/mpd, please make"
197 elog "sure that MPD's pid_file is set to /var/run/mpd/mpd.pid."
198
199 # also change the homedir if the user has existed before
200 usermod -d "/var/lib/mpd" mpd
201 }