diff options
author | Richard Farina <zerochaos@gentoo.org> | 2015-01-05 17:56:33 +0000 |
---|---|---|
committer | Richard Farina <zerochaos@gentoo.org> | 2015-01-05 17:56:33 +0000 |
commit | aa7a1218ee254f2fc9d96cf44627dae84e90969c (patch) | |
tree | 86e3981f2b6663216a4a3f5f377630daefb02125 /media-sound | |
parent | EAPI 5 (diff) | |
download | historical-aa7a1218ee254f2fc9d96cf44627dae84e90969c.tar.gz historical-aa7a1218ee254f2fc9d96cf44627dae84e90969c.tar.bz2 historical-aa7a1218ee254f2fc9d96cf44627dae84e90969c.zip |
adding 5.99.2 release with bluetooth headset support with permission of leio. tested without systemd, but should work either way. Please add keywords when/if comfortable
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/pulseaudio/ChangeLog | 11 | ||||
-rw-r--r-- | media-sound/pulseaudio/Manifest | 21 | ||||
-rw-r--r-- | media-sound/pulseaudio/pulseaudio-5.99.2.ebuild | 361 |
3 files changed, 373 insertions, 20 deletions
diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog index eba8ba87c3fa..afee02294f9c 100644 --- a/media-sound/pulseaudio/ChangeLog +++ b/media-sound/pulseaudio/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/pulseaudio -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.364 2014/12/06 14:48:09 ulm Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.365 2015/01/05 17:56:32 zerochaos Exp $ + +*pulseaudio-5.99.2 (05 Jan 2015) + + 05 Jan 2015; <zero@gentoo.org> +pulseaudio-5.99.2.ebuild: + adding 5.99.2 release with bluetooth headset support with permission of leio. + tested without systemd, but should work either way. Please add keywords + when/if comfortable 06 Dec 2014; Ulrich Müller <ulm@gentoo.org> metadata.xml: Fix typo. diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest index bc87f4272735..df9221973bcb 100644 --- a/media-sound/pulseaudio/Manifest +++ b/media-sound/pulseaudio/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX pulseaudio-5.0-crash-udp.patch 2079 SHA256 c353bbc976ea810a0645536da9fae4a8f8e1557d7a91f8d534ec82e5dba7ff4a SHA512 399f4ed091e777d059ce78f26705cbc5650ffbb74a71f0d36324aad76ef965723b1c9ad9b6bacf1bfa64dc63ab4d078a1400627b91ea8371d41361cd4280c7fc WHIRLPOOL 00bffef5136297275fc4a68026f607a62f2496698e4820793b949eee44e60a18171a373f515c690b32febb7e026a2dd07983b09fae69ba9b2f1f10975924efbc AUX pulseaudio-5.0-module-switch.patch 1458 SHA256 98efc7e8805158c0d2c767199ea9eef67a18df97c267f9cd723f4e1715e41755 SHA512 3c2b90aea6117053838662f8f1d5ebaa076112b84189d794c97bd4779321b8b650b66e6e53f890ac158c8f5f3c536f45519b6e4fb8dddea23a4e79914e8f4705 WHIRLPOOL b81187dd36debf890e70de0116f91088a455fd82c6b5ba8dadc10120ca727491d68b6cfb0e588d55114ba4209bc9366898cdf0d2e1566d8f85b1eb8cec4a9570 AUX pulseaudio-5.0-zeroconf-crash-1.patch 974 SHA256 39e9579da5cbc880e5859fe61abc4754142257003ccd4651b0c15635da0d7315 SHA512 b72ac0b751be5bde82180bcf4fed72b3d7736087e2e3657d4f5e49d9e987c2f5ad3de3eb38d652423091376b3f5f06174182a10ce3d2513085e17dfc53c97bc8 WHIRLPOOL 7c0522a710449386a1c295640cfd7bd876b0cc2075f9937ddf9a62a034953c6301606f197e1131f20351a3cb7ad83c8eadf106028d332c25825eaf8dd6424b22 @@ -11,22 +8,10 @@ AUX pulseaudio.init.d-5 2352 SHA256 60e4571a8af0437bd99cfd858fde1e6223544a60e591 AUX pulseaudio.service 227 SHA256 62cd3b7e83845a27f437790cf293970f85ff02816da599a53cd5f3bf13da3788 SHA512 567663b231fe7c2682b08b1059cdad1fcb3c4cb01c1b24aed9afb6fb767b30f250b78bbbed48aadfb06c6d1a4963a6db24877d79a1d36c4be2a128b479c086d6 WHIRLPOOL bb548efc14d88b372abaafae557fe23681ce93d1b010fe7761458c5f7793a96886aa368df4cbec5a4fde078f9e8d940020e3ad2a36248ff6c8ab3b70f412d634 AUX pulseaudio.tmpfiles 36 SHA256 d836951fb800308256288506b6bd82919d377399e1292dc10905a7aa12dac0e9 SHA512 f040850d81030ef04e1aa368d333a1ae1b7238adef5772280fc344c3068262d5ab8c9f3edb92db9c443f9d7d21abb27583ea1efc51ed733bbfa43e2edc68dde1 WHIRLPOOL b293b7372b7f63ddea63e6985d1f66a2010d8778ea3ae00501e58f15bfba3ed19b794111c073ee3bd5c8cf98d33f3c8db95220acf57f97477523f4cfa7121553 DIST pulseaudio-5.0.tar.xz 1455428 SHA256 99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939 SHA512 f3d64bd6e03a732fd812da466b6658004600b4f3d0b9760403b7e113b6d654d54387658bf3704f45f28ab700245433e23fe517e4579130886fc58647eb97be2b WHIRLPOOL c85829c78ded3bbef234e455bfd3778f2daf50de9d7627508dbf131d0c398e35ab3ae41a4b5136f0c0da09249bc9a600ad85d848ba4e1faba74875af0a787036 +DIST pulseaudio-5.99.2.tar.xz 1454516 SHA256 877fbc19c5928ade11c948814d0d444673c39a8ec5571d331642f3327d2c86fe SHA512 55e63f55fc2671c1ff70baef958c45d4b00b6017cd7dd0760c3c7ba10df9a5c7d005fe5acfccbc81a93df2305034a549368001e5518ca1586a96201e3db7a874 WHIRLPOOL 4900affe2c05858e2a7b9d3b3ebe89058f4625fa2089038015996df10ee8b08d8a98eb30ba932dac3f43e08117516e15dc717005c3db270905e15cad601fae1a EBUILD pulseaudio-5.0-r4.ebuild 10280 SHA256 ecfcb8e41987a89721eece1b90535d8b69e6051fc526b8017ed93cde28986588 SHA512 53bbcda4b9885cbdb4c3d2c3077052e519ceb64fe4ad74678eef75ddedd5590f4ea7b33efbd58bd8a35b29ab084fce596d8672188abf1b5b915ec007ee33cae0 WHIRLPOOL 7bb2a3898ee6b6775c51a207ff13102524f76ea38a49e68b30b647b8423eb456e841bf4e61fbe8a4bcb48a6cdbdd594253ccb1702989ac1ac460648e7f47e14d EBUILD pulseaudio-5.0-r5.ebuild 10463 SHA256 b74d44a38bcc42c73012138ced50c84f916d03068c439b6998940ea290372840 SHA512 5347fb31876ed4c72ef6596583f42e94a960eb97638f90921c51f75defbebf460b8c27b7b64d5beebf89c7cd0b3938f48746ad0ff5a6e572c5d419084000eada WHIRLPOOL cc5490557c23954787d44b0949794bcac9417cd7c39691db44fef865a28d4f6cc2dc1246f78f0ec12361f51a86d4f68b943a9c33242839e06fa96fbee7fef116 EBUILD pulseaudio-5.0-r6.ebuild 10533 SHA256 392e4d555bee4b05fc7765d40474ae78b819dadc23c750ce5ecee808c1aa8620 SHA512 2f8d69b05cbe6b6878373e08e2f1bdc027b2a877e9586cdd540725c37d318b5c2a8c3be72328b216f1c59be40a6295cc1a9a996479d959bfdd2300f8dbbc934b WHIRLPOOL 3838b97f83025672b9ec8c139d59d1f22d283015efc5789d41e2f480d89756a5b97ef2ba0cc5d5d0dcd9a1d5a0cbfbe5a842241c27447c91ad5681f18b719c14 -MISC ChangeLog 69052 SHA256 03202b956dc6159824397c87b97476e0c51c3dd6f492ae4277426a2d5070b047 SHA512 09ddc503c4bf56df5dee454df69ca6c84dd84d37d33d72535659b0f6aabbf92bf93542aa8665425aa32332fc17e2747db19200d5262d2f3059c0e17d274ee486 WHIRLPOOL 8a6a8aa2cc5ca7f9d5ea95d0d6e478b974f7d574c5f346589f21fdb6d766e9e48596bd410c7a20817760ec69bde7197760344714baa94c285a8d56e12c4660f0 +EBUILD pulseaudio-5.99.2.ebuild 10661 SHA256 1a15600c6dd0c03f532f29f0b878e5c951cac2e9dd7e101279fb891aaedc9d6b SHA512 0d001dcdb5596ffd2492998d402bcace2cf97cf96299c9c03741e585c645b5be3d50c9b89e92793ea45bb426f875b802f50d583d513e50afc1876a14ac056d8f WHIRLPOOL 4f0cdad989af992ffafadcd6b078adafe670e01fcaa8e1dcecf5fe937ac8dafe78e8fc72e296111cf3b2d0ba61ed7bad0735528d931f71c0152c0d345ae8e937 +MISC ChangeLog 69331 SHA256 2a46041061e1a4989ece3a605b2a9a81bfd92f51ee2b82ab3286b8e7cc0dffcb SHA512 fdf55f12a7c8b3077874c1c0cad6de13df772cdf3ccd425172622f7d3b0b5e0b7ee0bb32dd42d8ec3997c21902762aaabd7eb6df7642fc10c1f707f664dec012 WHIRLPOOL 8381175222007c8aff482b99d6a9680c6c8c8b3d16ed2eae4b9a8b86d242a8a53f920169f0058ab26777b93047c8b6255453d2419576f59ee811de0a092b016c MISC metadata.xml 3051 SHA256 3362e5b815ff2cd38317100361b154c08db41f99fa973e067db82aae57feb2a3 SHA512 4fecf278339b700ff8ff519ba6d345da0fd809404f2ad46b96178784bd07fe2ba733670abf033e036ec816a6c6c026d1f003d6996531329d69d4bd4db94a1403 WHIRLPOOL 66e96152c60b1e734c7539bee39e950d1adcab885c4fe131c95695bc166a34f9651e0e627dd5418c59ce56116c0634468b074fffd4aff5ab30237239ce21b291 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2 - -iQGcBAEBCAAGBQJUgxgwAAoJEJQzkH1pP7W4TRgL+QG337LX0QPWOppQlOFm2V4g -Pxt+47f7iz+28huM0Y1zueB6dNyIZDZk+/tusxvdVTg+yRORElH2iGsEHO8ukQBR -Rr3KP49H2W4zUTyYdDiaqHb42at1xvXr4Vmc/axbdiYOKVbtgZHwHYuqlH4aTeiJ -vMELt4V18xFN61O+5s/sIMnN1idpXq2AUJlbkGOYJ7UXKlVvesS+pwRriqL2aX/y -hJe9nmo2MC5Uz4DFzdZ07StllsdirkVsHS6dEHl/5zRmu8l6peECC+BW1GUmNS6/ -kVnAUdDMb8TyYIMvWDC353Nf8SlBm7MzkwAlVAJ992BUtVuBDgKzMInHu+2al1Q4 -Mkq0xE3miHBb7bYI7InPQI0nxuQyp5I2CCXIiH2q4u21xFdnS6R3Qo9n75WajCMJ -hTDL1F0N1iqWI/UQfpgPMgEdkIyKRBCCtbi1s2O28LbhroaPrPovDqxSwEpioDqq -qp0x1JIhnip6qHHhwg8cQsO1OukoKeX3PL7jhqVfBw== -=83SV ------END PGP SIGNATURE----- diff --git a/media-sound/pulseaudio/pulseaudio-5.99.2.ebuild b/media-sound/pulseaudio/pulseaudio-5.99.2.ebuild new file mode 100644 index 000000000000..654d49293cf1 --- /dev/null +++ b/media-sound/pulseaudio/pulseaudio-5.99.2.ebuild @@ -0,0 +1,361 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-5.99.2.ebuild,v 1.1 2015/01/05 17:56:32 zerochaos Exp $ + +EAPI="5" +inherit autotools bash-completion-r1 eutils flag-o-matic linux-info readme.gentoo systemd user versionator udev multilib-minimal + +DESCRIPTION="A networked sound server with an advanced plugin system" +HOMEPAGE="http://www.pulseaudio.org/" +SRC_URI="http://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" + +# libpulse-simple and libpulse link to libpulse-core; this is daemon's +# library and can link to gdbm and other GPL-only libraries. In this +# cases, we have a fully GPL-2 package. Leaving the rest of the +# GPL-forcing USE flags for those who use them. +LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" + +SLOT="0" +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="" + +# +alsa-plugin as discussed in bug #519530 +IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer +gdbm +glib +gnome gtk ipv6 jack libsamplerate lirc neon +orc oss qt4 realtime ssl systemd +system-wide tcpd test +udev +webrtc-aec +X xen zeroconf" + +# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac +REQUIRED_USE="bluetooth? ( dbus )" + +# libpcre needed in some cases, bug #472228 +RDEPEND=" + || ( + elibc_glibc? ( virtual/libc ) + elibc_uclibc? ( virtual/libc ) + dev-libs/libpcre + ) + >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] + X? ( + >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] + >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] + x11-libs/libSM[${MULTILIB_USEDEP}] + x11-libs/libICE[${MULTILIB_USEDEP}] + x11-libs/libXtst[${MULTILIB_USEDEP}] + ) + caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) + libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) + alsa? ( >=media-libs/alsa-lib-1.0.19 ) + glib? ( >=dev-libs/glib-2.4.0[${MULTILIB_USEDEP}] ) + zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) + jack? ( >=media-sound/jack-audio-connection-kit-0.117 ) + tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) + lirc? ( app-misc/lirc ) + dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) + gtk? ( x11-libs/gtk+:3 ) + gnome? ( >=gnome-base/gconf-2.4.0 ) + bluetooth? ( + net-wireless/bluez:= + >=sys-apps/dbus-1.0.0 + media-libs/sbc + ) + asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) + udev? ( >=virtual/udev-143[hwdb(+)] ) + realtime? ( sys-auth/rtkit ) + equalizer? ( sci-libs/fftw:3.0 ) + orc? ( >=dev-lang/orc-0.4.9 ) + ssl? ( dev-libs/openssl ) + >=media-libs/speex-1.2_rc1 + gdbm? ( sys-libs/gdbm ) + webrtc-aec? ( media-libs/webrtc-audio-processing ) + xen? ( app-emulation/xen-tools ) + systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) + dev-libs/json-c[${MULTILIB_USEDEP}] + abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20131008-r1 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] ) + dev-libs/libltdl:0 +" +# it's a valid RDEPEND, libltdl.so is used for native abi + +DEPEND="${RDEPEND} + sys-devel/m4 + doc? ( app-doc/doxygen ) + test? ( dev-libs/check ) + X? ( + x11-proto/xproto[${MULTILIB_USEDEP}] + >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] + ) + dev-libs/libatomic_ops + virtual/pkgconfig + system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) + dev-util/intltool + >=sys-devel/gettext-0.18.1 +" +# This is a PDEPEND to avoid a circular dep +PDEPEND="alsa? ( alsa-plugin? ( + >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio] +) )" + +# alsa-utils dep is for the alsasound init.d script (see bug #155707) +# bluez dep is for the bluetooth init.d script +# PyQt4 dep is for the qpaeq script +RDEPEND="${RDEPEND} + equalizer? ( qt4? ( dev-python/PyQt4[dbus] ) ) + system-wide? ( + alsa? ( media-sound/alsa-utils ) + bluetooth? ( net-wireless/bluez:= ) + ) +" + +pkg_pretend() { + CONFIG_CHECK="~HIGH_RES_TIMERS" + WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" + check_extra_config + + if linux_config_exists; then + local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) + if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then + ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" + ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" + fi + fi +} + +pkg_setup() { + linux-info_pkg_setup + + enewgroup audio 18 # Just make sure it exists + + if use system-wide; then + enewgroup pulse-access + enewgroup pulse + enewuser pulse -1 -1 /var/run/pulse pulse,audio + fi +} + +src_prepare() { + # Skip test that cannot work with sandbox, bug #501846 + sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die + + # Fix CVE-2014-3970, bug #512516 (from 'master') + #epatch "${FILESDIR}/${P}-crash-udp.patch" + + # module-switch-on-port-available: Don't switch profiles on uninitialized cards (from 'master') + #epatch "${FILESDIR}/${P}-module-switch.patch" + + # Fix module-zeroconf-publish crashes, bug #504612 (from 'master') + #epatch "${FILESDIR}"/${P}-zeroconf-crash-{1,2,3}.patch + + epatch_user + eautoreconf +} + +multilib_src_configure() { + local myconf=() + + if use gdbm; then + myconf+=( --with-database=gdbm ) + #elif use tdb; then + # myconf+=( --with-database=tdb ) + else + myconf+=( --with-database=simple ) + fi + + if use bluetooth; then + if has_version '<net-wireless/bluez-5'; then + myconf+=( --disable-bluez5 --enable-bluez4 ) + else + myconf+=( --enable-bluez5 --disable-bluez4 ) + fi + else + myconf+=( --disable-bluez5 --disable-bluez4 ) + fi + + myconf+=( + --enable-largefile + $(use_enable glib glib2) + --disable-solaris + $(use_enable asyncns) + $(use_enable oss oss-output) + $(use_enable alsa) + $(use_enable lirc) + $(use_enable neon neon-opt) + $(use_enable tcpd tcpwrap) + $(use_enable jack) + $(use_enable zeroconf avahi) + $(use_enable dbus) + $(use_enable gnome gconf) + $(use_enable gtk gtk3) + $(use_enable libsamplerate samplerate) + $(use_enable orc) + $(use_enable X x11) + $(use_enable test default-build-tests) + $(use_enable udev) + $(use_enable systemd systemd-daemon) + $(use_enable systemd systemd-login) + $(use_enable systemd systemd-journal) + $(use_enable ipv6) + $(use_enable ssl openssl) + $(use_enable webrtc-aec) + $(use_enable xen) + $(use_with caps) + $(use_with equalizer fftw) + --disable-adrian-aec + --disable-esound + --localstatedir="${EPREFIX}"/var + --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d + --with-systemduserunitdir=$(systemd_get_userunitdir) + ) + + if ! multilib_is_native_abi; then + # disable all the modules and stuff + myconf+=( + --disable-oss-output + --disable-alsa + --disable-lirc + --disable-jack + --disable-avahi + --disable-gconf + --disable-gtk3 + --disable-samplerate + --disable-bluez4 + --disable-bluez5 + --disable-udev + --disable-systemd + --disable-openssl + --disable-orc + --disable-webrtc-aec + --disable-xen + --without-fftw + + # tests involve random modules, so just do them for the native + --disable-default-build-tests + + # hack around unnecessary checks + # (results don't matter, we're not building anything using it) + ac_cv_lib_ltdl_lt_dladvise_init=yes + --with-database=simple + LIBSPEEX_CFLAGS=' ' + LIBSPEEX_LIBS=' ' + ) + fi + + ECONF_SOURCE=${S} \ + econf "${myconf[@]}" +} + +multilib_src_compile() { + if multilib_is_native_abi; then + emake + else + local targets=( libpulse.la libpulse-simple.la ) + use glib && targets+=( libpulse-mainloop-glib.la ) + emake -C src libpulse{,dsp,-simple,-mainloop-glib}.la + fi +} + +src_compile() { + multilib-minimal_src_compile + + if use doc; then + pushd doxygen + doxygen doxygen.conf + popd + fi +} + +multilib_src_test() { + # We avoid running the toplevel check target because that will run + # po/'s tests too, and they are broken. Officially, it should work + # with intltool 0.41, but that doesn't look like a stable release. + if multilib_is_native_abi; then + emake -C src check + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install + else + local targets=( libpulse.la libpulse-simple.la ) + use glib && targets+=( libpulse-mainloop-glib.la ) + emake DESTDIR="${D}" install-pkgconfigDATA + emake DESTDIR="${D}" -C src \ + install-libLTLIBRARIES \ + install-padsplibLTLIBRARIES \ + lib_LTLIBRARIES="${targets[*]}" \ + install-pulseincludeHEADERS + fi +} + +multilib_src_install_all() { + # Drop the script entirely if X is disabled + use X || rm "${ED}"/usr/bin/start-pulseaudio-x11 + + if use system-wide; then + 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 $(use_define zeroconf AVAHI) \ + $(use_define alsa) \ + $(use_define bluetooth) \ + $(use_define udev) \ + "${FILESDIR}/pulseaudio.init.d-5" \ + > "${T}/pulseaudio" + + doinitd "${T}/pulseaudio" + + systemd_dounit "${FILESDIR}/${PN}.service" + fi + + use zeroconf && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa" + + dodoc NEWS README todo + + if use doc; then + pushd doxygen/html + dohtml * + popd + fi + + # Create the state directory + use prefix || diropts -o pulse -g pulse -m0755 + + # We need /var/run/pulse, bug #442852 + use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" + + # Prevent warnings when system-wide is not used, bug #447694 + use system-wide || rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf + + prune_libtool_files --all +} + +pkg_postinst() { + if use system-wide; then + 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 "If you choose to use this feature, please make sure that you" + elog "really want to run PulseAudio this way:" + elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode" + 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. Please note" + elog "that you might need to remove the gnome USE flag or disable the" + elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio" + elog "with a system-wide instance." + fi + fi + + if use equalizer && ! use qt4; then + elog "You've enabled the 'equalizer' USE-flag but not the 'qt4' USE-flag." + elog "This will build the equalizer module, but the 'qpaeq' tool" + elog "which is required to set equalizer levels will not work." + fi +} |