Gentoo Archives: gentoo-commits

From: "Arun Raghavan (ford_prefect)" <ford_prefect@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: ChangeLog pulseaudio-2.0-r2.ebuild pulseaudio-2.0.ebuild
Date: Thu, 05 Jul 2012 14:22:32
Message-Id: 20120705142212.D5DE02004B@flycatcher.gentoo.org
1 ford_prefect 12/07/05 14:22:12
2
3 Modified: ChangeLog
4 Added: pulseaudio-2.0-r2.ebuild
5 Removed: pulseaudio-2.0.ebuild
6 Log:
7 Add fix for building against udev >= 183. Also drop 2.0 since it is superceded by 2.0-r1 and above.
8
9 (Portage version: 2.2.0_alpha112/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.275 media-sound/pulseaudio/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.275&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.275&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.274&r2=1.275
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
21 retrieving revision 1.274
22 retrieving revision 1.275
23 diff -u -r1.274 -r1.275
24 --- ChangeLog 5 Jul 2012 14:18:14 -0000 1.274
25 +++ ChangeLog 5 Jul 2012 14:22:12 -0000 1.275
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-sound/pulseaudio
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.274 2012/07/05 14:18:14 ford_prefect Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.275 2012/07/05 14:22:12 ford_prefect Exp $
31 +
32 +*pulseaudio-2.0-r2 (05 Jul 2012)
33 +
34 + 05 Jul 2012; Arun Raghavan <ford_prefect@g.o> -pulseaudio-2.0.ebuild,
35 + +pulseaudio-2.0-r2.ebuild, +files/pulseaudio-2.0-udev-symbols.patch:
36 + Add fix for building against udev >= 183. Also drop 2.0 since it is
37 + superceded by 2.0-r1 and above.
38
39 05 Jul 2012; Arun Raghavan <ford_prefect@g.o>
40 -pulseaudio-0.9.22.ebuild, -pulseaudio-0.9.23-r1.ebuild,
41
42
43
44 1.1 media-sound/pulseaudio/pulseaudio-2.0-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: pulseaudio-2.0-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-2.0-r2.ebuild,v 1.1 2012/07/05 14:22:12 ford_prefect Exp $
54
55 EAPI=4
56
57 inherit eutils flag-o-matic user versionator
58
59 DESCRIPTION="A networked sound server with an advanced plugin system"
60 HOMEPAGE="http://www.pulseaudio.org/"
61
62 SRC_URI="http://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz"
63
64 # libpulse-simple and libpulse link to libpulse-core; this is daemon's
65 # library and can link to gdbm and other GPL-only libraries. In this
66 # cases, we have a fully GPL-2 package. Leaving the rest of the
67 # GPL-forcing USE flags for those who use them.
68 LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
71 IUSE="+alsa avahi +caps equalizer jack lirc oss tcpd +X dbus libsamplerate gnome bluetooth +asyncns +glib gtk test doc +udev ipv6 system-wide realtime +orc ssl +gdbm +webrtc-aec xen"
72
73 RDEPEND=">=media-libs/libsndfile-1.0.20
74 X? (
75 >=x11-libs/libX11-1.4.0
76 >=x11-libs/libxcb-1.6
77 >=x11-libs/xcb-util-0.3.1
78 x11-libs/libSM
79 x11-libs/libICE
80 x11-libs/libXtst
81 )
82 caps? ( sys-libs/libcap )
83 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
84 alsa? ( >=media-libs/alsa-lib-1.0.19 )
85 glib? ( >=dev-libs/glib-2.4.0 )
86 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
87 jack? ( >=media-sound/jack-audio-connection-kit-0.117 )
88 tcpd? ( sys-apps/tcp-wrappers )
89 lirc? ( app-misc/lirc )
90 dbus? ( >=sys-apps/dbus-1.0.0 )
91 gtk? ( x11-libs/gtk+:2 )
92 gnome? ( >=gnome-base/gconf-2.4.0 )
93 bluetooth? (
94 >=net-wireless/bluez-4
95 >=sys-apps/dbus-1.0.0
96 )
97 asyncns? ( net-libs/libasyncns )
98 udev? ( || ( >=sys-fs/udev-171[hwdb] >=sys-fs/udev-143[extras] ) )
99 realtime? ( sys-auth/rtkit )
100 equalizer? (
101 sci-libs/fftw:3.0
102 dev-python/PyQt4[dbus]
103 )
104 orc? ( >=dev-lang/orc-0.4.9 )
105 ssl? ( dev-libs/openssl )
106 >=media-libs/speex-1.2_rc1
107 gdbm? ( sys-libs/gdbm )
108 webrtc-aec? ( media-libs/webrtc-audio-processing )
109 xen? ( app-emulation/xen )
110 dev-libs/json-c
111 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
112
113 DEPEND="${RDEPEND}
114 sys-devel/m4
115 doc? ( app-doc/doxygen )
116 X? (
117 x11-proto/xproto
118 >=x11-libs/libXtst-1.0.99.2
119 )
120 dev-libs/libatomic_ops
121 virtual/pkgconfig
122 system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) )
123 dev-util/intltool"
124 # This is a PDEPEND to avoid a circular dep
125 PDEPEND="alsa? ( media-plugins/alsa-plugins[pulseaudio] )"
126
127 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
128 # bluez dep is for the bluetooth init.d script
129 RDEPEND="${RDEPEND}
130 X? ( gnome-extra/gnome-audio )
131 system-wide? (
132 sys-apps/openrc
133 alsa? ( media-sound/alsa-utils )
134 bluetooth? ( >=net-wireless/bluez-4 )
135 )"
136
137 # See "*** BLUEZ support not found (requires D-Bus)" in configure.ac
138 REQUIRED_USE="bluetooth? ( dbus )"
139
140 pkg_setup() {
141 enewgroup audio 18 # Just make sure it exists
142 enewgroup pulse-access
143 enewgroup pulse
144 enewuser pulse -1 -1 /var/run/pulse pulse,audio
145 }
146
147 src_prepare() {
148 epatch "${FILESDIR}/${P}-udev-symbols.patch"
149 }
150
151 src_configure() {
152 # It's a binutils bug, once I can find time to fix that I'll add a
153 # proper dependency and fix this up. — flameeyes
154 append-ldflags $(no-as-needed)
155
156 if use gdbm; then
157 myconf+=" --with-database=gdbm"
158 #elif use tdb; then
159 # myconf+=" --with-database=tdb"
160 else
161 myconf+=" --with-database=simple"
162 fi
163
164 econf \
165 --enable-largefile \
166 $(use_enable glib glib2) \
167 --disable-solaris \
168 $(use_enable asyncns) \
169 $(use_enable oss oss-output) \
170 $(use_enable alsa) \
171 $(use_enable lirc) \
172 $(use_enable tcpd tcpwrap) \
173 $(use_enable jack) \
174 $(use_enable lirc) \
175 $(use_enable avahi) \
176 --disable-hal \
177 $(use_enable dbus) \
178 $(use_enable gnome gconf) \
179 $(use_enable gtk gtk2) \
180 $(use_enable libsamplerate samplerate) \
181 $(use_enable bluetooth bluez) \
182 $(use_enable X x11) \
183 $(use_enable test default-build-tests) \
184 $(use_enable udev) \
185 $(use_enable ipv6) \
186 $(use_enable ssl openssl) \
187 $(use_enable webrtc-aec) \
188 $(use_enable xen) \
189 $(use_with caps) \
190 $(use_with equalizer fftw) \
191 --disable-adrian-aec \
192 --disable-esound \
193 --localstatedir="${EPREFIX}"/var \
194 --with-udev-rules-dir="${EPREFIX}/lib/udev/rules.d" \
195 ${myconf}
196
197 if use doc; then
198 pushd doxygen
199 doxygen doxygen.conf
200 popd
201 fi
202 }
203
204 src_test() {
205 # We avoid running the toplevel check target because that will run
206 # po/'s tests too, and they are broken. Officially, it should work
207 # with intltool 0.41, but that doesn't look like a stable release.
208 emake -C src check
209 }
210
211 src_install() {
212 emake -j1 DESTDIR="${D}" install
213
214 # Drop the script entirely if X is disabled
215 use X || rm "${ED}"/usr/bin/start-pulseaudio-x11
216
217 if use system-wide; then
218 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
219
220 use_define() {
221 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
222
223 use "$1" && echo "-D$define" || echo "-U$define"
224 }
225
226 unifdef $(use_define avahi) \
227 $(use_define alsa) \
228 $(use_define bluetooth) \
229 $(use_define udev) \
230 "${FILESDIR}/pulseaudio.init.d-5" \
231 > "${T}/pulseaudio"
232
233 doinitd "${T}/pulseaudio"
234 fi
235
236 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa"
237
238 dodoc README todo
239
240 if use doc; then
241 pushd doxygen/html
242 dohtml *
243 popd
244 fi
245
246 # Create the state directory
247 use prefix || diropts -o pulse -g pulse -m0755
248 keepdir /var/run/pulse
249
250 find "${D}" -name '*.la' -delete
251 }
252
253 pkg_postinst() {
254 if use system-wide; then
255 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
256 elog "This support is enabled by starting the pulseaudio init.d ."
257 elog "To be able to access that you need to be in the group pulse-access."
258 elog "If you choose to use this feature, please make sure that you"
259 elog "really want to run PulseAudio this way:"
260 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
261 elog "For more information about system-wide support, please refer to:"
262 elog " http://pulseaudio.org/wiki/SystemWideInstance"
263 if use gnome ; then
264 elog
265 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
266 elog "that you might need to remove the gnome USE flag or disable the"
267 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
268 elog "with a system-wide instance."
269 fi
270 fi
271 if use bluetooth; then
272 elog
273 elog "The Bluetooth proximity module is not enabled in the default"
274 elog "configuration file. If you do enable it, you'll have to have"
275 elog "your Bluetooth controller enabled and inserted at bootup or"
276 elog "PulseAudio will refuse to start."
277 fi
278
279 eselect esd update --if-unset
280 }