Gentoo Archives: gentoo-commits

From: "Petteri Raty (betelgeuse)" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: ChangeLog pulseaudio-0.9.11-r1.ebuild
Date: Sun, 03 Aug 2008 08:16:01
Message-Id: E1KPYkv-0008C4-RD@stork.gentoo.org
1 betelgeuse 08/08/03 08:15:57
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.11-r1.ebuild
5 Log:
6 speex support is not optional so remove the speex use flag. Fixes bug #233774.
7 (Portage version: 2.2_rc4/cvs/Linux 2.6.26-gentoo i686)
8
9 Revision Changes Path
10 1.107 media-sound/pulseaudio/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.107&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.107&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.106&r2=1.107
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
19 retrieving revision 1.106
20 retrieving revision 1.107
21 diff -u -r1.106 -r1.107
22 --- ChangeLog 3 Aug 2008 02:03:17 -0000 1.106
23 +++ ChangeLog 3 Aug 2008 08:15:57 -0000 1.107
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-sound/pulseaudio
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.106 2008/08/03 02:03:17 chutzpah Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.107 2008/08/03 08:15:57 betelgeuse Exp $
29 +
30 +*pulseaudio-0.9.11-r1 (03 Aug 2008)
31 +
32 + 03 Aug 2008; Petteri Räty <betelgeuse@g.o>
33 + +pulseaudio-0.9.11-r1.ebuild:
34 + speex support is not optional so remove the speex use flag. Fixes bug
35 + #233774.
36
37 *pulseaudio-0.9.11 (03 Aug 2008)
38
39
40
41
42 1.1 media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pulseaudio-0.9.11-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild,v 1.1 2008/08/03 08:15:57 betelgeuse Exp $
52
53 EAPI=1
54
55 inherit eutils libtool autotools flag-o-matic
56
57 DESCRIPTION="A networked sound server with an advanced plugin system"
58 HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/"
59 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
60
61 LICENSE="LGPL-2 GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
64 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
65
66 RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
67 caps? ( sys-libs/libcap )
68 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
69 alsa? ( >=media-libs/alsa-lib-1.0.17 )
70 glib? ( >=dev-libs/glib-2.4.0 )
71 avahi? ( >=net-dns/avahi-0.6.12 )
72 >=dev-libs/liboil-0.3.0
73 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
74 tcpd? ( sys-apps/tcp-wrappers )
75 lirc? ( app-misc/lirc )
76 dbus? ( >=sys-apps/dbus-1.0.0 )
77 gnome? ( >=gnome-base/gconf-2.4.0 )
78 hal? (
79 >=sys-apps/hal-0.5.7
80 >=sys-apps/dbus-1.0.0
81 )
82 app-admin/eselect-esd
83 bluetooth? (
84 >=net-wireless/bluez-libs-3
85 >=sys-apps/dbus-1.0.0
86 )
87 policykit? ( sys-auth/policykit )
88 asyncns? ( net-libs/libasyncns )
89 >=media-libs/audiofile-0.2.6-r1
90 >=media-libs/speex-1.2_beta
91 >=media-libs/libsndfile-1.0.10
92 >=dev-libs/liboil-0.3.6
93 sys-libs/gdbm
94 sys-apps/openrc
95 >=sys-apps/baselayout-2.0_rc5
96 >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
97 DEPEND="${RDEPEND}
98 X? ( x11-proto/xproto )
99 dev-libs/libatomic_ops
100 dev-util/pkgconfig
101 dev-util/unifdef"
102
103 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
104 # bluez-utils dep is for the bluetooth init.d script
105 RDEPEND="${RDEPEND}
106 gnome-extra/gnome-audio
107 alsa? ( media-sound/alsa-utils )
108 bluetooth? ( >=net-wireless/bluez-utils-3 )"
109
110 pkg_setup() {
111 if use avahi && ! built_with_use net-dns/avahi dbus ; then
112 echo
113 eerror "In order to compile pulseaudio with avahi support, you need to have"
114 eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
115 eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
116 die "net-dns/avahi is missing the D-Bus bindings."
117 fi
118
119 enewgroup audio 18 # Just make sure it exists
120 enewgroup realtime
121 enewgroup pulse-access
122 enewgroup pulse
123 enewuser pulse -1 -1 /var/run/pulse pulse,audio
124 }
125
126 src_unpack() {
127 unpack ${A}
128 cd "${S}"
129
130 # Avoid building - and especially linking - test programs
131 # outside of make check
132 sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
133 "${S}/src/Makefile.am"
134
135 eautoreconf
136 elibtoolize
137 }
138
139 src_compile() {
140 # To properly fix CVE-2008-0008
141 append-flags -UNDEBUG
142
143 econf \
144 --enable-largefile \
145 $(use_enable glib) \
146 --disable-solaris \
147 $(use_enable asyncns) \
148 $(use_enable oss) \
149 $(use_enable alsa) \
150 $(use_enable lirc) \
151 $(use_enable tcpd tcpwrap) \
152 $(use_enable jack) \
153 $(use_enable lirc) \
154 $(use_enable avahi) \
155 $(use_enable hal) \
156 $(use_enable dbus) \
157 $(use_enable gnome gconf) \
158 $(use_enable libsamplerate samplerate) \
159 $(use_enable bluetooth bluez) \
160 $(use_enable policykit polkit) \
161 $(use_with caps) \
162 $(use_with X x) \
163 --disable-ltdl-install \
164 --localstatedir=/var \
165 --with-realtime-group=realtime \
166 --disable-per-user-esound-socket \
167 || die "econf failed"
168 emake || die "emake failed"
169 }
170
171 src_install() {
172 emake -j1 DESTDIR="${D}" install || die "make install failed"
173
174 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
175
176 use_define() {
177 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
178
179 use "$1" && echo "-D$define" || echo "-U$define"
180 }
181
182 unifdef "${FILESDIR}/pulseaudio.init.d-3" \
183 $(use_define hal) \
184 $(use_define avahi) \
185 $(use_define alsa) \
186 $(use_define bluetooth) \
187 > "${T}/pulseaudio"
188 doinitd "${T}/pulseaudio"
189
190 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
191
192 dohtml -r doc
193 dodoc README
194
195 # Create the state directory
196 diropts -o pulse -g pulse -m0755
197 keepdir /var/run/pulse
198
199 find "${D}" -name '*.la' -delete
200 }
201
202 pkg_postinst() {
203 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
204 elog "This support is enabled by starting the pulseaudio init.d ."
205 elog "To be able to access that you need to be in the group pulse-access."
206 elog "For more information about system-wide support, please refer to"
207 elog " http://pulseaudio.org/wiki/SystemWideInstance"
208 if use gnome; then
209 elog
210 elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note"
211 elog "that you might need to remove the gnome USE flag or disable the"
212 elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
213 elog "with a system-wide instance."
214 fi
215 elog
216 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
217 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
218 elog "/var/run/pulse/.esd_auth into each home directory."
219 elog
220 elog "If you want to make use of realtime capabilities of PulseAudio"
221 elog "you should follow the realtime guide to create and set up a realtime"
222 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
223 elog "Make sure you also have baselayout installed with pam USE flag"
224 elog "enabled, if you're using the rlimit method."
225 if use bluetooth; then
226 elog
227 elog "The BlueTooth proximity module is not enabled in the default"
228 elog "configuration file. If you do enable it, you'll have to have"
229 elog "your BlueTooth controller enabled and inserted at bootup or"
230 elog "PulseAudio will refuse to start."
231 elog
232 elog "Please note that the BlueTooth proximity module seems itself"
233 elog "still experimental, so please report to upstream if you have"
234 elog "problems with it."
235 fi
236
237 eselect esd update --if-unset
238 }