commit:     70a9fcbb41eb962d902a709ea122dc3e294905e6
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 21:25:06 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed May  3 21:25:06 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=70a9fcbb

firefox: sync ebuilds with gentoo repo

 ...{firefox-52.1.0.ebuild => firefox-52.1.0-r1.ebuild} | 12 +++++++++---
 www-client/firefox/firefox-53.0.ebuild                 | 18 ++++++++++++------
 2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/www-client/firefox/firefox-52.1.0.ebuild 
b/www-client/firefox/firefox-52.1.0-r1.ebuild
similarity index 96%
rename from www-client/firefox/firefox-52.1.0.ebuild
rename to www-client/firefox/firefox-52.1.0-r1.ebuild
index dd2a00b..91b2a43 100644
--- a/www-client/firefox/firefox-52.1.0.ebuild
+++ b/www-client/firefox/firefox-52.1.0-r1.ebuild
@@ -366,15 +366,15 @@ pkg_preinst() {
 
        # if the apulse libs are available in MOZILLA_FIVE_HOME then apulse
        # doesn't need to be forced into the LD_LIBRARY_PATH
-       if use pulseaudio && [ -d ${EPREFIX}/usr/$(get_libdir)/apulse ] ; then
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
                einfo "APULSE found - Generating library symlinks for sound 
support"
                local lib
                pushd "${ED}"${MOZILLA_FIVE_HOME} &>/dev/null || die
-               for lib in "${EPREFIX}"/usr/$(get_libdir)/apulse/libpulse* ; do
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
                        # a quickpkg rolled by hand will grab symlinks as part 
of the package,
                        # so we need to avoid creating them if they already 
exist.
                        if ! [ -L ${lib##*/} ]; then
-                               ln -s "${lib}" || die
+                               ln -s "${lib}" ${lib##*/} || die
                        fi
                done
                popd &>/dev/null || die
@@ -392,6 +392,12 @@ pkg_postinst() {
                local plugin
                for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; 
done
        fi
+
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
+               elog "Apulse was detected at merge time on this system and so 
it will always be"
+               elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
+               elog "media-sound/apulse."
+       fi
 }
 
 pkg_postrm() {

diff --git a/www-client/firefox/firefox-53.0.ebuild 
b/www-client/firefox/firefox-53.0.ebuild
index f56c0e0..a911896 100644
--- a/www-client/firefox/firefox-53.0.ebuild
+++ b/www-client/firefox/firefox-53.0.ebuild
@@ -24,7 +24,7 @@ if [[ ${MOZ_ESR} == 1 ]]; then
 fi
 
 # Patch version
-PATCH="${PN}-53.0-patches-01"
+PATCH="${PN}-53.0-patches-02"
 MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases";
 
 MOZCONFIG_OPTIONAL_WIFI=1
@@ -38,7 +38,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 
~amd64-linux ~x86-lin
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist +gmp-autoupdate hardened hwaccel jack pgo rust selinux test"
+IUSE="bindist +gmp-autoupdate hardened hwaccel jack nsplugin pgo rust selinux 
test"
 RESTRICT="!bindist? ( bindist )"
 
 PATCH_URIS=( 
https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/${PATCH}.tar.xz
 )
@@ -296,6 +296,12 @@ src_install() {
                
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
                || die
 
+       if use nsplugin; then
+               echo "pref(\"plugin.load_flash_only\", false);" >> \
+                       
"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+                       || die
+       fi
+
        local plugin
        use gmp-autoupdate || for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
                echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
@@ -365,15 +371,15 @@ pkg_preinst() {
 
        # if the apulse libs are available in MOZILLA_FIVE_HOME then apulse
        # doesn't need to be forced into the LD_LIBRARY_PATH
-       if use pulseaudio && [ -d "${EPREFIX}"/usr/$(get_libdir)/apulse ] ; then
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
                einfo "APULSE found - Generating library symlinks for sound 
support"
                local lib
                pushd "${ED}"${MOZILLA_FIVE_HOME} &>/dev/null || die
-               for lib in "${EPREFIX}"/usr/$(get_libdir)/apulse/libpulse* ; do
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
                        # a quickpkg rolled by hand will grab symlinks as part 
of the package,
                        # so we need to avoid creating them if they already 
exist.
                        if ! [ -L ${lib##*/} ]; then
-                               ln -s "${lib}" || die
+                               ln -s "${lib}" ${lib##*/} || die
                        fi
                done
                popd &>/dev/null || die
@@ -392,7 +398,7 @@ pkg_postinst() {
                for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; 
done
        fi
 
-       if use pulseaudio && [ -d "${EPREFIX}"/usr/$(get_libdir)/apulse ]; then
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.9"; then
                elog "Apulse was detected at merge time on this system and so 
it will always be"
                elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
                elog "media-sound/apulse."

Reply via email to