From 65737cf14a7220bd9a487aa2af4ae0e79bd23e86 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 8 Jan 2018 21:45:04 +0000 Subject: gentoo resync : 08.01.2018 --- www-client/firefox-bin/Manifest | 4 +- .../firefox-bin/firefox-bin-52.5.3-r1.ebuild | 182 +++++++++++++++++++++ www-client/firefox-bin/firefox-bin-52.5.3.ebuild | 182 --------------------- .../firefox-bin/firefox-bin-57.0.4-r1.ebuild | 181 ++++++++++++++++++++ www-client/firefox-bin/firefox-bin-57.0.4.ebuild | 181 -------------------- 5 files changed, 365 insertions(+), 365 deletions(-) create mode 100644 www-client/firefox-bin/firefox-bin-52.5.3-r1.ebuild delete mode 100644 www-client/firefox-bin/firefox-bin-52.5.3.ebuild create mode 100644 www-client/firefox-bin/firefox-bin-57.0.4-r1.ebuild delete mode 100644 www-client/firefox-bin/firefox-bin-57.0.4.ebuild (limited to 'www-client/firefox-bin') diff --git a/www-client/firefox-bin/Manifest b/www-client/firefox-bin/Manifest index b89dafd1c7b9..4442fcdcde47 100644 --- a/www-client/firefox-bin/Manifest +++ b/www-client/firefox-bin/Manifest @@ -175,6 +175,6 @@ DIST firefox-bin_i686-52.5.3.tar.bz2 58548296 BLAKE2B b180ab3a316eac6ba74c062d6b DIST firefox-bin_i686-57.0.4.tar.bz2 56148134 BLAKE2B 6614feccc0dee2c6eeb8798572a1351e05b8b4efed644828df9d7230e42fcad4db957690ba6492338197210f950ef73b6a58f5173b1ff8ed19f7ec4c8ac96dbc SHA512 b641a671d7390c505577fa956bc1452f58f6cc8418b3ccaf25eb8b5bb08799a3a2e1e7113525ad720f710d7022b18901c5234be1a1c372881e4908d2ae419743 DIST firefox-bin_x86_64-52.5.3.tar.bz2 57692607 BLAKE2B 46e0d6d4a5afe7a0f722b3b620bc28295d51ea074b8410d0d1cef72e22955c9d45b0819350e3f4a6cb1343be9a798a62f0b7a709c2be27fd88c53ee9ac62211f SHA512 00d5c8cb8e937991ca46e5cd5119baed9e5ded451870bbbad54639a61d0ae501fc7c3c6c1fc73d3e6ec657045a0094fc766b852f4184f031d7a8e617b1615667 DIST firefox-bin_x86_64-57.0.4.tar.bz2 53631485 BLAKE2B 9f712bf9f12c9becd44d085529282251b4faee594e3d1a50871d29e7231702d5ed9e95db595dab7e5423e0a1c365f45e2f5af7e92e5b1ee78d2aa86597febc5a SHA512 c6e9841fa901f78593d5bd60c3c4616e9a8dff696a5b812bcc4fed52287fe7db6c7bfef85a7433f08b3b940de6418aaf1c7c90dde6cff1cc6c7e0efe439e0ddd -EBUILD firefox-bin-52.5.3.ebuild 5446 BLAKE2B c2ceb3471f0f735bd62578badc959ed89f55e688e9029534ff9a772747b9c9c52fceab987ca28e8467f69a30f0a6d467943f3b9d3620b6dd1eebfb5e8b9dd2d7 SHA512 3bc3701e3c9451e523e6d72f696b3afc5e5c45276c1b198fb9961267b837be231a49f983d46d692c27dbb01b1cf6b05f825e99fdab6d15339747335567877a0c -EBUILD firefox-bin-57.0.4.ebuild 5460 BLAKE2B c31daa5652300f25c4157dc38a1565f9c7e19cbd44dcece470e72237c53d1af68c74ee086f8cb5ceb04573999a995ec23ace92511fd99315b483b4bf2d27a940 SHA512 6ef104295a93ccbfadaf671324766dca81cb980ddc488647bec414808e4aa4267a074a47b85be972162033a68125685e42b9ca4c2d68ceb24c4697bfa1ca9046 +EBUILD firefox-bin-52.5.3-r1.ebuild 5456 BLAKE2B 371f2196fee516a329793967a61fdba45e33e7a8dea2d05228ea0af1c494e214295ce89d3a6eb10e2fc96c94a69868bacb13622b05b625ca6db3d04e1fd6a2b5 SHA512 c8e1d4e26a86784cbde5d12ea4a1c7f52eda797e54cc3b1be2d77b4dc7dc44f111702dc2a1be997b119b587d4f1d93d1d7957ace2d9d375270e0de0fa1b9e08c +EBUILD firefox-bin-57.0.4-r1.ebuild 5470 BLAKE2B 8fb38b37aaf80ec3dc7c40365c7469ae968842f0e1280d7549baa9b576944871a9870667104342043054cf1f8ce30991e0634a69c9b9886f1000ca7d64e1f9b7 SHA512 12c9df8408ce66dba5d95df76ec73fe813d8f4f9697f6b36c1aa969a39bb710aa027909cacb40a224c1da0573636579e2bed2199bbd5cd0e1021ac375f114680 MISC metadata.xml 250 BLAKE2B 9e6643b2a0b90fc083246090047db38d3b9a3b71db8542051307b7e87394135d3337e1ea54b83a0c7474661a0fd07d950385b44cbed6ee95f6e6ad718bd0b062 SHA512 ba5e7c1f6ee117471a3804bc54211e7f89c75e965a865f45f85015a0a28ec7d511ef9bbc196eef8245dc9259f54b04eb3563d83811a293bb946cf0977563892b diff --git a/www-client/firefox-bin/firefox-bin-52.5.3-r1.ebuild b/www-client/firefox-bin/firefox-bin-52.5.3-r1.ebuild new file mode 100644 index 000000000000..fe974f2962aa --- /dev/null +++ b/www-client/firefox-bin/firefox-bin-52.5.3-r1.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +MOZ_ESR=1 + +# Can be updated using scripts/get_langs.sh from mozilla overlay +# Missing when bumped : be +MOZ_LANGS=( ach af an ar as ast az bg bn-BD bn-IN br bs ca cs cy da de +el en en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL +ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko lt +lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl +son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW ) + +# Convert the ebuild version to the upstream mozilla version, used by mozlinguas +MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI +MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI +MOZ_PN="${PN/-bin}" +if [[ ${MOZ_ESR} == 1 ]]; then + # ESR releases have slightly version numbers + MOZ_PV="${MOZ_PV}esr" +fi +MOZ_P="${MOZ_PN}-${MOZ_PV}" + +MOZ_HTTP_URI="http://archive.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" + +inherit eutils pax-utils xdg-utils gnome2-utils mozlinguas-v2 nsplugins + +DESCRIPTION="Firefox Web Browser" +SRC_URI="${SRC_URI} + amd64? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) + x86? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" +HOMEPAGE="http://www.mozilla.com/firefox" +RESTRICT="strip mirror" + +KEYWORDS="-* amd64 x86" +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +IUSE="+ffmpeg +pulseaudio selinux startup-notification" + +DEPEND="app-arch/unzip" +RDEPEND="dev-libs/atk + >=sys-apps/dbus-0.60 + >=dev-libs/dbus-glib-0.72 + >=dev-libs/glib-2.26:2 + media-libs/fontconfig + >=media-libs/freetype-2.4.10 + >=x11-libs/cairo-1.10[X] + x11-libs/gdk-pixbuf + >=x11-libs/gtk+-2.18:2 + >=x11-libs/gtk+-3.4.0:3 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXt + >=x11-libs/pango-1.22.0 + virtual/freedesktop-icon-theme + pulseaudio? ( !> "${ED}"usr/share/applications/${PN}.desktop + fi + + # Install firefox in /opt + dodir ${MOZILLA_FIVE_HOME%/*} + mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die + + # Fix prefs that make no sense for a system-wide install + insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ + doins "${FILESDIR}"/local-settings.js + insinto ${MOZILLA_FIVE_HOME} + newins "${FILESDIR}"/all-gentoo-1.js all-gentoo.js + + # Install language packs + mozlinguas_src_install + + local LANG=${linguas%% *} + if [[ -n ${LANG} && ${LANG} != "en" ]]; then + elog "Setting default locale to ${LANG}" + echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ + >> "${ED}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ + die "sed failed to change locale" + fi + + # Create /usr/bin/firefox-bin + dodir /usr/bin/ + local apulselib=$(usex pulseaudio "/usr/$(get_libdir)/apulse:" "") + cat <<-EOF >"${ED}"usr/bin/${PN} + #!/bin/sh + unset LD_PRELOAD + LD_LIBRARY_PATH="${apulselib}/opt/firefox/" \\ + GTK_PATH=/usr/$(get_libdir)/gtk-3.0/ \\ + exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" + EOF + fperms 0755 /usr/bin/${PN} + + # revdep-rebuild entry + insinto /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN} + doins "${T}"/10${PN} || die + + # Plugins dir + share_plugins_dir + + # Required in order to use plugins and even run firefox on hardened. + pax-mark mr "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ + || ! has_version 'net-misc/curl'; then + einfo + einfo "For using the crashreporter, you need gnome-base/gconf," + einfo "gnome-base/orbit and net-misc/curl emerged." + einfo + fi + use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed" + use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without pulseaudio installed" + + # Update mimedb for the new .desktop file + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/www-client/firefox-bin/firefox-bin-52.5.3.ebuild b/www-client/firefox-bin/firefox-bin-52.5.3.ebuild deleted file mode 100644 index 76afcebbc277..000000000000 --- a/www-client/firefox-bin/firefox-bin-52.5.3.ebuild +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MOZ_ESR=1 - -# Can be updated using scripts/get_langs.sh from mozilla overlay -# Missing when bumped : be -MOZ_LANGS=( ach af an ar as ast az bg bn-BD bn-IN br bs ca cs cy da de -el en en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL -ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko lt -lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl -son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW ) - -# Convert the ebuild version to the upstream mozilla version, used by mozlinguas -MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI -MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI -MOZ_PN="${PN/-bin}" -if [[ ${MOZ_ESR} == 1 ]]; then - # ESR releases have slightly version numbers - MOZ_PV="${MOZ_PV}esr" -fi -MOZ_P="${MOZ_PN}-${MOZ_PV}" - -MOZ_HTTP_URI="http://archive.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" - -inherit eutils pax-utils xdg-utils gnome2-utils mozlinguas-v2 nsplugins - -DESCRIPTION="Firefox Web Browser" -SRC_URI="${SRC_URI} - amd64? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) - x86? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" -HOMEPAGE="http://www.mozilla.com/firefox" -RESTRICT="strip mirror" - -KEYWORDS="-* amd64 x86" -SLOT="0" -LICENSE="MPL-2.0 GPL-2 LGPL-2.1" -IUSE="+ffmpeg +pulseaudio selinux startup-notification" - -DEPEND="app-arch/unzip" -RDEPEND="dev-libs/atk - >=sys-apps/dbus-0.60 - >=dev-libs/dbus-glib-0.72 - >=dev-libs/glib-2.26:2 - media-libs/fontconfig - >=media-libs/freetype-2.4.10 - >=x11-libs/cairo-1.10[X] - x11-libs/gdk-pixbuf - >=x11-libs/gtk+-2.18:2 - >=x11-libs/gtk+-3.4.0:3 - x11-libs/libX11 - x11-libs/libXcomposite - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXrender - x11-libs/libXt - >=x11-libs/pango-1.22.0 - virtual/freedesktop-icon-theme - pulseaudio? ( !> "${ED}"usr/share/applications/${PN}.desktop - fi - - # Install firefox in /opt - dodir ${MOZILLA_FIVE_HOME%/*} - mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die - - # Fix prefs that make no sense for a system-wide install - insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ - doins "${FILESDIR}"/local-settings.js - insinto ${MOZILLA_FIVE_HOME} - newins "${FILESDIR}"/all-gentoo-1.js all-gentoo.js - - # Install language packs - mozlinguas_src_install - - local LANG=${linguas%% *} - if [[ -n ${LANG} && ${LANG} != "en" ]]; then - elog "Setting default locale to ${LANG}" - echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ - >> "${ED}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ - die "sed failed to change locale" - fi - - # Create /usr/bin/firefox-bin - dodir /usr/bin/ - local apulselib=$(usex pulseaudio "/usr/$(get_libdir)/apulse:" "") - cat <<-EOF >"${ED}"usr/bin/${PN} - #!/bin/sh - unset LD_PRELOAD - LD_LIBRARY_PATH="${apulselib}/opt/firefox/" \\ - GTK_PATH=/usr/lib/gtk-3.0/ \\ - exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" - EOF - fperms 0755 /usr/bin/${PN} - - # revdep-rebuild entry - insinto /etc/revdep-rebuild - echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN} - doins "${T}"/10${PN} || die - - # Plugins dir - share_plugins_dir - - # Required in order to use plugins and even run firefox on hardened. - pax-mark mr "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ - || ! has_version 'net-misc/curl'; then - einfo - einfo "For using the crashreporter, you need gnome-base/gconf," - einfo "gnome-base/orbit and net-misc/curl emerged." - einfo - fi - use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed" - use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without pulseaudio installed" - - # Update mimedb for the new .desktop file - xdg_desktop_database_update - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/www-client/firefox-bin/firefox-bin-57.0.4-r1.ebuild b/www-client/firefox-bin/firefox-bin-57.0.4-r1.ebuild new file mode 100644 index 000000000000..e3d638ecc9df --- /dev/null +++ b/www-client/firefox-bin/firefox-bin-57.0.4-r1.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# Can be updated using scripts/get_langs.sh from mozilla overlay +# Missing when bumped : be +MOZ_LANGS=( ach af an ar as ast az bg bn-BD bn-IN br bs ca cs cy da de +el en en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL +ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko lt +lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl +son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW ) + +# Convert the ebuild version to the upstream mozilla version, used by mozlinguas +MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI +MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI +MOZ_PN="${PN/-bin}" +if [[ ${MOZ_ESR} == 1 ]]; then + # ESR releases have slightly version numbers + MOZ_PV="${MOZ_PV}esr" +fi +MOZ_P="${MOZ_PN}-${MOZ_PV}" + +MOZ_HTTP_URI="http://archive.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" + +inherit eutils pax-utils xdg-utils gnome2-utils mozlinguas-v2 nsplugins + +DESCRIPTION="Firefox Web Browser" +SRC_URI="${SRC_URI} + amd64? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) + x86? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" +HOMEPAGE="http://www.mozilla.com/firefox" +RESTRICT="strip mirror" + +KEYWORDS="-* ~amd64 ~x86" +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +IUSE="+ffmpeg +pulseaudio selinux startup-notification" + +DEPEND="app-arch/unzip" +RDEPEND="dev-libs/atk + >=sys-apps/dbus-0.60 + >=dev-libs/dbus-glib-0.72 + >=dev-libs/glib-2.26:2 + media-libs/fontconfig + >=media-libs/freetype-2.4.10 + >=x11-libs/cairo-1.10[X] + x11-libs/gdk-pixbuf + >=x11-libs/gtk+-2.18:2 + >=x11-libs/gtk+-3.4.0:3 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXt + >=x11-libs/pango-1.22.0 + virtual/freedesktop-icon-theme + pulseaudio? ( !> "${ED}"usr/share/applications/${PN}.desktop + fi + + # Install firefox in /opt + dodir ${MOZILLA_FIVE_HOME%/*} + mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die + + # Fix prefs that make no sense for a system-wide install + insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ + doins "${FILESDIR}"/local-settings.js + insinto ${MOZILLA_FIVE_HOME} + newins "${FILESDIR}"/all-gentoo-1.js all-gentoo.js + + # Install language packs + mozlinguas_src_install + + local LANG=${linguas%% *} + if [[ -n ${LANG} && ${LANG} != "en" ]]; then + elog "Setting default locale to ${LANG}" + echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ + >> "${ED}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ + die "sed failed to change locale" + fi + + # Create /usr/bin/firefox-bin + dodir /usr/bin/ + local apulselib=$(usex pulseaudio "/usr/$(get_libdir)/apulse:" "") + cat <<-EOF >"${ED}"usr/bin/${PN} + #!/bin/sh + unset LD_PRELOAD + LD_LIBRARY_PATH="${apulselib}/opt/firefox/" \\ + GTK_PATH=/usr/$(get_libdir)/gtk-3.0/ \\ + exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" + EOF + fperms 0755 /usr/bin/${PN} + + # revdep-rebuild entry + insinto /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN} + doins "${T}"/10${PN} || die + + # Plugins dir, still used for flash + share_plugins_dir + + # Required in order to use plugins and even run firefox on hardened. + pax-mark mr "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ + || ! has_version 'net-misc/curl'; then + einfo + einfo "For using the crashreporter, you need gnome-base/gconf," + einfo "gnome-base/orbit and net-misc/curl emerged." + einfo + fi + use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed" + use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without pulseaudio installed" + + # Update mimedb for the new .desktop file + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/www-client/firefox-bin/firefox-bin-57.0.4.ebuild b/www-client/firefox-bin/firefox-bin-57.0.4.ebuild deleted file mode 100644 index 67998ff7ceb0..000000000000 --- a/www-client/firefox-bin/firefox-bin-57.0.4.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -# Can be updated using scripts/get_langs.sh from mozilla overlay -# Missing when bumped : be -MOZ_LANGS=( ach af an ar as ast az bg bn-BD bn-IN br bs ca cs cy da de -el en en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL -ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko lt -lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl -son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW ) - -# Convert the ebuild version to the upstream mozilla version, used by mozlinguas -MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI -MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI -MOZ_PN="${PN/-bin}" -if [[ ${MOZ_ESR} == 1 ]]; then - # ESR releases have slightly version numbers - MOZ_PV="${MOZ_PV}esr" -fi -MOZ_P="${MOZ_PN}-${MOZ_PV}" - -MOZ_HTTP_URI="http://archive.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" - -inherit eutils pax-utils xdg-utils gnome2-utils mozlinguas-v2 nsplugins - -DESCRIPTION="Firefox Web Browser" -SRC_URI="${SRC_URI} - amd64? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) - x86? ( ${MOZ_HTTP_URI%/}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" -HOMEPAGE="http://www.mozilla.com/firefox" -RESTRICT="strip mirror" - -KEYWORDS="-* ~amd64 ~x86" -SLOT="0" -LICENSE="MPL-2.0 GPL-2 LGPL-2.1" -IUSE="+ffmpeg +pulseaudio selinux startup-notification" - -DEPEND="app-arch/unzip" -RDEPEND="dev-libs/atk - >=sys-apps/dbus-0.60 - >=dev-libs/dbus-glib-0.72 - >=dev-libs/glib-2.26:2 - media-libs/fontconfig - >=media-libs/freetype-2.4.10 - >=x11-libs/cairo-1.10[X] - x11-libs/gdk-pixbuf - >=x11-libs/gtk+-2.18:2 - >=x11-libs/gtk+-3.4.0:3 - x11-libs/libX11 - x11-libs/libXcomposite - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXrender - x11-libs/libXt - >=x11-libs/pango-1.22.0 - virtual/freedesktop-icon-theme - pulseaudio? ( !> "${ED}"usr/share/applications/${PN}.desktop - fi - - # Install firefox in /opt - dodir ${MOZILLA_FIVE_HOME%/*} - mv "${S}" "${ED}"${MOZILLA_FIVE_HOME} || die - - # Fix prefs that make no sense for a system-wide install - insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ - doins "${FILESDIR}"/local-settings.js - insinto ${MOZILLA_FIVE_HOME} - newins "${FILESDIR}"/all-gentoo-1.js all-gentoo.js - - # Install language packs - mozlinguas_src_install - - local LANG=${linguas%% *} - if [[ -n ${LANG} && ${LANG} != "en" ]]; then - elog "Setting default locale to ${LANG}" - echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ - >> "${ED}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ - die "sed failed to change locale" - fi - - # Create /usr/bin/firefox-bin - dodir /usr/bin/ - local apulselib=$(usex pulseaudio "/usr/$(get_libdir)/apulse:" "") - cat <<-EOF >"${ED}"usr/bin/${PN} - #!/bin/sh - unset LD_PRELOAD - LD_LIBRARY_PATH="${apulselib}/opt/firefox/" \\ - GTK_PATH=/usr/lib/gtk-3.0/ \\ - exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" - EOF - fperms 0755 /usr/bin/${PN} - - # revdep-rebuild entry - insinto /etc/revdep-rebuild - echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN} - doins "${T}"/10${PN} || die - - # Plugins dir, still used for flash - share_plugins_dir - - # Required in order to use plugins and even run firefox on hardened. - pax-mark mr "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ - || ! has_version 'net-misc/curl'; then - einfo - einfo "For using the crashreporter, you need gnome-base/gconf," - einfo "gnome-base/orbit and net-misc/curl emerged." - einfo - fi - use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed" - use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without pulseaudio installed" - - # Update mimedb for the new .desktop file - xdg_desktop_database_update - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} -- cgit v1.2.3