diff options
-rw-r--r-- | www-client/firefox-bin/firefox-bin-78.3.1-r1.ebuild (renamed from www-client/firefox-bin/firefox-bin-78.3.1.ebuild) | 14 | ||||
-rw-r--r-- | www-client/firefox-bin/firefox-bin-81.0.1-r1.ebuild (renamed from www-client/firefox-bin/firefox-bin-81.0.1.ebuild) | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/www-client/firefox-bin/firefox-bin-78.3.1.ebuild b/www-client/firefox-bin/firefox-bin-78.3.1-r1.ebuild index 7c46bdb03106..d95da6f4e1ac 100644 --- a/www-client/firefox-bin/firefox-bin-78.3.1.ebuild +++ b/www-client/firefox-bin/firefox-bin-78.3.1-r1.ebuild @@ -35,7 +35,12 @@ IUSE="+alsa +ffmpeg +gmp-autoupdate +pulseaudio selinux wayland" RESTRICT="strip" -BDEPEND="app-arch/unzip" +BDEPEND="app-arch/unzip + alsa? ( + !pulseaudio? ( + dev-util/patchelf + ) + )" CDEPEND="alsa? ( !pulseaudio? ( @@ -185,6 +190,13 @@ src_install() { "${MOZILLA_FIVE_HOME}"/firefox-bin \ "${MOZILLA_FIVE_HOME}"/plugin-container + # Patch alsa support + local apulselib= + if use alsa && ! use pulseaudio ; then + apulselib="${EPREFIX}/usr/$(get_libdir)/apulse" + patchelf --set-rpath "${apulselib}" "${ED}${MOZILLA_FIVE_HOME}/libxul.so" || die + fi + # Install policy (currently only used to disable application updates) insinto "${MOZILLA_FIVE_HOME}/distribution" newins "${FILESDIR}"/disable-auto-update.policy.json policies.json diff --git a/www-client/firefox-bin/firefox-bin-81.0.1.ebuild b/www-client/firefox-bin/firefox-bin-81.0.1-r1.ebuild index 78c15285fb38..6f6355a74f05 100644 --- a/www-client/firefox-bin/firefox-bin-81.0.1.ebuild +++ b/www-client/firefox-bin/firefox-bin-81.0.1-r1.ebuild @@ -35,7 +35,12 @@ IUSE="+alsa +ffmpeg +gmp-autoupdate +pulseaudio selinux wayland" RESTRICT="strip" -BDEPEND="app-arch/unzip" +BDEPEND="app-arch/unzip + alsa? ( + !pulseaudio? ( + dev-util/patchelf + ) + )" CDEPEND="alsa? ( !pulseaudio? ( @@ -185,6 +190,13 @@ src_install() { "${MOZILLA_FIVE_HOME}"/firefox-bin \ "${MOZILLA_FIVE_HOME}"/plugin-container + # Patch alsa support + local apulselib= + if use alsa && ! use pulseaudio ; then + apulselib="${EPREFIX}/usr/$(get_libdir)/apulse" + patchelf --set-rpath "${apulselib}" "${ED}${MOZILLA_FIVE_HOME}/libxul.so" || die + fi + # Install policy (currently only used to disable application updates) insinto "${MOZILLA_FIVE_HOME}/distribution" newins "${FILESDIR}"/disable-auto-update.policy.json policies.json |