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.6-r2.ebuild
Date: Fri, 26 Oct 2007 15:28:52
Message-Id: E1IlR76-0005W8-83@stork.gentoo.org
1 flameeyes 07/10/26 15:28:44
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.6-r2.ebuild
5 Log:
6 Add a new revision with an experimental init script with dynamic dependencies. With this script, disabling HAL or Avahi support on the configuration file will not require them to be started even if PulseAudio was built with their support enabled. Similarly ALSA is no more a requirement if no ALSA sink or source is defined and no autodetect modules are loaded.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.64 media-sound/pulseaudio/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 10 Sep 2007 19:11:37 -0000 1.63
23 +++ ChangeLog 26 Oct 2007 15:28:43 -0000 1.64
24 @@ -1,6 +1,17 @@
25 # ChangeLog for media-sound/pulseaudio
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.63 2007/09/10 19:11:37 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.64 2007/10/26 15:28:43 flameeyes Exp $
29 +
30 +*pulseaudio-0.9.6-r2 (26 Oct 2007)
31 +
32 + 26 Oct 2007; Diego Pettenò <flameeyes@g.o>
33 + +files/pulseaudio.init.d-3, +pulseaudio-0.9.6-r2.ebuild:
34 + Add a new revision with an experimental init script with dynamic
35 + dependencies. With this script, disabling HAL or Avahi support on the
36 + configuration file will not require them to be started even if PulseAudio
37 + was built with their support enabled. Similarly ALSA is no more a
38 + requirement if no ALSA sink or source is defined and no autodetect modules
39 + are loaded.
40
41 10 Sep 2007; Joseph Jezak <josejx@g.o> pulseaudio-0.9.6-r1.ebuild:
42 Marked ~ppc/~ppc64 for bug #181234.
43
44
45
46 1.1 media-sound/pulseaudio/pulseaudio-0.9.6-r2.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.6-r2.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.6-r2.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pulseaudio-0.9.6-r2.ebuild
52 ===================================================================
53 # Copyright 1999-2007 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.6-r2.ebuild,v 1.1 2007/10/26 15:28:43 flameeyes Exp $
56
57 inherit eutils libtool # autotools
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 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
66 IUSE="alsa avahi caps jack lirc oss tcpd X hal"
67
68 RDEPEND="X? ( x11-libs/libX11 )
69 caps? ( sys-libs/libcap )
70 >=media-libs/audiofile-0.2.6-r1
71 >=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.10 )
75 >=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 hal? ( >=sys-apps/hal-0.5.7 )
82 >=sys-apps/baselayout-2.0_rc5
83 app-admin/eselect-esd
84 sys-devel/libtool" # it's a valid RDEPEND, libltdl.so is used
85 DEPEND="${RDEPEND}
86 dev-libs/libatomic_ops
87 dev-util/pkgconfig
88 dev-util/unifdef"
89
90 # This is for the alsasound init.d script (see bug #155707)
91 RDEPEND="${RDEPEND}
92 alsa? ( media-sound/alsa-utils )"
93
94 pkg_setup() {
95 if use avahi && ! built_with_use net-dns/avahi dbus ; then
96 echo
97 eerror "In order to compile pulseaudio with avahi support, you need to have"
98 eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
99 eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
100 die "net-dns/avahi is missing the D-Bus bindings."
101 fi
102
103 enewgroup audio 18 # Just make sure it exists
104 enewgroup realtime
105 enewgroup pulse-access
106 enewgroup pulse
107 enewuser pulse -1 -1 /var/run/pulse pulse,audio
108 }
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113
114 epatch "${FILESDIR}/${P}-build.patch"
115
116 # eautoreconf
117 elibtoolize
118 }
119
120 src_compile() {
121 econf \
122 --enable-largefile \
123 --enable-glib2 \
124 --disable-solaris \
125 --disable-asyncns \
126 $(use_enable oss) \
127 $(use_enable alsa) \
128 $(use_enable lirc) \
129 $(use_enable tcpd tcpwrap) \
130 $(use_enable jack) \
131 $(use_enable lirc) \
132 $(use_enable avahi) \
133 $(use_enable hal) \
134 $(use_with caps) \
135 $(use_with X x) \
136 --disable-ltdl-install \
137 --localstatedir=/var \
138 --with-realtime-group=realtime \
139 || die "econf failed"
140 emake || die "emake failed"
141 }
142
143 src_install() {
144 emake -j1 DESTDIR="${D}" install || die "make install failed"
145
146 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
147
148 use_define() {
149 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
150
151 use "$1" && echo "-D$define" || echo "-U$define"
152 }
153
154 unifdef "${FILESDIR}/pulseaudio.init.d-3" \
155 $(use_define hal) \
156 $(use_define avahi) \
157 $(use_define alsa) \
158 > "${T}/pulseaudio"
159 doinitd "${T}/pulseaudio"
160
161 if ! use hal; then
162 sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa"
163 fi
164 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
165
166 dohtml -r doc
167 dodoc README
168
169 # Create the state directory
170 diropts -o pulse -g pulse -m0755
171 keepdir /var/run/pulse
172 }
173
174 pkg_postinst() {
175 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
176 elog "This support is enabled by starting the pulseaudio init.d ."
177 elog "To be able to access that you need to be in the group pulse-access."
178 elog "For more information about system-wide support, please refer to"
179 elog " http://pulseaudio.org/wiki/SystemWideInstance"
180 elog
181 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
182 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
183 elog "/var/run/pulse/.esd_auth into each home directory."
184 elog
185 elog "If you want to make use of realtime capabilities of PulseAudio"
186 elog "you should follow the realtime guide to create and set up a realtime"
187 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
188 elog "Make sure you also have baselayout installed with pam USE flag"
189 elog "enabled, if you're using the rlimit method."
190
191 eselect esd update --if-unset
192 }
193
194
195
196 --
197 gentoo-commits@g.o mailing list