--- firefox-bin-52.0.1.ebuild 2017-04-11 19:40:43.769165993 +0200 +++ firefox-bin-52.0.1-r1.ebuild 2017-04-11 19:39:16.511441266 +0200 @@ -31,7 +31,7 @@ KEYWORDS="-* ~amd64 ~x86" SLOT="0" LICENSE="MPL-2.0 GPL-2 LGPL-2.1" -IUSE="selinux startup-notification" +IUSE="apulse pulseaudio selinux startup-notification" DEPEND="app-arch/unzip" RDEPEND="dev-libs/atk @@ -54,6 +54,8 @@ x11-libs/libXt >=x11-libs/pango-1.22.0 virtual/freedesktop-icon-theme + apulse? ( >=media-sound/apulse-0.1.9 ) + pulseaudio? ( media-sound/pulseaudio ) selinux? ( sec-policy/selinux-mozilla ) " @@ -134,8 +136,12 @@ unset LD_PRELOAD LD_LIBRARY_PATH="/opt/firefox/" GTK_PATH=/usr/lib/gtk-2.0/ - exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" EOF + if use apulse; then + echo "apulse /opt/${MOZ_PN}/${MOZ_PN} \"\$@\"" >>"${ED}"usr/bin/${PN} + else + echo "exec /opt/${MOZ_PN}/${MOZ_PN} \"\$@\"" >>"${ED}"usr/bin/${PN} + fi fperms 0755 /usr/bin/${PN} # revdep-rebuild entry @@ -162,7 +168,12 @@ einfo "gnome-base/orbit and net-misc/curl emerged." einfo fi - einfo "For HTML5 video you need media-video/ffmpeg installed." + if ! has_version 'media-video/ffmpeg'; then + einfo "For HTML5 video you need media-video/ffmpeg installed." + fi + if ! use apulse && ! use pulseaudio; then + einfo "For HTML sound you need to enable apulse or pulseaudio" + fi # Drop requirement of curl not built with nss as it's not necessary anymore #if has_version 'net-misc/curl[nss]'; then