* [gentoo-commits] proj/mozilla:master commit in: net-libs/xulrunner/files/, www-client/firefox/, www-client/firefox/files/icon/, ...
@ 2011-07-06 4:22 Nirbheek Chauhan
0 siblings, 0 replies; only message in thread
From: Nirbheek Chauhan @ 2011-07-06 4:22 UTC (permalink / raw
To: gentoo-commits
commit: e44f334a33ae97e6a57311120a5e304ef14814fe
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 6 04:16:43 2011 +0000
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Wed Jul 6 04:16:43 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=e44f334a
Remove obsolete xulrunner and firefox ebuilds
---
net-libs/xulrunner/Manifest | 4 -
.../xulrunner/files/xulrunner-default-prefs.js | 14 -
net-libs/xulrunner/xulrunner-5.0_beta5.ebuild | 200 --------------
www-client/firefox/Manifest | 9 -
www-client/firefox/files/firefox-default-prefs.js | 2 -
.../firefox/files/fix-preferences-gentoo.patch | 10 -
.../files/fix_omnijar_startupcache_breakage.patch | 27 --
.../files/icon/firefox-1.5-unbranded.desktop | 9 -
www-client/firefox/files/icon/firefox-1.5.desktop | 9 -
www-client/firefox/files/icon/firefox.desktop | 9 -
www-client/firefox/firefox-5.0_beta5.ebuild | 284 --------------------
11 files changed, 0 insertions(+), 577 deletions(-)
diff --git a/net-libs/xulrunner/Manifest b/net-libs/xulrunner/Manifest
deleted file mode 100644
index 4bb9231..0000000
--- a/net-libs/xulrunner/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX xulrunner-default-prefs.js 709 RMD160 a4d062f75c17552545267ec3fe2f6b54073dafbd SHA1 580128e9edf8021fdbbca2c91abf63cb83bab2c7 SHA256 e6850b0a22f7d3889b49ec4a79a3c4d3d077edd98c8f0ffdc26e30bc70bb4b09
-DIST firefox-5.0b5.source.tar.bz2 68713666 RMD160 00df8b75ef2b06fa62e58421cbe7a5df8011c4ce SHA1 744e34180dd7ce07428324c9011e5426e235228d SHA256 1ffaa93394e9b582e5fb0bde7f514dc5b0b57e0d20714753a42e76ee727b10e8
-DIST xulrunner-5.0-patches-0.3.tar.bz2 17651 RMD160 3b7ae9eff944ecfc8daf2b4e5756793a8818f676 SHA1 2bada1fd15efd811666260b82379de4da7ae37ae SHA256 cbca0cfd802095054d6b22648587aee4c83f616a0c9df384c5f2dc6364167715
-EBUILD xulrunner-5.0_beta5.ebuild 5935 RMD160 932a0d0ab0ba0b61714426fe3b0213de6f180723 SHA1 5b472701e5c415a877c7bc71de5d11403c5e5fcf SHA256 6633aca442fd220bcfe709ce70e8136ff8ceb822f34243cff52b71f856f159e6
diff --git a/net-libs/xulrunner/files/xulrunner-default-prefs.js b/net-libs/xulrunner/files/xulrunner-default-prefs.js
deleted file mode 100644
index 9286a6a..0000000
--- a/net-libs/xulrunner/files/xulrunner-default-prefs.js
+++ /dev/null
@@ -1,14 +0,0 @@
-pref("app.update.enabled", false);
-pref("app.update.autoInstallEnabled", false);
-pref("browser.display.use_system_colors", true);
-pref("browser.link.open_external", 3);
-pref("general.smoothScroll", true);
-pref("general.autoScroll", false);
-pref("browser.tabs.tabMinWidth", 15);
-pref("browser.backspace_action", 0);
-pref("browser.urlbar.hideGoButton", true);
-pref("accessibility.typeaheadfind", true);
-pref("browser.shell.checkDefaultBrowser", false);
-pref("browser.EULA.override", true);
-pref("intl.locale.matchOS", true);
-pref("general.useragent.locale", "chrome://global/locale/intl.properties");
diff --git a/net-libs/xulrunner/xulrunner-5.0_beta5.ebuild b/net-libs/xulrunner/xulrunner-5.0_beta5.ebuild
deleted file mode 100644
index 231effd..0000000
--- a/net-libs/xulrunner/xulrunner-5.0_beta5.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-2.0.1-r1.ebuild,v 1.1 2011/05/16 00:35:06 anarchy Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1"
-
-inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib autotools python versionator pax-utils prefix
-
-MAJ_XUL_PV="$(get_version_component_range 1-2)" # from mozilla-* branch name
-MAJ_FF_PV="5.0"
-FF_PV="${PV/${MAJ_XUL_PV}/${MAJ_FF_PV}}" # 3.7_alpha6, 3.6.3, etc.
-FF_PV="${FF_PV/_alpha/a}" # Handle alpha for SRC_URI
-FF_PV="${FF_PV/_beta/b}" # Handle beta for SRC_URI
-FF_PV="${FF_PV/_rc/rc}" # Handle rc for SRC_URI
-CHANGESET="e56ecd8b3a68"
-PATCH="${PN}-5.0-patches-0.3"
-
-DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications"
-HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner"
-
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
-SLOT="1.9"
-LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-IUSE="+crashreporter gconf +ipc system-sqlite +webm"
-
-REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
-FTP_URI="ftp://ftp.mozilla.org/pub/firefox/releases/"
-# More URIs appended below...
-SRC_URI="http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
-
-ASM_DEPEND=">=dev-lang/yasm-1.1.0"
-
-RDEPEND="
- >=sys-devel/binutils-2.16.1
- >=dev-libs/nss-3.12.9
- >=dev-libs/nspr-4.8.7
- >=dev-libs/glib-2.26
- gconf? ( >=gnome-base/gconf-1.2.1:2 )
- media-libs/libpng[apng]
- dev-libs/libffi
- system-sqlite? ( >=dev-db/sqlite-3.7.4[fts3,secure-delete,unlock-notify,debug=] )
- webm? ( media-libs/libvpx
- media-libs/alsa-lib
- media-libs/mesa )
- !www-plugins/weave"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- webm? ( amd64? ( ${ASM_DEPEND} )
- x86? ( ${ASM_DEPEND} ) )"
-
-if [[ ${PV} =~ alpha ]]; then
- # hg snapshot tarball
- SRC_URI="${SRC_URI}
- http://dev.gentoo.org/~anarchy/mozilla/firefox/firefox-${FF_PV}_${CHANGESET}.source.tar.bz2"
- S="${WORKDIR}/mozilla-central"
-elif [[ ${PV} =~ beta ]]; then
- SRC_URI="${SRC_URI}
- ${FTP_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
- S="${WORKDIR}/mozilla-beta"
-else
- SRC_URI="${SRC_URI}
- ${REL_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
- S="${WORKDIR}/mozilla-${MAJ_XUL_PV}"
-fi
-
-pkg_setup() {
- moz_pkgsetup
-}
-
-src_prepare() {
- # Apply our patches
- EPATCH_SUFFIX="patch" \
- EPATCH_FORCE="yes" \
- epatch "${WORKDIR}"
-
- # Allow user to apply any additional patches without modifing ebuild
- epatch_user
-
- eprefixify \
- xpcom/build/nsXPCOMPrivate.h \
-
- # fix double symbols due to double -ljemalloc
- sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \
- xulrunner/stub/Makefile.in || die
-
- # Same as in config/autoconf.mk.in
- MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}"
- SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_XUL_PV}/sdk"
-
- # Gentoo install dirs
- sed -i -e "s:@PV@:${MAJ_XUL_PV}:" "${S}"/config/autoconf.mk.in \
- || die "${MAJ_XUL_PV} sed failed!"
-
- # Enable gnomebreakpad
- if use debug ; then
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
- "${S}"/build/unix/run-mozilla.sh || die "sed failed!"
- fi
-
- # Disable gnomevfs extension
- sed -i -e "s:gnomevfs::" "${S}/"xulrunner/confvars.sh \
- || die "Failed to remove gnomevfs extension"
-
- eautoreconf
-
- cd js/src
- eautoreconf
-}
-
-src_configure() {
- ####################################
- #
- # mozconfig, CFLAGS and CXXFLAGS setup
- #
- ####################################
-
- mozconfig_init
- mozconfig_config
-
- MEXTENSIONS="default"
-
- MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}"
-
- # It doesn't compile on alpha without this LDFLAGS
- use alpha && append-ldflags "-Wl,--no-relax"
-
- mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
- mozconfig_annotate '' --disable-mailnews
- mozconfig_annotate '' --enable-canvas
- mozconfig_annotate '' --enable-safe-browsing
- mozconfig_annotate '' --with-system-png
- mozconfig_annotate '' --enable-system-ffi
- #mozconfig_annotate '' --enable-chrome-format=jar
- mozconfig_use_enable system-sqlite
- mozconfig_use_enable gconf
-
- # Finalize and report settings
- mozconfig_final
-
- if [[ $(gcc-major-version) -lt 4 ]]; then
- append-flags -fno-stack-protector
- fi
-
- # Ensure we do not fail on i{3,5,7} processors that support -mavx
- if use amd64 || use x86; then
- append-flags -mno-avx
- fi
-
- ####################################
- #
- # Configure and build
- #
- ####################################
-
- # Disable no-print-directory
- MAKEOPTS=${MAKEOPTS/--no-print-directory/}
-
- # Ensure that are plugins dir is enabled as default
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
- "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
-
- # hack added to workaround bug 299905 on hosts with libc that doesn't
- # support tls, (probably will only hit this condition with Gentoo Prefix)
- tc-has-tls -l || export ac_cv_thread_keyword=no
-
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
-}
-
-src_install() {
- # Add our defaults to xulrunner and out of firefox
- cp "${FILESDIR}"/xulrunner-default-prefs.js \
- "${S}/dist/bin/defaults/pref/all-gentoo.js" || \
- die "failed to cp xulrunner-default-prefs.js"
-
- emake DESTDIR="${D}" install || die "emake install failed"
-
- rm "${ED}"/usr/bin/xulrunner
-
- MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_XUL_PV}"
- SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_XUL_PV}/sdk"
-
- if has_multilib_profile; then
- local config
- for config in "${ED}"/etc/gre.d/*.system.conf ; do
- mv "${config}" "${config%.conf}.${CHOST}.conf"
- done
- fi
-
- dodir /usr/bin
- dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_XUL_PV}" || die
-
- # env.d file for ld search path
- dodir /etc/env.d
- echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed"
-
- pax-mark m "${ED}"/${MOZLIBDIR}/{plugin-container,xpcshell}
-}
diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
deleted file mode 100644
index 7666456..0000000
--- a/www-client/firefox/Manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-AUX firefox-default-prefs.js 95 RMD160 805cdfec6fb31c224322cb71125547ad7a515f49 SHA1 7fab69d85b12a9f1b0c87fbb1821bdafd7485ac9 SHA256 8bc4cb870bc402db1f20b135a689f8c5dbfa5de8f1755b1926198d627c12c5f1
-AUX fix-preferences-gentoo.patch 426 RMD160 83075ec3c2e4c39ba298096bd08447bb94cad34d SHA1 ffff69bcff712483d1962ce04a700748fdab24f5 SHA256 7edae5ea1efb042412d02ef00c51f5e55c4499751c240b48c7b07f69cc420d94
-AUX fix_omnijar_startupcache_breakage.patch 889 RMD160 3f37d6418d6119be026949487ce5eb50c84e3880 SHA1 cbf99c183522e7bc2d6d9ad4cd38aee00b4f7a10 SHA256 0eee0cc14b1b4ad491ad1179c442e6fea65bb5fdcd0d6f20daf97d865a28a696
-AUX icon/firefox-1.5-unbranded.desktop 258 RMD160 32ebb016d6a4d3d2728c031f3b3762796e02f5d3 SHA1 69820d445d06b90d7ac35ffd39dad5926caa0862 SHA256 f2bf5c237a5c56b443c20fd16d3da429bf3b99e9fe27b661a1a462aa46ed25d3
-AUX icon/firefox-1.5.desktop 255 RMD160 4ef1cf548f11057274620b82f0728958a3424bea SHA1 6a440f817072fb60516c1a1d999dffb6d3fa1583 SHA256 9bf6e1264d986c68d64831d166ed6b506bff6df8b56d21bfc166aee09cbc753f
-AUX icon/firefox.desktop 276 RMD160 92a5671cd09e399b3330c4be31b7ac7583747031 SHA1 b757763670a00982f3cb38b8d41d7faa6eee3818 SHA256 06565ade11b6e4b448cf10339696c43f31e73cb6824491094bb6e0ab902c7cf5
-DIST firefox-5.0-patches-0.3.tar.bz2 14956 RMD160 905688afd3339d791faeacd4930022bcc92d146d SHA1 8c7fa871bef5e02a71d4fac195ce4c8ab8ce0eda SHA256 f0d72278018ed443ca1fe07fd69e612fc3bf9a0e3ee6fc15c5a1700df3126eef
-DIST firefox-5.0b5.source.tar.bz2 68713666 RMD160 00df8b75ef2b06fa62e58421cbe7a5df8011c4ce SHA1 744e34180dd7ce07428324c9011e5426e235228d SHA256 1ffaa93394e9b582e5fb0bde7f514dc5b0b57e0d20714753a42e76ee727b10e8
-EBUILD firefox-5.0_beta5.ebuild 8459 RMD160 1d9af6f0f8957cf6aaccd884542046910c2664ac SHA1 a38df17dd38853293f0fa590f432bfc1a9836f6f SHA256 adca9034ab837f87229094ea7d3c47e111735dbcc6a74cd8300768ccd22fdea9
diff --git a/www-client/firefox/files/firefox-default-prefs.js b/www-client/firefox/files/firefox-default-prefs.js
deleted file mode 100644
index f7c031e..0000000
--- a/www-client/firefox/files/firefox-default-prefs.js
+++ /dev/null
@@ -1,2 +0,0 @@
-pref("browser.tabs.tabMinWidth", 15);
-pref("browser.backspace_action", 0);
diff --git a/www-client/firefox/files/fix-preferences-gentoo.patch b/www-client/firefox/files/fix-preferences-gentoo.patch
deleted file mode 100644
index a8ba90f..0000000
--- a/www-client/firefox/files/fix-preferences-gentoo.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/browser/installer/package-manifest.in 2011-03-24 23:01:23.543000001 -0500
-+++ b/browser/installer/package-manifest.in 2011-03-24 23:02:01.927000001 -0500
-@@ -444,6 +444,7 @@
-
- ; [Default Preferences]
- ; All the pref files must be part of base to prevent migration bugs
-+@BINPATH@/@PREF_DIR@/all-gentoo.js
- @BINPATH@/@PREF_DIR@/firefox.js
- @BINPATH@/@PREF_DIR@/firefox-branding.js
- @BINPATH@/@PREF_DIR@/channel-prefs.js
diff --git a/www-client/firefox/files/fix_omnijar_startupcache_breakage.patch b/www-client/firefox/files/fix_omnijar_startupcache_breakage.patch
deleted file mode 100644
index 038f872..0000000
--- a/www-client/firefox/files/fix_omnijar_startupcache_breakage.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-# HG changeset patch
-# Parent 321c235ffaf41a77747672f46c43aa024490b8e4
-
-diff --git a/browser/installer/Makefile.in b/browser/installer/Makefile.in
---- a/browser/installer/Makefile.in
-+++ b/browser/installer/Makefile.in
-@@ -118,9 +118,8 @@
- endif
-
- ifneq (1_,$(if $(CROSS_COMPILE),1,0)_$(UNIVERSAL_BINARY))
--ifdef RUN_TEST_PROGRAM
--_ABS_RUN_TEST_PROGRAM = $(call core_abspath,$(RUN_TEST_PROGRAM))
--endif
-+ifndef RUN_TEST_PROGRAM
-+_ABS_RUN_TEST_PROGRAM = /usr/lib64/xulrunner-devel-5.0
-
- GENERATE_CACHE = \
- $(_ABS_RUN_TEST_PROGRAM) $(_ABS_DIST)/bin/xpcshell$(BIN_SUFFIX) -g "$$PWD" -f $(topsrcdir)/browser/installer/precompile_cache.js -e 'populate_startupcache("omni.jar", "startupCache.zip");' && \
-@@ -130,6 +129,7 @@
- find jsloader | xargs touch -t 201001010000 && \
- $(ZIP) -r9mX omni.jar jsloader
- endif
-+endif
-
- include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
-
-
diff --git a/www-client/firefox/files/icon/firefox-1.5-unbranded.desktop b/www-client/firefox/files/icon/firefox-1.5-unbranded.desktop
deleted file mode 100644
index dff2d63..0000000
--- a/www-client/firefox/files/icon/firefox-1.5-unbranded.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=Bon Echo
-Comment=Web Browser
-Exec=/usr/bin/firefox %U
-Icon=firefox-icon-unbranded
-Terminal=false
-Type=Application
-MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
-Categories=Network;WebBrowser;
diff --git a/www-client/firefox/files/icon/firefox-1.5.desktop b/www-client/firefox/files/icon/firefox-1.5.desktop
deleted file mode 100644
index 98d5fdf..0000000
--- a/www-client/firefox/files/icon/firefox-1.5.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=Mozilla Firefox
-Comment=Web Browser
-Exec=/usr/bin/firefox %U
-Icon=firefox-icon
-Terminal=false
-Type=Application
-MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
-Categories=Network;WebBrowser;
diff --git a/www-client/firefox/files/icon/firefox.desktop b/www-client/firefox/files/icon/firefox.desktop
deleted file mode 100644
index 35999a8..0000000
--- a/www-client/firefox/files/icon/firefox.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=@NAME@
-Comment=Web Browser
-Exec=firefox %U
-Icon=@ICON@
-Terminal=false
-Type=Application
-MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
-Categories=Network;WebBrowser;
diff --git a/www-client/firefox/firefox-5.0_beta5.ebuild b/www-client/firefox/firefox-5.0_beta5.ebuild
deleted file mode 100644
index d7f267b..0000000
--- a/www-client/firefox/firefox-5.0_beta5.ebuild
+++ /dev/null
@@ -1,284 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-4.0-r1.ebuild,v 1.1 2011/03/23 00:45:30 nirbheek Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1"
-
-inherit flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension versionator python
-
-MAJ_XUL_PV="5.0"
-MAJ_FF_PV="$(get_version_component_range 1-2)" # 3.5, 3.6, 4.0, etc.
-XUL_PV="${MAJ_XUL_PV}${PV/${MAJ_FF_PV}/}" # 1.9.3_alpha6, 1.9.2.3, etc.
-FF_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
-FF_PV="${FF_PV/_beta/b}" # Handle beta for SRC_URI
-FF_PV="${FF_PV/_rc/rc}" # Handle rc for SRC_URI
-CHANGESET="e56ecd8b3a68"
-PATCH="${PN}-5.0-patches-0.3"
-
-DESCRIPTION="Firefox Web Browser"
-HOMEPAGE="http://www.mozilla.com/firefox"
-
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
-SLOT="0"
-LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-IUSE="bindist +ipc system-sqlite +webm"
-
-REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
-FTP_URI="ftp://ftp.mozilla.org/pub/firefox/releases/"
-# More URIs appended below...
-SRC_URI="http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
-
-ASM_DEPEND=">=dev-lang/yasm-1.1"
-
-RDEPEND="
- >=sys-devel/binutils-2.16.1
- >=dev-libs/nss-3.12.9
- >=dev-libs/nspr-4.8.7
- >=dev-libs/glib-2.26
- media-libs/libpng[apng]
- dev-libs/libffi
- system-sqlite? ( >=dev-db/sqlite-3.7.4[fts3,secure-delete,unlock-notify,debug=] )
- ~net-libs/xulrunner-${XUL_PV}[wifi=,libnotify=,system-sqlite=,webm=]
- webm? ( media-libs/libvpx
- media-libs/alsa-lib )"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- webm? ( x86? ( ${ASM_DEPEND} )
- amd64? ( ${ASM_DEPEND} ) )"
-
-# No source releases for alpha|beta
-if [[ ${PV} =~ alpha ]]; then
- SRC_URI="${SRC_URI}
- http://dev.gentoo.org/~anarchy/mozilla/firefox/firefox-${FF_PV}_${CHANGESET}.source.tar.bz2"
- S="${WORKDIR}/mozilla-central"
-elif [[ ${PV} =~ beta ]]; then
- SRC_URI="${SRC_URI}
- ${FTP_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
- S="${WORKDIR}/mozilla-beta"
-else
- SRC_URI="${SRC_URI}
- ${REL_URI}/${FF_PV}/source/firefox-${FF_PV}.source.tar.bz2"
- S="${WORKDIR}/mozilla-${MAJ_XUL_PV}"
-fi
-
-# No language packs for alphas
-if ! [[ ${PV} =~ alpha|beta ]]; then
- # This list can be updated with scripts/get_langs.sh from mozilla overlay
- LANGS="af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de
- el en en-ZA eo es-ES et eu fa fi fr fy-NL ga-IE gd gl gu-IN
- he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk
- ml mr nb-NO nl nn-NO nso or pa-IN pl pt-PT rm ro ru si sk sl
- son sq sr sv-SE ta ta-LK te th tr uk vi zu"
- NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW"
-
- for X in ${LANGS} ; do
- if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
- SRC_URI="${SRC_URI}
- linguas_${X/-/_}? ( ${REL_URI}/${FF_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
- fi
- IUSE="${IUSE} linguas_${X/-/_}"
- # english is handled internally
- if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
- if [ "${X}" != "en-US" ]; then
- SRC_URI="${SRC_URI}
- linguas_${X%%-*}? ( ${REL_URI}/${FF_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
- fi
- IUSE="${IUSE} linguas_${X%%-*}"
- fi
- done
-fi
-
-QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox"
-
-linguas() {
- local LANG SLANG
- for LANG in ${LINGUAS}; do
- if has ${LANG} en en_US; then
- has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
- continue
- elif has ${LANG} ${LANGS//-/_}; then
- has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
- continue
- elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
- for X in ${LANGS}; do
- if [[ "${X}" == "${LANG}-"* ]] && \
- [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
- has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
- continue 2
- fi
- done
- fi
- ewarn "Sorry, but ${P} does not support the ${LANG} LINGUA"
- done
-}
-
-pkg_setup() {
- moz_pkgsetup
-
- if ! use bindist ; then
- einfo
- elog "You are enabling official branding. You may not redistribute this build"
- elog "to any users on your network or the internet. Doing so puts yourself into"
- elog "a legal problem with Mozilla Foundation"
- elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- linguas
- for X in ${linguas}; do
- # FIXME: Add support for unpacking xpis to portage
- [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
- done
-}
-
-src_prepare() {
- # Apply our patches
- EPATCH_SUFFIX="patch" \
- EPATCH_FORCE="yes" \
- epatch "${WORKDIR}"
-
- epatch "${FILESDIR}"/fix-preferences-gentoo.patch
- epatch "${FILESDIR}"/fix_omnijar_startupcache_breakage.patch
-
- # Allow user to apply any additional patches without modifing ebuild
- epatch_user
-
- # Disable gnomevfs extension
- sed -i -e "s:gnomevfs::" "${S}/"browser/confvars.sh \
- || die "Failed to remove gnomevfs extension"
-
- eautoreconf
-
- cd js/src
- eautoreconf
-}
-
-src_configure() {
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
- MEXTENSIONS="default"
-
- ####################################
- #
- # mozconfig, CFLAGS and CXXFLAGS setup
- #
- ####################################
-
- mozconfig_init
- mozconfig_config
-
- # It doesn't compile on alpha without this LDFLAGS
- use alpha && append-ldflags "-Wl,--no-relax"
-
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
- mozconfig_annotate '' --disable-mailnews
- mozconfig_annotate '' --enable-canvas
- mozconfig_annotate '' --enable-safe-browsing
- mozconfig_annotate '' --with-system-png
- mozconfig_annotate '' --enable-system-ffi
- mozconfig_annotate '' --with-system-libxul
- mozconfig_annotate '' --with-libxul-sdk="${EPREFIX}"/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
- # mozconfig_annotate '' --enable-chrome-format=jar
-
- # Other ff-specific settings
- mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
-
- mozconfig_use_enable system-sqlite
-
- # Finalize and report settings
- mozconfig_final
-
- if [[ $(gcc-major-version) -lt 4 ]]; then
- append-cxxflags -fno-stack-protector
- fi
-
- ####################################
- #
- # Configure and build
- #
- ####################################
-
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
-}
-
-src_install() {
- MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
-
- # Enable very specific settings not inherited from xulrunner
- cp "${FILESDIR}"/firefox-default-prefs.js \
- "${S}/dist/bin/defaults/preferences/all-gentoo.js" || \
- die "failed to cp firefox-default-prefs.js"
-
- emake DESTDIR="${D}" install || die "emake install failed"
-
- linguas
- for X in ${linguas}; do
- [[ ${X} != "en" ]] && xpi_install "${WORKDIR}/${P}-${X}"
- done
-
- local size sizes icon_path icon name
- if use bindist; then
- sizes="16 32 48"
- icon_path="${S}/browser/branding/unofficial"
- icon="tumucumaque"
- name="Tumucumaque"
- else
- sizes="16 22 24 32 256"
- icon_path="${S}/other-licenses/branding/firefox"
- icon="${PN}"
- name="Mozilla Firefox"
- fi
-
- # Install icons and .desktop for menu entry
- for size in ${sizes}; do
- insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
- newins "${icon_path}/default${size}.png" "${icon}.png" || die
- done
- # The 128x128 icon has a different name
- insinto "/usr/share/icons/hicolor/128x128/apps"
- newins "${icon_path}/mozicon128.png" "${icon}.png" || die
- # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
- newicon "${icon_path}/content/icon48.png" "${icon}.png" || die
- newmenu "${FILESDIR}/icon/${PN}.desktop" "${PN}.desktop" || die
- sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
- "${ED}/usr/share/applications/${PN}.desktop" || die
-
- # Add StartupNotify=true bug 237317
- if use startup-notification ; then
- echo "StartupNotify=true" >> "${ED}/usr/share/applications/${PN}.desktop"
- fi
-
- pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/firefox
-
-
- # Must symlink xulrunner into firefox directory now
- dosym ../xulrunner-"${MAJ_XUL_PV}" "${MOZILLA_FIVE_HOME}"/xulrunner \
- || die "failed to setup xulrunner"
-
- # Plugins dir
- dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
- || die "failed to symlink"
-
- # very ugly hack to make firefox not sigbus on sparc
- use sparc && { sed -e 's/Firefox/FirefoxGentoo/g' \
- -i "${ED}/${MOZILLA_FIVE_HOME}/application.ini" || \
- die "sparc sed failed"; }
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- # Update mimedb for the new .desktop file
- fdo-mime_desktop_database_update
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-06 7:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 4:22 [gentoo-commits] proj/mozilla:master commit in: net-libs/xulrunner/files/, www-client/firefox/, www-client/firefox/files/icon/, Nirbheek Chauhan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox