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