Gentoo Archives: gentoo-commits

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