Version bump. Fixes bug #540058.
authorManuel Rüger <mrueg@gentoo.org>
Sat, 14 Mar 2015 17:22:43 +0000 (17:22 +0000)
committerManuel Rüger <mrueg@gentoo.org>
Sat, 14 Mar 2015 17:22:43 +0000 (17:22 +0000)
Package-Manager: portage-2.2.18/cvs/Linux x86_64

media-sound/pulseaudio/ChangeLog
media-sound/pulseaudio/Manifest
media-sound/pulseaudio/pulseaudio-6.0.ebuild [new file with mode: 0644]

index adc756efbe9c01d2221e2dd3d32f2cf3a3f17f56..5f9fdafad6a515c00ab5a61aa8a69cad073f9201 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for media-sound/pulseaudio
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.375 2015/03/07 10:44:25 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.376 2015/03/14 17:22:37 mrueg Exp $
+
+*pulseaudio-6.0 (14 Mar 2015)
+
+  14 Mar 2015; Manuel Rüger <mrueg@gentoo.org> +pulseaudio-6.0.ebuild:
+  Version bump. Fixes bug #540058.
 
   07 Mar 2015; Pacho Ramos <pacho@gentoo.org> -pulseaudio-5.0-r5.ebuild,
   -pulseaudio-5.0-r6.ebuild, -pulseaudio-5.99.3.ebuild:
index b1b3a873d9f63f236e4c0ec0ee10c8b5d4d80eab..9fb38f9aa07f66f23b9c36790046f4d99220c40e 100644 (file)
@@ -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
@@ -13,15 +10,10 @@ AUX pulseaudio.tmpfiles 36 SHA256 d836951fb800308256288506b6bd82919d377399e1292d
 AUX svolume-fix_param_loading_undefined_beh.patch 981 SHA256 844d3a095d26277548d250eda2aecd031270e7bef9c4fb1abd2ae989028225ee SHA512 a4ce28879bc1f6806597511bbe3b9c40d706933f5668dc42dfcea44de489d778d2a167ba01b926d0a6e3d8e280de54b8addea16f654c7c60c945329a9d448368 WHIRLPOOL 13698d1ac8110291fd70edf3eb7fd9c9b43c933f1a62530d644ff09722cbd6b09cb157f67fe6149ad1302f6d7a6b59c8c763cd419bf542688ec18e105e7a7a33
 DIST pulseaudio-5.0.tar.xz 1455428 SHA256 99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939 SHA512 f3d64bd6e03a732fd812da466b6658004600b4f3d0b9760403b7e113b6d654d54387658bf3704f45f28ab700245433e23fe517e4579130886fc58647eb97be2b WHIRLPOOL c85829c78ded3bbef234e455bfd3778f2daf50de9d7627508dbf131d0c398e35ab3ae41a4b5136f0c0da09249bc9a600ad85d848ba4e1faba74875af0a787036
 DIST pulseaudio-5.99.3.tar.xz 1468972 SHA256 88f14aa22eb611276c584f9fba6a190954f751b98a7bd6112763f1d6a0670b52 SHA512 a76bc662b274b96803370e39f5362b4490848398a9830cff788b6a1c070014cc0290bf923039f7bcd18ac458f011a167346722b5f041a8c0daa1ec1f8d72ac82 WHIRLPOOL 70d3fef108aaf3727f01b6dd17fcfa8c3845d175ab3f4b183deaf180612785014a9a45c221a057177153b949398410799bfd0bf43a4e8ee6b0e4236ee1fc6a14
+DIST pulseaudio-6.0.tar.xz 1469248 SHA256 b50640e0b80b1607600accfad2e45aabb79d379bf6354c9671efa2065477f6f6 SHA512 4f2293b41c8278047a41be4609a6bc267766874001092a91e785b05d5224fd82810862402942dadbb54bed7f74689779c958ca512666dfe6755d29551583cc2d WHIRLPOOL d75724f2ada640dabd256dc9e9840def17e78f63116c31df711d266349e9f4b99efbc797a5108649c860a5bf8ec8199383eaede440d8b4b655ef09f4ce37984f
 EBUILD pulseaudio-5.0-r4.ebuild 10310 SHA256 f84600820a92c546f7d352396e400ddd12572d91cf2206966d4a1a73cd274ae6 SHA512 e5b9e0f09bcdf3b523d90c699e6fd984b27b3a974a705e18e99743368160c5de95d83b6b3fa7313bbc470749093cbe7777518cfda340867e95ebd068a47bf14a WHIRLPOOL 6dd1d42c81ece20bae9ef1d10776d599d2edcce77e52c95a5a36b890aee33bafd0ea4636ecc40bef611707726a849ec4a0dae729b6afc78574fad60749fedd68
 EBUILD pulseaudio-5.0-r7.ebuild 10925 SHA256 0fd0255689c3a39a0a61cd7b8a87d029a877989663b7b2b168deac4cca935c86 SHA512 06466f1f6dd8b2de9e51969b7fb8eba19752dbd4a45b3b41d55dd6476ef8031f60d555edb8eddd05084aa55f0d6d0944db2b703677100444de95d33391890a9b WHIRLPOOL 16c91aedf5394725248b5d13b137718207d595cab6d63c3831bc4c41a9b01cfbd40f33e47e9be149699ec6a87fb4a715cb9599e259f703339dbdd3091e0336cd
 EBUILD pulseaudio-5.99.3-r1.ebuild 11413 SHA256 cc1a85a2ff29adf82e61c0e471a9c52425492fd41b415507e51eef1ad4032f11 SHA512 b3f9e533f1f7b829e732f416ebc1e0cea717224b7c34a7f13d848eb2f528c009b35a73d3eb8e8ddd3e3739c87d580b85d796b06274b0c8ba9de1ac03aa62e5a7 WHIRLPOOL c8f895b77882e255a6b5631e1eef5707290f9aa8cea71685802811aa201b4d777164e315a62a0fae472c80332183d2175ee7a5d5d7e7f68aa80ca7004397f517
-MISC ChangeLog 71092 SHA256 119bbf17e0accc9ec6df1e044e2343d8f356ac72973e8c5bc3a9870929fa0e8e SHA512 4afd24baeb02610af2078c7199d873d6c5ca257cfbb104d9d291e463af59d5407ade9663a3077520735503531979ed1d72260aa50f7a1eb38188a0bf6e0bd211 WHIRLPOOL 33402dfb27f7f06c51db3503b6ca98ce171b9a405aa1195a71ab2edb33db90ae6cb42d1fbc026cecc8065a4c4940112ce255d94988ea476d84261db267441996
+EBUILD pulseaudio-6.0.ebuild 11380 SHA256 e143ae787648a57804955009e0f7e725b203a353199f73e12ea3f8752b5fc858 SHA512 da6b6caff6e9648cc202ff7b63d5525b871797d5ab81ff7f0496e0119f5d351fc669d220636a0e9542cd2e864de0876387d3a21c708e2df935baeb4db2e34d03 WHIRLPOOL 1c6b536956eedbf55b840d091cf76f6b747e034ae038233d44faacf7ee93947ab9fa5946934a0ff42f41d048a122fcd8167c4e7442147192591c0303e8bd877d
+MISC ChangeLog 71231 SHA256 3bea017869f85b5b5076b5b27b0d0f01b92c990c51485642210a6e6e24a2a2ce SHA512 142f680f82310c0501f224a3e086878e7371d4ccb42bb14d253c6a006baa67fae502ada8e338502c7c14b2c9100cb22de3a796882acb0b29388dd47659175704 WHIRLPOOL 6729097ac7013699aede7c0b934c301df70129686fe5ca2baf6b924ed4258da09cc1ea7f23ffee9b92dc9e6ba6ed30396380bed008ab3a7dcfc8379ffa06c2f2
 MISC metadata.xml 3273 SHA256 c1552dfd3e440a1b379949f418f4c16ce51b06a29d2bcc1dbf2f7349a63c9c2a SHA512 d04cb9438852414e9c5d9d83857a02844ea743de66a98e789ad473f5c28a271afb261bde5de186b120e9334495a78628f1379825d28fd6e30f85073901cb9576 WHIRLPOOL 13347cfd84aacb396ab6cac6c5758e671a13c3e63f8e5b41b08d8c5185765de8096235927a311a149f9f5a52c13b4ae70a8ce297556ed8f91a2d2f09340ae39d
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
-
-iEYEAREIAAYFAlT61okACgkQCaWpQKGI+9QXAQCdG3LyiJvUgdfj7CXYpE92ssjj
-/6MAnRe/ouaOujzkzXElZSXoWhihj9uQ
-=zOKZ
------END PGP SIGNATURE-----
diff --git a/media-sound/pulseaudio/pulseaudio-6.0.ebuild b/media-sound/pulseaudio/pulseaudio-6.0.ebuild
new file mode 100644 (file)
index 0000000..a9298bf
--- /dev/null
@@ -0,0 +1,379 @@
+# 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-6.0.ebuild,v 1.1 2015/03/14 17:22:37 mrueg 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 native-headset neon ofono-headset
+       +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 )
+               ofono-headset? ( bluetooth )
+               native-headset? ( bluetooth )
+               udev? ( || ( alsa oss ) )"
+
+# 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 )
+       ofono-headset? ( >=net-misc/ofono-1.13 )
+       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-0.11[${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 multilib_is_native_abi; then
+                       if has_version '<net-wireless/bluez-5'; then
+                               myconf+=( --disable-bluez5 --enable-bluez4 )
+                       else
+                               myconf+=( --enable-bluez5 --disable-bluez4
+                                       $(use_enable native-headset bluez5-native-headset)
+                                       $(use_enable ofono-headset bluez5-ofono-headset) )
+                       fi
+               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-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
+
+       if use native-headset && use ofono-headset; then
+               elog "You have enabled both native and ofono headset profiles. The runtime decision"
+               elog "which to use is done via the 'headset' argument of module-bluetooth-discover."
+       fi
+
+       if use libsamplerate; then
+               elog "The libsamplerate based resamplers are now deprecated, because they offer no"
+               elog "particular advantage over speex. Upstream suggests disabling them."
+       fi
+}