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.12.ebuild pulseaudio-0.9.10-r51.ebuild
Date: Fri, 12 Sep 2008 15:53:50
Message-Id: E1KeAxu-0001XW-Cd@stork.gentoo.org
1 betelgeuse 08/09/12 15:53:46
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.12.ebuild
5 Removed: pulseaudio-0.9.10-r51.ebuild
6 Log:
7 Version bump.
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.110 media-sound/pulseaudio/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.110&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.110&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.109&r2=1.110
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
20 retrieving revision 1.109
21 retrieving revision 1.110
22 diff -u -r1.109 -r1.110
23 --- ChangeLog 3 Aug 2008 18:03:45 -0000 1.109
24 +++ ChangeLog 12 Sep 2008 15:53:45 -0000 1.110
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/pulseaudio
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.109 2008/08/03 18:03:45 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.110 2008/09/12 15:53:45 betelgeuse Exp $
30 +
31 +*pulseaudio-0.9.12 (12 Sep 2008)
32 +
33 + 12 Sep 2008; Petteri Räty <betelgeuse@g.o>
34 + -pulseaudio-0.9.10-r51.ebuild, +pulseaudio-0.9.12.ebuild:
35 + Version bump.
36
37 *pulseaudio-0.9.11-r2 (03 Aug 2008)
38
39
40
41
42 1.1 media-sound/pulseaudio/pulseaudio-0.9.12.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pulseaudio-0.9.12.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.12.ebuild,v 1.1 2008/09/12 15:53:45 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-r1 )
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 >=sys-apps/baselayout-2.0_rc5 )
95 >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
96 DEPEND="${RDEPEND}
97 X? ( x11-proto/xproto )
98 dev-libs/libatomic_ops
99 dev-util/pkgconfig
100 dev-util/unifdef"
101
102 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
103 # bluez-utils dep is for the bluetooth init.d script
104 RDEPEND="${RDEPEND}
105 gnome-extra/gnome-audio
106 alsa? ( media-sound/alsa-utils )
107 bluetooth? ( >=net-wireless/bluez-utils-3 )"
108
109 pkg_setup() {
110 if use avahi && ! built_with_use net-dns/avahi dbus ; then
111 echo
112 eerror "In order to compile pulseaudio with avahi support, you need to have"
113 eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
114 eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
115 die "net-dns/avahi is missing the D-Bus bindings."
116 fi
117
118 enewgroup audio 18 # Just make sure it exists
119 enewgroup realtime
120 enewgroup pulse-access
121 enewgroup pulse
122 enewuser pulse -1 -1 /var/run/pulse pulse,audio
123 }
124
125 src_unpack() {
126 unpack ${A}
127 cd "${S}"
128
129 # Avoid building - and especially linking - test programs
130 # outside of make check
131 sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
132 "${S}/src/Makefile.am"
133
134 eautoreconf
135 elibtoolize
136 }
137
138 src_compile() {
139 # To properly fix CVE-2008-0008
140 append-flags -UNDEBUG
141
142 econf \
143 --enable-largefile \
144 $(use_enable glib) \
145 --disable-solaris \
146 $(use_enable asyncns) \
147 $(use_enable oss) \
148 $(use_enable alsa) \
149 $(use_enable lirc) \
150 $(use_enable tcpd tcpwrap) \
151 $(use_enable jack) \
152 $(use_enable lirc) \
153 $(use_enable avahi) \
154 $(use_enable hal) \
155 $(use_enable dbus) \
156 $(use_enable gnome gconf) \
157 $(use_enable libsamplerate samplerate) \
158 $(use_enable bluetooth bluez) \
159 $(use_enable policykit polkit) \
160 $(use_with caps) \
161 $(use_with X x) \
162 --disable-ltdl-install \
163 --localstatedir=/var \
164 --with-realtime-group=realtime \
165 --disable-per-user-esound-socket \
166 || die "econf failed"
167 emake || die "emake failed"
168 }
169
170 src_install() {
171 emake -j1 DESTDIR="${D}" install || die "make install failed"
172
173 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
174
175 use_define() {
176 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
177
178 use "$1" && echo "-D$define" || echo "-U$define"
179 }
180
181 unifdef "${FILESDIR}/pulseaudio.init.d-4" \
182 $(use_define hal) \
183 $(use_define avahi) \
184 $(use_define alsa) \
185 $(use_define bluetooth) \
186 > "${T}/pulseaudio"
187 doinitd "${T}/pulseaudio"
188
189 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
190
191 dohtml -r doc
192 dodoc README
193
194 # this should fix system daemon startup #233789
195 cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
196
197 # Create the state directory
198 diropts -o pulse -g pulse -m0755
199 keepdir /var/run/pulse
200
201 find "${D}" -name '*.la' -delete
202 }
203
204 pkg_postinst() {
205 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
206 elog "This support is enabled by starting the pulseaudio init.d ."
207 elog "To be able to access that you need to be in the group pulse-access."
208 elog "For more information about system-wide support, please refer to"
209 elog " http://pulseaudio.org/wiki/SystemWideInstance"
210 if use gnome; then
211 elog
212 elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note"
213 elog "that you might need to remove the gnome USE flag or disable the"
214 elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
215 elog "with a system-wide instance."
216 fi
217 elog
218 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
219 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
220 elog "/var/run/pulse/.esd_auth into each home directory."
221 elog
222 elog "If you want to make use of realtime capabilities of PulseAudio"
223 elog "you should follow the realtime guide to create and set up a realtime"
224 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
225 elog "Make sure you also have baselayout installed with pam USE flag"
226 elog "enabled, if you're using the rlimit method."
227 if use bluetooth; then
228 elog
229 elog "The BlueTooth proximity module is not enabled in the default"
230 elog "configuration file. If you do enable it, you'll have to have"
231 elog "your BlueTooth controller enabled and inserted at bootup or"
232 elog "PulseAudio will refuse to start."
233 elog
234 elog "Please note that the BlueTooth proximity module seems itself"
235 elog "still experimental, so please report to upstream if you have"
236 elog "problems with it."
237 fi
238 if use alsa; then
239 local pkg="media-plugins/alsa-plugins"
240 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
241 elog
242 elog "You have alsa support enabled so you probably want to install"
243 elog "${pkg} with pulseaudio support to have"
244 elog "alsa using applications route their sound through pulseaudio"
245 fi
246 fi
247
248 eselect esd update --if-unset
249 }