summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/pulseaudio/ChangeLog6
-rw-r--r--media-sound/pulseaudio/Manifest33
-rw-r--r--media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r63
-rw-r--r--media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r73
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.8-r6.ebuild174
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.8-r7.ebuild182
6 files changed, 19 insertions, 382 deletions
diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog
index 0ae431918966..018e3f00da78 100644
--- a/media-sound/pulseaudio/ChangeLog
+++ b/media-sound/pulseaudio/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/pulseaudio
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.98 2008/01/26 14:21:19 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.99 2008/01/26 15:52:26 flameeyes Exp $
+
+ 26 Jan 2008; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.8-r6.ebuild, -pulseaudio-0.9.8-r7.ebuild:
+ Remove old versions.
26 Jan 2008; Tobias Scherbaum <dertobi123@gentoo.org>
pulseaudio-0.9.9.ebuild:
diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest
index f1041087c596..ab96c1258a02 100644
--- a/media-sound/pulseaudio/Manifest
+++ b/media-sound/pulseaudio/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX pulseaudio-0.9.7-module-loading.patch 947 RMD160 725f13d72da5ee72e61cc8d558ca352bb3a5d001 SHA1 236819d1fe76ccb22580f07e2c3a24f95d010011 SHA256 0ecc719e38bbf423d46120ce991bcc807c431e36a68cb97471235aa8e8316075
MD5 4405ff6be3827aef6ebbbb9f04ecc119 files/pulseaudio-0.9.7-module-loading.patch 947
RMD160 725f13d72da5ee72e61cc8d558ca352bb3a5d001 files/pulseaudio-0.9.7-module-loading.patch 947
@@ -35,20 +38,11 @@ MD5 730c2b0f7829a1d66373b27875c813b3 files/pulseaudio.init.d-3 1727
RMD160 ffe93d7c5300ae7974e9b5c02987a23422940d35 files/pulseaudio.init.d-3 1727
SHA256 8f31a03b430b5a6a7525e2251842cf685e55983c1f6d7036ae8b0aa9c8f9e2fb files/pulseaudio.init.d-3 1727
DIST pulseaudio-0.9.7.tar.gz 1013981 RMD160 49d0d875d6929527fe97124431462e63adf52873 SHA1 c6c36f2ddb51685971abf8b47ed325a8f06759c5 SHA256 b5f3fe8fc8be435e5d1b2183894fb545220a50b5b4850bb71af6b5e14f8f6ee0
-DIST pulseaudio-0.9.8.tar.gz 1089681 RMD160 ed4c1a5f4cf53ef166fe2aad66f1cae880463a8f SHA1 1eb126d452084e8a12abce64ed6ea65da5a3596a SHA256 359891878e19d33b15f6a97eaec9b2f7d85dab7c1e1d6723537b80d36aa36858
DIST pulseaudio-0.9.9.tar.gz 1063448 RMD160 beb9cb645ce69978ba095e73376ae8ae4b92daf9 SHA1 de8896cf3c6e26e77e4ae19ba300c409b6de8455 SHA256 9caab8f9be8a371aea7cd0241aab7ffd4b1043fbc4a8f62736faea4229f11f7d
EBUILD pulseaudio-0.9.7.ebuild 4752 RMD160 0217d3ccee281219df3a6817935f762b9a03f286 SHA1 2fca6bbfd4b2c209ca59e5313a1b45cec19c5fb2 SHA256 65803bb77985bc3bb82e0e0d01e82a7293fc61ad951a35a1672e25941725437c
MD5 196c256244b3fa38ddb8b4ddba53f172 pulseaudio-0.9.7.ebuild 4752
RMD160 0217d3ccee281219df3a6817935f762b9a03f286 pulseaudio-0.9.7.ebuild 4752
SHA256 65803bb77985bc3bb82e0e0d01e82a7293fc61ad951a35a1672e25941725437c pulseaudio-0.9.7.ebuild 4752
-EBUILD pulseaudio-0.9.8-r6.ebuild 5824 RMD160 6d01127208d4cd0b9a60e776bba6ffb334baed39 SHA1 7c6493d8e35b56b131ea8ee123636ad9a3e266b4 SHA256 bbe88b3059449337c1c575167ad6288d07930250b7c64c58ced9c8dae5c00690
-MD5 a21f2d495078ac93041a949287ef10ce pulseaudio-0.9.8-r6.ebuild 5824
-RMD160 6d01127208d4cd0b9a60e776bba6ffb334baed39 pulseaudio-0.9.8-r6.ebuild 5824
-SHA256 bbe88b3059449337c1c575167ad6288d07930250b7c64c58ced9c8dae5c00690 pulseaudio-0.9.8-r6.ebuild 5824
-EBUILD pulseaudio-0.9.8-r7.ebuild 5786 RMD160 6b19686f94e3181a21612cdafd7e68380f7d0c42 SHA1 0888469f979c1515d5a3b220f8b5f7ffe34a2d0d SHA256 f0aa64e3d8b50aac92756a624ee863939757569ef8cc9ecbe7fdea93398e31b8
-MD5 a30ad96bb557a47c2d02f44a07fac7e5 pulseaudio-0.9.8-r7.ebuild 5786
-RMD160 6b19686f94e3181a21612cdafd7e68380f7d0c42 pulseaudio-0.9.8-r7.ebuild 5786
-SHA256 f0aa64e3d8b50aac92756a624ee863939757569ef8cc9ecbe7fdea93398e31b8 pulseaudio-0.9.8-r7.ebuild 5786
EBUILD pulseaudio-0.9.9-r1.ebuild 5847 RMD160 8f470a41bd65792e8fb5605d2c784983c9adfe9a SHA1 b0b93c9114ba9e7f4a6eee626404b1382349aaa8 SHA256 adbb09e222539e113fbd80186c538aae4c65ef74f46962360cbbfa210b5ec3e4
MD5 5b482627e7cd5c8b3c83f7807c3238fa pulseaudio-0.9.9-r1.ebuild 5847
RMD160 8f470a41bd65792e8fb5605d2c784983c9adfe9a pulseaudio-0.9.9-r1.ebuild 5847
@@ -61,10 +55,10 @@ EBUILD pulseaudio-0.9.9.ebuild 5815 RMD160 d7281cdf200504afc58531833099b773ce075
MD5 898df7627340f057e4254efb1e1abf4c pulseaudio-0.9.9.ebuild 5815
RMD160 d7281cdf200504afc58531833099b773ce075ec9 pulseaudio-0.9.9.ebuild 5815
SHA256 719490dc3e51f14403e5b97e848fb7c8392fea016e59d08567b1713624fb9a83 pulseaudio-0.9.9.ebuild 5815
-MISC ChangeLog 17650 RMD160 20b8ac1841010027657dd002949d4fd3d5812982 SHA1 578097cefa71096df46f808ebbbcf3925ddc698b SHA256 944d5096e7b096de8e78f3e48ac1e9f4019404ac531003c10c52b3eff002170e
-MD5 d97b56f48eea14291379ab500213f650 ChangeLog 17650
-RMD160 20b8ac1841010027657dd002949d4fd3d5812982 ChangeLog 17650
-SHA256 944d5096e7b096de8e78f3e48ac1e9f4019404ac531003c10c52b3eff002170e ChangeLog 17650
+MISC ChangeLog 17786 RMD160 96e1511ddd12ca70c546c16f3b80111872e75eeb SHA1 afac1e025a0f45853f526271a27a6b1402a0b4a2 SHA256 f958817125874e47b8ae45eb4365c0af8005580de0c39f341114ae9ee68fe32a
+MD5 827ce3537acb258b76351c3936ee6c95 ChangeLog 17786
+RMD160 96e1511ddd12ca70c546c16f3b80111872e75eeb ChangeLog 17786
+SHA256 f958817125874e47b8ae45eb4365c0af8005580de0c39f341114ae9ee68fe32a ChangeLog 17786
MISC metadata.xml 1106 RMD160 451b24728e90377bc829a999a76fca5b4bc91078 SHA1 6b242be79913c9ffa2aafdd95149a7fa93b3c764 SHA256 995d3c7013901cd84098a1b40975c54863751e8668874f763ec70b81e23e9a9f
MD5 c0c42e2e4ad4d60f13af9b880c76ebdc metadata.xml 1106
RMD160 451b24728e90377bc829a999a76fca5b4bc91078 metadata.xml 1106
@@ -72,12 +66,6 @@ SHA256 995d3c7013901cd84098a1b40975c54863751e8668874f763ec70b81e23e9a9f metadata
MD5 bb5084148a466cd7ac637deea6c190b8 files/digest-pulseaudio-0.9.7 253
RMD160 66290b7baa73f06a9959116e7cb200f47106d97a files/digest-pulseaudio-0.9.7 253
SHA256 6231728210138f08066ebcb131dde341500e592d659c10012ac9a9008b7c3da2 files/digest-pulseaudio-0.9.7 253
-MD5 4d91e7eeb785ff03ad20f30e1bc59118 files/digest-pulseaudio-0.9.8-r6 253
-RMD160 fe718f55780ba439e718786e40496ac23a1d989f files/digest-pulseaudio-0.9.8-r6 253
-SHA256 163458e04049a24ab1dcfcc110dd4eea8a1e0fa2e8c26811e9502842e97928cd files/digest-pulseaudio-0.9.8-r6 253
-MD5 4d91e7eeb785ff03ad20f30e1bc59118 files/digest-pulseaudio-0.9.8-r7 253
-RMD160 fe718f55780ba439e718786e40496ac23a1d989f files/digest-pulseaudio-0.9.8-r7 253
-SHA256 163458e04049a24ab1dcfcc110dd4eea8a1e0fa2e8c26811e9502842e97928cd files/digest-pulseaudio-0.9.8-r7 253
MD5 85955cd2a379b2a58cf49cd569211437 files/digest-pulseaudio-0.9.9 253
RMD160 8b75ffc2f3c76487db1b0c9d4b86e832a0237879 files/digest-pulseaudio-0.9.9 253
SHA256 397ce4123e9ac712aae1332fadbc37747e2504dedf4f77607ae8b9e8559a56ce files/digest-pulseaudio-0.9.9 253
@@ -87,3 +75,10 @@ SHA256 397ce4123e9ac712aae1332fadbc37747e2504dedf4f77607ae8b9e8559a56ce files/di
MD5 85955cd2a379b2a58cf49cd569211437 files/digest-pulseaudio-0.9.9-r2 253
RMD160 8b75ffc2f3c76487db1b0c9d4b86e832a0237879 files/digest-pulseaudio-0.9.9-r2 253
SHA256 397ce4123e9ac712aae1332fadbc37747e2504dedf4f77607ae8b9e8559a56ce files/digest-pulseaudio-0.9.9-r2 253
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHm1dKAiZjviIA2XgRAmJ5AJ9HUAelj4yKaNGrIVd4iHRw78xHmgCgnfQ8
+AhCB+utubmeQ6k8w2aYZcdc=
+=ZNRb
+-----END PGP SIGNATURE-----
diff --git a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r6 b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r6
deleted file mode 100644
index 9f89ccdd6357..000000000000
--- a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r6
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 184a41d5947e583d395f0a2541525fc2 pulseaudio-0.9.8.tar.gz 1089681
-RMD160 ed4c1a5f4cf53ef166fe2aad66f1cae880463a8f pulseaudio-0.9.8.tar.gz 1089681
-SHA256 359891878e19d33b15f6a97eaec9b2f7d85dab7c1e1d6723537b80d36aa36858 pulseaudio-0.9.8.tar.gz 1089681
diff --git a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r7 b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r7
deleted file mode 100644
index 9f89ccdd6357..000000000000
--- a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.8-r7
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 184a41d5947e583d395f0a2541525fc2 pulseaudio-0.9.8.tar.gz 1089681
-RMD160 ed4c1a5f4cf53ef166fe2aad66f1cae880463a8f pulseaudio-0.9.8.tar.gz 1089681
-SHA256 359891878e19d33b15f6a97eaec9b2f7d85dab7c1e1d6723537b80d36aa36858 pulseaudio-0.9.8.tar.gz 1089681
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.8-r6.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.8-r6.ebuild
deleted file mode 100644
index ef04c67b2552..000000000000
--- a/media-sound/pulseaudio/pulseaudio-0.9.8-r6.ebuild
+++ /dev/null
@@ -1,174 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r6.ebuild,v 1.4 2008/01/08 22:17:00 jer Exp $
-
-inherit eutils libtool autotools
-
-DESCRIPTION="A networked sound server with an advanced plugin system"
-HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/"
-SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-2 GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
-IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns"
-
-RDEPEND="X? ( x11-libs/libX11 )
- caps? ( sys-libs/libcap )
- >=media-libs/audiofile-0.2.6-r1
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
- >=media-libs/libsndfile-1.0.10
- >=dev-libs/liboil-0.3.6
- alsa? ( >=media-libs/alsa-lib-1.0.10 )
- >=dev-libs/glib-2.4.0
- avahi? ( >=net-dns/avahi-0.6.12 )
- >=dev-libs/liboil-0.3.0
- jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
- tcpd? ( sys-apps/tcp-wrappers )
- lirc? ( app-misc/lirc )
- dbus? ( >=sys-apps/dbus-1.0.0 )
- gnome? ( >=gnome-base/gconf-2.4.0 )
- hal? (
- >=sys-apps/hal-0.5.7
- >=sys-apps/dbus-1.0.0
- )
- app-admin/eselect-esd
- bluetooth? (
- >=net-wireless/bluez-libs-3
- >=sys-apps/dbus-1.0.0
- )
- policykit? ( sys-auth/policykit )
- asyncns? ( net-libs/libasyncns )
- >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
-DEPEND="${RDEPEND}
- dev-libs/libatomic_ops
- dev-util/pkgconfig"
-
-# alsa-utils dep is for the alsasound init.d script (see bug #155707)
-# bluez-utils dep is for the bluetooth init.d script
-RDEPEND="${RDEPEND}
- gnome-extra/gnome-audio
- alsa? ( media-sound/alsa-utils )
- bluetooth? ( >=net-wireless/bluez-utils-3 )"
-
-pkg_setup() {
- if use avahi && ! built_with_use net-dns/avahi dbus ; then
- echo
- eerror "In order to compile pulseaudio with avahi support, you need to have"
- eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
- eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
- die "net-dns/avahi is missing the D-Bus bindings."
- fi
-
- enewgroup audio 18 # Just make sure it exists
- enewgroup realtime
- enewgroup pulse-access
- enewgroup pulse
- enewuser pulse -1 -1 /var/run/pulse pulse,audio
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${P}-svn2074.patch"
- epatch "${FILESDIR}/${P}-polkit.patch"
- epatch "${FILESDIR}/${P}-bt-nohal.patch"
- epatch "${FILESDIR}/${P}-esoundpath.patch"
- epatch "${FILESDIR}/${P}-create-directory.patch"
-
- eautoreconf
- elibtoolize
-}
-
-src_compile() {
- econf \
- --enable-largefile \
- --enable-glib2 \
- --disable-solaris \
- $(use_enable asyncns) \
- $(use_enable oss) \
- $(use_enable alsa) \
- $(use_enable lirc) \
- $(use_enable tcpd tcpwrap) \
- $(use_enable jack) \
- $(use_enable lirc) \
- $(use_enable avahi) \
- $(use_enable hal) \
- $(use_enable dbus) \
- $(use_enable gnome gconf) \
- $(use_enable libsamplerate samplerate) \
- $(use_enable bluetooth bluez) \
- $(use_enable policykit polkit) \
- $(use_with caps) \
- $(use_with X x) \
- --disable-ltdl-install \
- --localstatedir=/var \
- --with-realtime-group=realtime \
- || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "make install failed"
-
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
-
- local neededservices
- use alsa && neededservices="$neededservices alsasound"
- use avahi && neededservices="$neededservices avahi-daemon"
- use hal && neededservices="$neededservices hald"
- use bluetooth && neededservices="$neededservices bluetooth"
- [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
- doinitd "${T}/pulseaudio"
-
- if ! use hal; then
- sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa"
- fi
- use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
-
- dohtml -r doc
- dodoc README
-
- # Create the state directory
- diropts -o pulse -g pulse -m0755
- keepdir /var/run/pulse
-}
-
-pkg_postinst() {
- elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
- elog "This support is enabled by starting the pulseaudio init.d ."
- elog "To be able to access that you need to be in the group pulse-access."
- elog "For more information about system-wide support, please refer to"
- elog " http://pulseaudio.org/wiki/SystemWideInstance"
- if use gnome; then
- elog
- elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note"
- elog "that you might need to remove the gnome USE flag or disable the"
- elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
- elog "with a system-wide instance."
- fi
- elog
- elog "To use the ESounD wrapper while using a system-wide daemon, you also"
- elog "need to enable auth-anonymous for the esound-unix module, or to copy"
- elog "/var/run/pulse/.esd_auth into each home directory."
- elog
- elog "If you want to make use of realtime capabilities of PulseAudio"
- elog "you should follow the realtime guide to create and set up a realtime"
- elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
- elog "Make sure you also have baselayout installed with pam USE flag"
- elog "enabled, if you're using the rlimit method."
- if use bluetooth; then
- elog
- elog "The BlueTooth proximity module is not enabled in the default"
- elog "configuration file. If you do enable it, you'll have to have"
- elog "your BlueTooth controller enabled and inserted at bootup or"
- elog "PulseAudio will refuse to start."
- elog
- elog "Please note that the BlueTooth proximity module seems itself"
- elog "still experimental, so please report to upstream if you have"
- elog "problems with it."
- fi
-
- eselect esd update --if-unset
-}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.8-r7.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.8-r7.ebuild
deleted file mode 100644
index 821b8d5b251d..000000000000
--- a/media-sound/pulseaudio/pulseaudio-0.9.8-r7.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r7.ebuild,v 1.4 2008/01/08 22:17:00 jer Exp $
-
-inherit eutils libtool autotools
-
-DESCRIPTION="A networked sound server with an advanced plugin system"
-HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/"
-SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-2 GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
-IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns"
-
-RDEPEND="X? ( x11-libs/libX11 )
- caps? ( sys-libs/libcap )
- >=media-libs/audiofile-0.2.6-r1
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
- >=media-libs/libsndfile-1.0.10
- >=dev-libs/liboil-0.3.6
- alsa? ( >=media-libs/alsa-lib-1.0.10 )
- >=dev-libs/glib-2.4.0
- avahi? ( >=net-dns/avahi-0.6.12 )
- >=dev-libs/liboil-0.3.0
- jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
- tcpd? ( sys-apps/tcp-wrappers )
- lirc? ( app-misc/lirc )
- dbus? ( >=sys-apps/dbus-1.0.0 )
- gnome? ( >=gnome-base/gconf-2.4.0 )
- hal? (
- >=sys-apps/hal-0.5.7
- >=sys-apps/dbus-1.0.0
- )
- app-admin/eselect-esd
- bluetooth? (
- >=net-wireless/bluez-libs-3
- >=sys-apps/dbus-1.0.0
- )
- policykit? ( sys-auth/policykit )
- asyncns? ( net-libs/libasyncns )
- >=sys-apps/baselayout-2.0_rc5
- >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
-DEPEND="${RDEPEND}
- dev-libs/libatomic_ops
- dev-util/pkgconfig
- dev-util/unifdef"
-
-# alsa-utils dep is for the alsasound init.d script (see bug #155707)
-# bluez-utils dep is for the bluetooth init.d script
-RDEPEND="${RDEPEND}
- gnome-extra/gnome-audio
- alsa? ( media-sound/alsa-utils )
- bluetooth? ( >=net-wireless/bluez-utils-3 )"
-
-pkg_setup() {
- if use avahi && ! built_with_use net-dns/avahi dbus ; then
- echo
- eerror "In order to compile pulseaudio with avahi support, you need to have"
- eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
- eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
- die "net-dns/avahi is missing the D-Bus bindings."
- fi
-
- enewgroup audio 18 # Just make sure it exists
- enewgroup realtime
- enewgroup pulse-access
- enewgroup pulse
- enewuser pulse -1 -1 /var/run/pulse pulse,audio
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${P}-svn2074.patch"
- epatch "${FILESDIR}/${P}-polkit.patch"
- epatch "${FILESDIR}/${P}-bt-nohal.patch"
- epatch "${FILESDIR}/${P}-esoundpath.patch"
- epatch "${FILESDIR}/${P}-create-directory.patch"
-
- eautoreconf
- elibtoolize
-}
-
-src_compile() {
- econf \
- --enable-largefile \
- --enable-glib2 \
- --disable-solaris \
- $(use_enable asyncns) \
- $(use_enable oss) \
- $(use_enable alsa) \
- $(use_enable lirc) \
- $(use_enable tcpd tcpwrap) \
- $(use_enable jack) \
- $(use_enable lirc) \
- $(use_enable avahi) \
- $(use_enable hal) \
- $(use_enable dbus) \
- $(use_enable gnome gconf) \
- $(use_enable libsamplerate samplerate) \
- $(use_enable bluetooth bluez) \
- $(use_enable policykit polkit) \
- $(use_with caps) \
- $(use_with X x) \
- --disable-ltdl-install \
- --localstatedir=/var \
- --with-realtime-group=realtime \
- || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "make install failed"
-
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
-
- use_define() {
- local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
-
- use "$1" && echo "-D$define" || echo "-U$define"
- }
-
- unifdef "${FILESDIR}/pulseaudio.init.d-3" \
- $(use_define hal) \
- $(use_define avahi) \
- $(use_define alsa) \
- $(use_define bluetooth) \
- > "${T}/pulseaudio"
- doinitd "${T}/pulseaudio"
-
- if ! use hal; then
- sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa"
- fi
- use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
-
- dohtml -r doc
- dodoc README
-
- # Create the state directory
- diropts -o pulse -g pulse -m0755
- keepdir /var/run/pulse
-}
-
-pkg_postinst() {
- elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
- elog "This support is enabled by starting the pulseaudio init.d ."
- elog "To be able to access that you need to be in the group pulse-access."
- elog "For more information about system-wide support, please refer to"
- elog " http://pulseaudio.org/wiki/SystemWideInstance"
- if use gnome; then
- elog
- elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note"
- elog "that you might need to remove the gnome USE flag or disable the"
- elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
- elog "with a system-wide instance."
- fi
- elog
- elog "To use the ESounD wrapper while using a system-wide daemon, you also"
- elog "need to enable auth-anonymous for the esound-unix module, or to copy"
- elog "/var/run/pulse/.esd_auth into each home directory."
- elog
- elog "If you want to make use of realtime capabilities of PulseAudio"
- elog "you should follow the realtime guide to create and set up a realtime"
- elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
- elog "Make sure you also have baselayout installed with pam USE flag"
- elog "enabled, if you're using the rlimit method."
- if use bluetooth; then
- elog
- elog "The BlueTooth proximity module is not enabled in the default"
- elog "configuration file. If you do enable it, you'll have to have"
- elog "your BlueTooth controller enabled and inserted at bootup or"
- elog "PulseAudio will refuse to start."
- elog
- elog "Please note that the BlueTooth proximity module seems itself"
- elog "still experimental, so please report to upstream if you have"
- elog "problems with it."
- fi
-
- eselect esd update --if-unset
-}