summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-20 16:28:04 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-20 16:28:04 +0000
commit2f73108f2bf39bb8f24d66dd7dc0234a62a87a1f (patch)
treee2564f3134afa91c60132c79e5f67a007ad22fb3 /www-client
parentusersandbox => sandbox since usersandbox isn't a valid RESTRICT (diff)
downloadgentoo-2-2f73108f2bf39bb8f24d66dd7dc0234a62a87a1f.tar.gz
gentoo-2-2f73108f2bf39bb8f24d66dd7dc0234a62a87a1f.tar.bz2
gentoo-2-2f73108f2bf39bb8f24d66dd7dc0234a62a87a1f.zip
Add cleaned up ebuild for 2.0b1 from Piotr Jaroszynski <peper@aster.pl>. Fix
up dist stuff to use Gentoo infra, and add back dropped patches and prefs. (Portage version: 2.1.1_pre3-r1)
Diffstat (limited to 'www-client')
-rw-r--r--www-client/mozilla-firefox/ChangeLog9
-rw-r--r--www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_beta187
-rw-r--r--www-client/mozilla-firefox/mozilla-firefox-2.0_beta1.ebuild238
3 files changed, 333 insertions, 1 deletions
diff --git a/www-client/mozilla-firefox/ChangeLog b/www-client/mozilla-firefox/ChangeLog
index a12c2d1b0ef4..d1a0707c484f 100644
--- a/www-client/mozilla-firefox/ChangeLog
+++ b/www-client/mozilla-firefox/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-client/mozilla-firefox
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.162 2006/07/07 21:31:06 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.163 2006/07/20 16:28:04 azarah Exp $
+
+*mozilla-firefox-2.0_beta1 (20 Jul 2006)
+
+ 20 Jul 2006; Martin Schlemmer <azarah@gentoo.org>
+ +mozilla-firefox-2.0_beta1.ebuild:
+ Add cleaned up ebuild for 2.0b1 from Piotr Jaroszynski <peper@aster.pl>. Fix
+ up dist stuff to use Gentoo infra, and add back dropped patches and prefs.
07 Jul 2006; Stefan Schweizer <genstef@gentoo.org>
mozilla-firefox-1.5.0.4.ebuild:
diff --git a/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_beta1 b/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_beta1
new file mode 100644
index 000000000000..abd55e3d8790
--- /dev/null
+++ b/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_beta1
@@ -0,0 +1,87 @@
+MD5 98c4ab4fe86c12230def007779ce6784 firefox-2.0b1-source.tar.bz2 36380602
+RMD160 89dd1932041008692ca1d8f2f6bb1d80c382ca6d firefox-2.0b1-source.tar.bz2 36380602
+SHA256 2d5b71fb9177010ded3eb78b3ff44374599bc59debc1c1a8109f81c0457cd465 firefox-2.0b1-source.tar.bz2 36380602
+MD5 1607df1cb7158f49a894374969d8fbcb mozilla-firefox-2.0_beta1-ca.xpi 171446
+RMD160 3214853906b56bf1ff3ee060eedb98c7ac2b5b8a mozilla-firefox-2.0_beta1-ca.xpi 171446
+SHA256 ef8c41d5e0a7154151648bb1419008ce32a131aaeac5e296c0cf65aa42913015 mozilla-firefox-2.0_beta1-ca.xpi 171446
+MD5 5fd23169e2fefd64b57318f5b2665c62 mozilla-firefox-2.0_beta1-cs.xpi 159692
+RMD160 20707ba30c11ce9ab5659774a48335ee429c7b2f mozilla-firefox-2.0_beta1-cs.xpi 159692
+SHA256 df341a587bde8178cd34a32666f9a01f475ae60ce51ce28e97000972bc603514 mozilla-firefox-2.0_beta1-cs.xpi 159692
+MD5 a67704011706cf45fd7ae711996dd049 mozilla-firefox-2.0_beta1-da.xpi 150658
+RMD160 ffff5d2d9dfb08c6223d05a1423980078d1fea1b mozilla-firefox-2.0_beta1-da.xpi 150658
+SHA256 eaa2a1a9b658c54dc2ca35ede7c714d073cc4e125e6dca2bbdc1875c3e1010b8 mozilla-firefox-2.0_beta1-da.xpi 150658
+MD5 9c3ba1099dfcd8b081e9906db2d6932a mozilla-firefox-2.0_beta1-de.xpi 149913
+RMD160 827d6c017f57c16ce68643dd0cc5bac0bf496d30 mozilla-firefox-2.0_beta1-de.xpi 149913
+SHA256 a5f9d2f63fd5f84fd0c71c166aba19131c6a00e9874a8987a705964994220af7 mozilla-firefox-2.0_beta1-de.xpi 149913
+MD5 f4fd55291c965b8e8d70da618968b9fc mozilla-firefox-2.0_beta1-el.xpi 168574
+RMD160 04e5c7d9934fd7dc4cf2d0bee58b7eb2260b179a mozilla-firefox-2.0_beta1-el.xpi 168574
+SHA256 110ccfa1d94d55f5a705c4523a8917adc799710c3f9f7b3944fa91ae31ab1ccd mozilla-firefox-2.0_beta1-el.xpi 168574
+MD5 2163eadf9229bbaa82f6611844508014 mozilla-firefox-2.0_beta1-en-GB.xpi 148431
+RMD160 de0d90b8a14deb17fc7962af4106bbbc94a80aad mozilla-firefox-2.0_beta1-en-GB.xpi 148431
+SHA256 737ca1e7ad85f2f92173ef4ce00628fb66163a0576d756fd3d88c209f0f59bca mozilla-firefox-2.0_beta1-en-GB.xpi 148431
+MD5 166804dacf2dc1d53e891545191dfb58 mozilla-firefox-2.0_beta1-es-AR.xpi 156385
+RMD160 968aa1b9905a02d098084fb823cc0613f5432907 mozilla-firefox-2.0_beta1-es-AR.xpi 156385
+SHA256 788def540a1538478749efdb855131d613f2d58fe6f42f5630a7a43a2669069e mozilla-firefox-2.0_beta1-es-AR.xpi 156385
+MD5 88625c52bee3c4c87c7ba83a8d5cdfd6 mozilla-firefox-2.0_beta1-es-ES.xpi 139375
+RMD160 f97112ed0f119c68f5a46efd7db4372ac759031a mozilla-firefox-2.0_beta1-es-ES.xpi 139375
+SHA256 4acdd0afa5c7fff2742a275be910d291c62d530dae7ff7cfec67ef379bb7ebb8 mozilla-firefox-2.0_beta1-es-ES.xpi 139375
+MD5 c6f785030a410cf78a413d205d8a3229 mozilla-firefox-2.0_beta1-fi.xpi 153510
+RMD160 d44311607239ae3c7f1c95a95912292b6162fcd7 mozilla-firefox-2.0_beta1-fi.xpi 153510
+SHA256 4b39329ff2f36ef502a86b791ab88001d4d00aac2dac47fcd7f072e6c1ea9bfb mozilla-firefox-2.0_beta1-fi.xpi 153510
+MD5 3a465f80c4a1bfbb943593372807aed5 mozilla-firefox-2.0_beta1-fr.xpi 211766
+RMD160 7592bafc3f01e203cf2fd906060f95a4b7f9ec62 mozilla-firefox-2.0_beta1-fr.xpi 211766
+SHA256 30f95147e7db303de91e5992cf425a15d66244bed860fc814080daa5c5ec79f9 mozilla-firefox-2.0_beta1-fr.xpi 211766
+MD5 807840aa492459b2c4b30920ede8859d mozilla-firefox-2.0_beta1-hu.xpi 161203
+RMD160 3419ba70c8dc7c4a8c0b7675bd0682f7c625d324 mozilla-firefox-2.0_beta1-hu.xpi 161203
+SHA256 5f477ff16ea519085d14dc230799dfa718958690d2d095c5bf7303bd64acecf8 mozilla-firefox-2.0_beta1-hu.xpi 161203
+MD5 86bdd62f308b27a895be8d9db9a40aa9 mozilla-firefox-2.0_beta1-it.xpi 140804
+RMD160 cccd9c8393c14e0074655621d3c371505d0bd741 mozilla-firefox-2.0_beta1-it.xpi 140804
+SHA256 f5518aa5f91a69288f6a7f1acdb25f201c10b37640e74b51b0b966746fc0708b mozilla-firefox-2.0_beta1-it.xpi 140804
+MD5 d0507f00d440db1ce31cd6c644b4242e mozilla-firefox-2.0_beta1-ja.xpi 163684
+RMD160 84d83c0d08abbd383110cbc38dfa32af8041ff8c mozilla-firefox-2.0_beta1-ja.xpi 163684
+SHA256 ca7cdc3483121cc07325ef346dd5ba08afc43fce04bdcf07da2b5c61458ab4c7 mozilla-firefox-2.0_beta1-ja.xpi 163684
+MD5 5e4da706e00223c99fa99df03ffa1ba7 mozilla-firefox-2.0_beta1-lt.xpi 163226
+RMD160 66b03d61fb28e527f4caa1279ebbdbcbeea0f91d mozilla-firefox-2.0_beta1-lt.xpi 163226
+SHA256 5dabe59fe50a33f6e2f3f2d10e10cd54e39613e58f7e5b04d8eaedc183c086fc mozilla-firefox-2.0_beta1-lt.xpi 163226
+MD5 a31f533f724fb34b330754faf19aa5d0 mozilla-firefox-2.0_beta1-mn.xpi 156792
+RMD160 d6b45d1119b3e2498b0166ba4631aeaa3a180590 mozilla-firefox-2.0_beta1-mn.xpi 156792
+SHA256 fec3ebfcbb38fc8a75ef29a88fd9cc8c20df6b340d91fc08eab7f30f34843fc3 mozilla-firefox-2.0_beta1-mn.xpi 156792
+MD5 e88ec9bbb1665d0e0e67d848e7c6c1f2 mozilla-firefox-2.0_beta1-nb-NO.xpi 160628
+RMD160 05e7a59e4ae968c30919281e3da565c8223d0a8d mozilla-firefox-2.0_beta1-nb-NO.xpi 160628
+SHA256 868c9c98dad00ae9bd1fc816c68f9372ee0cf622b8d29d80d728da5785583db4 mozilla-firefox-2.0_beta1-nb-NO.xpi 160628
+MD5 4f4e314e3fda809c3c947a2051393ab0 mozilla-firefox-2.0_beta1-nl.xpi 160862
+RMD160 f09115a9c5c268a1bbba3561eb08241d82ca2e9b mozilla-firefox-2.0_beta1-nl.xpi 160862
+SHA256 6a577665512713ab78c98ada0b07385fa7be8dbed62c9efee193f4b7d09eeca7 mozilla-firefox-2.0_beta1-nl.xpi 160862
+MD5 42cab7e0a8bf0fa36c8f4e1238bd20da mozilla-firefox-2.0_beta1-nn-NO.xpi 161949
+RMD160 f14ce49cbdfcfb7cf14e47a3ec0eac6a996fc62a mozilla-firefox-2.0_beta1-nn-NO.xpi 161949
+SHA256 499f906a076e8b3529a63099a98a2a827f033e838c2f1ad7bea35b0341d0b559 mozilla-firefox-2.0_beta1-nn-NO.xpi 161949
+MD5 92c28b3be7148eeb0df39e650d8cfba6 mozilla-firefox-2.0_beta1-patches-1.0.tar.bz2 25574
+RMD160 e3438e90c0be38a0eb8021abe986b73cf3c68948 mozilla-firefox-2.0_beta1-patches-1.0.tar.bz2 25574
+SHA256 83f53f45d4fee9ec1bb79d354d650c39491dd8ef3ef2acf1bdbe4c2d60a65cbb mozilla-firefox-2.0_beta1-patches-1.0.tar.bz2 25574
+MD5 23ec84bf3d17c5c844da34f1da542503 mozilla-firefox-2.0_beta1-pl.xpi 256842
+RMD160 00c3b92ef39975ef26fe214a74c4bbb794f709c7 mozilla-firefox-2.0_beta1-pl.xpi 256842
+SHA256 ccab2784a33fa3102716bfe6a127c19a228c0b3db2525f66e82f8e9e75eb94eb mozilla-firefox-2.0_beta1-pl.xpi 256842
+MD5 f65f61502595ebb65993242b9c8efa60 mozilla-firefox-2.0_beta1-pt-PT.xpi 152648
+RMD160 5f3fdb31f05fb1e799686fc416439179b1dbd21f mozilla-firefox-2.0_beta1-pt-PT.xpi 152648
+SHA256 709a5ca6edc99dfa49335b579ff87ce8b1576de060d517c2a2da26f7438c9bab mozilla-firefox-2.0_beta1-pt-PT.xpi 152648
+MD5 ab3c371e36f8ee91e530275e6363f7a2 mozilla-firefox-2.0_beta1-ru.xpi 161616
+RMD160 d65f439f4ebd109506f2d179b779d7b13ef00175 mozilla-firefox-2.0_beta1-ru.xpi 161616
+SHA256 8caecb51c04b3d05f4720115585b30c9e24c2003b808ca727d7a576a88c7a70e mozilla-firefox-2.0_beta1-ru.xpi 161616
+MD5 019dfb206536d05b508342bcbb53f92d mozilla-firefox-2.0_beta1-sk.xpi 155960
+RMD160 fa458c377fc5f473fc0a9bf240b0ec87475a2e22 mozilla-firefox-2.0_beta1-sk.xpi 155960
+SHA256 a689c75c62087c5d542e0de1a29dff8969e95c05747843dc2f6648d373730cb4 mozilla-firefox-2.0_beta1-sk.xpi 155960
+MD5 40b95b46745c120407d1a8a574bc26e4 mozilla-firefox-2.0_beta1-sl.xpi 153055
+RMD160 50cba452c7678435bcf3b2a3cd26a3cbb26cf39c mozilla-firefox-2.0_beta1-sl.xpi 153055
+SHA256 ab70e19650f9486e8e7833b59bb8fef145e20dbcdddfcd722a4446bb3a90ebd5 mozilla-firefox-2.0_beta1-sl.xpi 153055
+MD5 d04e0b50da3844a7f0180fa69421f2ad mozilla-firefox-2.0_beta1-sv-SE.xpi 166628
+RMD160 653bb03a530eb6be4fb577dd7ca639120a386f3c mozilla-firefox-2.0_beta1-sv-SE.xpi 166628
+SHA256 bf718df64760ba2c8ac76a590cf7e10d1d3a69cf5c5ee3f9f4f42f4380eca709 mozilla-firefox-2.0_beta1-sv-SE.xpi 166628
+MD5 ab548808f27e6ed720e96425cce42154 mozilla-firefox-2.0_beta1-tr.xpi 149768
+RMD160 58543b380ac7612b439793bd90ef6d2a01dd8eaf mozilla-firefox-2.0_beta1-tr.xpi 149768
+SHA256 c61ddb125e3ee42706bb2e2acf3599e02664beb90fbb4c6dd365b5c595aa8f92 mozilla-firefox-2.0_beta1-tr.xpi 149768
+MD5 824baf99c0aeb8f447c5014dd04d75ea mozilla-firefox-2.0_beta1-zh-CN.xpi 144059
+RMD160 34fb1ad61eee4b23b3fa5e42b12d1c1023f499b9 mozilla-firefox-2.0_beta1-zh-CN.xpi 144059
+SHA256 dcfe801542008f2241d4d235dff22bedce3232d3f70e8ee4ba935faa8551d6bf mozilla-firefox-2.0_beta1-zh-CN.xpi 144059
+MD5 e45aee686cd5fc0029ee0672581d26aa mozilla-firefox-2.0_beta1-zh-TW.xpi 140919
+RMD160 769a8d5168c307df1887ff48baa49b8d6303e891 mozilla-firefox-2.0_beta1-zh-TW.xpi 140919
+SHA256 76c910813536c2e17df7e069ca1505b73e88428463849c1a6e0d3d40fef8063a mozilla-firefox-2.0_beta1-zh-TW.xpi 140919
diff --git a/www-client/mozilla-firefox/mozilla-firefox-2.0_beta1.ebuild b/www-client/mozilla-firefox/mozilla-firefox-2.0_beta1.ebuild
new file mode 100644
index 000000000000..a7ec1608ebfa
--- /dev/null
+++ b/www-client/mozilla-firefox/mozilla-firefox-2.0_beta1.ebuild
@@ -0,0 +1,238 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-2.0_beta1.ebuild,v 1.1 2006/07/20 16:28:04 azarah Exp $
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools
+
+PVER="1.0"
+LANGS="ca cs da de el en-GB es-AR es-ES fi fr hu it ja lt mn nb-NO nl pl ru sk sl sv-SE tr zh-CN zh-TW"
+SHORTLANGS="pt-PT nn-NO"
+MY_PV=${PV/_beta/b}
+
+DESCRIPTION="Firefox Web Browser"
+HOMEPAGE="http://www.mozilla.org/projects/firefox/"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="MPL-1.1 NPL-1.1"
+IUSE="java mozdevelop"
+
+MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}"
+SRC_URI="${MOZ_URI}/source/firefox-${MY_PV}-source.tar.bz2
+ mirror://gentoo/${P}-patches-${PVER}.tar.bz2
+ http://dev.gentoo.org/~azarah/firefox/${P}-patches-${PVER}.tar.bz2"
+
+# These are in
+#
+# http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/linux-i686/xpi/
+#
+for X in ${LANGS} ; do
+ SRC_URI="${SRC_URI}
+ linguas_${X/-/_}? ( mirror://gentoo/${P}-${X}.xpi
+ http://dev.gentoo.org/~azarah/firefox/${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X/-/_}"
+done
+for X in ${SHORTLANGS} ; do
+ SRC_URI="${SRC_URI}
+ linguas_${X/%%-*}? ( mirror://gentoo/${P}-${X}.xpi
+ http://dev.gentoo.org/~azarah/firefox/${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X/%%-*}"
+done
+
+RDEPEND="java? ( virtual/jre )
+ >=www-client/mozilla-launcher-1.39
+ >=sys-devel/binutils-2.16.1
+ >=dev-libs/nss-3.10
+ >=dev-libs/nspr-4.6.1
+ ~sys-devel/autoconf-2.13"
+
+DEPEND="${RDEPEND}
+ java? ( >=dev-java/java-config-0.2.0 )"
+
+S="${WORKDIR}/mozilla"
+
+linguas() {
+ local LANG SLANG
+ for LANG in ${LINGUAS}; do
+ if hasq ${LANG} en en_US; then
+ hasq en ${linguas} || linguas="${linguas:+"${linguas} "}en"
+ continue
+ elif hasq ${LANG} ${LANGS//-/_}; then
+ hasq ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
+ continue
+ else
+ for SLANG in ${SHORTLANGS}; do
+ if [[ ${LANG} == "${SLANG%%-*}" ]]; then
+ hasq ${SLANG} ${linguas} || linguas="${linguas:+"${linguas} "}${SLANG}"
+ continue 2
+ fi
+ done
+ fi
+ ewarn "Sorry, but mozilla-firefox does not support the ${LANG} LINGUA"
+ done
+}
+
+src_unpack() {
+ unpack "firefox-${MY_PV}-source.tar.bz2" "${P}-patches-${PVER}.tar.bz2"
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
+ done
+
+ cd "${S}"
+
+ # Apply our patches
+ EPATCH_FORCE="yes" epatch "${WORKDIR}"/patch
+
+ # Fix a compilation issue using the 32-bit userland with 64-bit kernel on
+ # PowerPC, because with that configuration, it detects a ppc64 system.
+ # -- hansmi, 2005-11-13
+ if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then
+ sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \
+ "${S}"/configure
+ sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \
+ "${S}"/security/coreconf/arch.mk
+ fi
+
+ WANT_AUTOCONF="2.1" eautoreconf
+}
+
+src_compile() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ mozconfig_init
+ mozconfig_config
+
+ mozconfig_annotate '' --enable-application=browser
+ mozconfig_annotate '' --enable-extensions=default,typeaheadfind
+ mozconfig_annotate '' --enable-image-encoder=all
+ mozconfig_annotate '' --enable-canvas
+ mozconfig_annotate '' --with-system-nspr
+ mozconfig_annotate '' --with-system-nss
+ mozconfig_annotate '' --enable-official-branding
+
+ # Bug 60668: Galeon doesn't build without oji enabled, so enable it
+ # regardless of java setting.
+ mozconfig_annotate '' --enable-oji --enable-mathml
+
+ # Other ff-specific settings
+ mozconfig_use_enable mozdevelop jsd
+ mozconfig_use_enable mozdevelop xpctools
+ mozconfig_use_extension mozdevelop venkman
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+
+ # Add build variables
+ mozconfig_build_opts
+
+ # Finalize and report settings
+ mozconfig_final
+
+ # -fstack-protector breaks us
+ gcc-specs-ssp && append-flags -fno-stack-protector-all
+ filter-flags -fstack-protector -fstack-protector-all
+
+ # Don't know a reason for that so commented out /peper
+ #append-flags -freorder-blocks -fno-reorder-functions
+
+ # Configure and build
+
+ CPPFLAGS="${CPPFLAGS} -DGENTOO_NSPLUGINS_DIR=\\\"/usr/$(get_libdir)/nsplugins\\\""
+ CPPFLAGS="${CPPFLAGS} -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/$(get_libdir)/nsbrowser/plugins\\\""
+ export CPPFLAGS
+ tc-export CC CXX LD
+ econf || die
+
+ # This removes extraneous CFLAGS from the Makefiles to reduce RAM
+ # requirements while compiling
+ edit_makefiles
+
+ emake || die
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ einfo "Removing old install to eliminate any problems during install."
+ rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}"
+}
+
+src_install() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Most of the installation happens here
+ dodir "${MOZILLA_FIVE_HOME}"
+ cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed"
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
+ done
+
+ local LANG=${linguas%% *}
+ if [[ -n ${LANG} && ${LANG} != "en" ]]; then
+ einfo "Setting default locale to ${LANG}"
+ dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
+ "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
+ "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \
+ die "sed failed to change locale"
+ fi
+
+ # Create /usr/bin/firefox
+ install_mozilla_launcher_stub firefox "${MOZILLA_FIVE_HOME}"
+
+ # Install icon and .desktop for menu entry
+ doicon "${FILESDIR}"/icon/firefox-icon.png
+ domenu "${FILESDIR}"/icon/mozillafirefox-1.5.desktop
+
+ # Fix icons to look the same everywhere
+ insinto "${MOZILLA_FIVE_HOME}"/icons
+ doins "${S}"/dist/branding/mozicon16.xpm
+ doins "${S}"/dist/branding/mozicon50.xpm
+
+
+ # Install files necessary for applications to build against firefox
+ einfo "Installing includes and idl files..."
+ dodir "${MOZILLA_FIVE_HOME}"/idl "${MOZILLA_FIVE_HOME}"/include
+ cp -LfR "${S}"/dist/include/* "${D}"/"${MOZILLA_FIVE_HOME}"/include/ || \
+ die "cp failed"
+ cp -LfR "${S}"/dist/idl/* "${D}"/"${MOZILLA_FIVE_HOME}"/idl || \
+ die "cp failed"
+
+ # Dirty hack to get some applications using this header running
+ dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \
+ "${MOZILLA_FIVE_HOME}"/include/nsIURI.h
+
+ # Install pkgconfig files
+ insinto /usr/"$(get_libdir)"/pkgconfig
+ doins "${S}"/build/unix/*.pc
+
+ insinto "${MOZILLA_FIVE_HOME}"/greprefs
+ newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
+ insinto "${MOZILLA_FIVE_HOME}"/defaults/pref
+ newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
+}
+
+pkg_postinst() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # This should be called in the postinst and postrm of all the
+ # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and
+ # thunderbird-bin ebuilds.
+ update_mozilla_launcher_symlinks
+
+ # Update mimedb for the new .desktop file
+ fdo-mime_desktop_database_update
+
+ elog "Please remember to rebuild any packages that you have built"
+ elog "against firefox. Some packages might be broken by the upgrade; if this"
+ elog "is the case, please search at http://bugs.gentoo.org and open a new bug"
+ elog "if one does not exist. Before filing any bugs, please move or remove ~/.mozilla"
+ elog "and test with a clean profile directory."
+}
+
+pkg_postrm() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ update_mozilla_launcher_symlinks
+}