Gentoo Archives: gentoo-commits

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