summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-10-07 17:43:53 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-10-07 17:43:53 +0000
commitd9387fdde3143feab8ffaa89634383c604a378fb (patch)
treedc7af5d59977887b8c4b19e86fd14aa82613a1e8 /www-client/mozilla-firefox
parentAdd enable-shared. (diff)
downloadgentoo-2-d9387fdde3143feab8ffaa89634383c604a378fb.tar.gz
gentoo-2-d9387fdde3143feab8ffaa89634383c604a378fb.tar.bz2
gentoo-2-d9387fdde3143feab8ffaa89634383c604a378fb.zip
version bump, clean up old
(Portage version: 2.1.2_pre2-r5)
Diffstat (limited to 'www-client/mozilla-firefox')
-rw-r--r--www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_rc2120
-rw-r--r--www-client/mozilla-firefox/mozilla-firefox-2.0_rc2.ebuild238
2 files changed, 358 insertions, 0 deletions
diff --git a/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_rc2 b/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_rc2
new file mode 100644
index 000000000000..b9d8b8989d2a
--- /dev/null
+++ b/www-client/mozilla-firefox/files/digest-mozilla-firefox-2.0_rc2
@@ -0,0 +1,120 @@
+MD5 b2cbe4bef6971bb7342970ce24514c28 firefox-2.0rc2-source.tar.bz2 36945630
+RMD160 b49848476cd24c4f905a9b3ad562a170a966d6cf firefox-2.0rc2-source.tar.bz2 36945630
+SHA256 21ae0d20cae31922bad2677b737da3989089ee836c19b846fea17cea7108e966 firefox-2.0rc2-source.tar.bz2 36945630
+MD5 9a6cb26c4f2a7a114383ba2a9be44b5f mozilla-firefox-2.0_rc1-patches-1.4.tar.bz2 24068
+RMD160 26f2e86d6749a154bd9c8c0ad525af22d65f1f89 mozilla-firefox-2.0_rc1-patches-1.4.tar.bz2 24068
+SHA256 45b13bfb1bdb02b5152475d090ae8ac0fb743be717b5850e94f700eedb9169ce mozilla-firefox-2.0_rc1-patches-1.4.tar.bz2 24068
+MD5 a8c11ca56e221cd268f3639751fbd89b mozilla-firefox-2.0_rc2-ar.xpi 159961
+RMD160 1ccaeca54012aaf90668f894f255178965a10bf9 mozilla-firefox-2.0_rc2-ar.xpi 159961
+SHA256 3a1c195dd1654a586acf49df4dd4f85e32e1a1da4814ae9cd2106618ee519b1e mozilla-firefox-2.0_rc2-ar.xpi 159961
+MD5 97170252c335dc780864abffb8500e84 mozilla-firefox-2.0_rc2-be.xpi 159479
+RMD160 6675f30f21bf20e49f1469adf75287d44e0a96a9 mozilla-firefox-2.0_rc2-be.xpi 159479
+SHA256 e359ade353e3f6f7d1865761756c31f148fa4e716c10ab9ee54b29f3f28f41ed mozilla-firefox-2.0_rc2-be.xpi 159479
+MD5 6514d31d28b31d40f99c64d049d21149 mozilla-firefox-2.0_rc2-bg.xpi 169651
+RMD160 a901046816475427e81dfe428007ccf309586812 mozilla-firefox-2.0_rc2-bg.xpi 169651
+SHA256 0ddf84388f8f3c1e98f021b6dea08944e9048c1292ccdf61e6693b305d24bf06 mozilla-firefox-2.0_rc2-bg.xpi 169651
+MD5 c52a4a2150d006d140fec62f6845963c mozilla-firefox-2.0_rc2-ca.xpi 170779
+RMD160 fdde09bc850b8852bf8916ee6ba038e3a8fb5de9 mozilla-firefox-2.0_rc2-ca.xpi 170779
+SHA256 40c69dbac0d9c5443168a61a12f4b23ad013f0cbf2881fd067007d135f2ed565 mozilla-firefox-2.0_rc2-ca.xpi 170779
+MD5 415d728105efbc7b64c3d7f36693936e mozilla-firefox-2.0_rc2-cs.xpi 168073
+RMD160 630c0c2d01b2aa1d65ef64848abf1aa4c4f0dc69 mozilla-firefox-2.0_rc2-cs.xpi 168073
+SHA256 b3d359ac52eb706024fbd3d899457b60529e84b2019fbf2da82820d3cb409e52 mozilla-firefox-2.0_rc2-cs.xpi 168073
+MD5 4d340c1f810e669a50aa29dcefc02cce mozilla-firefox-2.0_rc2-da.xpi 152242
+RMD160 b192769bddddf8f05255f6e6300775a7f09dfd35 mozilla-firefox-2.0_rc2-da.xpi 152242
+SHA256 ac6329964d04ea2ce3915a9e78700903d3ea8a79c36e4ddf1a6db82bfa90339f mozilla-firefox-2.0_rc2-da.xpi 152242
+MD5 82cec9801deccd13f05da52409729a18 mozilla-firefox-2.0_rc2-de.xpi 152544
+RMD160 0a08c998ff19dad57923978f5fb43bc97833dfa1 mozilla-firefox-2.0_rc2-de.xpi 152544
+SHA256 3a351d740847f49abd3d89f5542d4f858e11778a99cdc437c61c6ae4c69358bd mozilla-firefox-2.0_rc2-de.xpi 152544
+MD5 9a8ccd87355614bdc1e2684448e8f4c1 mozilla-firefox-2.0_rc2-el.xpi 169900
+RMD160 e5e7cd13bff32d89576dd8ab4e9943788993d191 mozilla-firefox-2.0_rc2-el.xpi 169900
+SHA256 dea5117a26908bb17488007d27e8a60e5d1d54c13033be8f83f97074edd1b05d mozilla-firefox-2.0_rc2-el.xpi 169900
+MD5 983b2a8be5b0aa31054ca1b170009920 mozilla-firefox-2.0_rc2-en-GB.xpi 156170
+RMD160 22393ff76a6cf708eb664888c3b9af87092447d6 mozilla-firefox-2.0_rc2-en-GB.xpi 156170
+SHA256 c10b12ca68eecd5d70d144036fe5a768429c12fd84f37dc5a0ccaa35faaded52 mozilla-firefox-2.0_rc2-en-GB.xpi 156170
+MD5 5ad85bf8781fb24f95a2fa7bcd145d07 mozilla-firefox-2.0_rc2-es-AR.xpi 156157
+RMD160 8a834909378fc8086c67a99555c3a6c7aaef4b74 mozilla-firefox-2.0_rc2-es-AR.xpi 156157
+SHA256 e7f36c083acd6897ba40bc7a19f87af664ee24b58128af283784db8765366e75 mozilla-firefox-2.0_rc2-es-AR.xpi 156157
+MD5 cc6f21006c4cb9de9291f6eb4b1997d9 mozilla-firefox-2.0_rc2-es-ES.xpi 143975
+RMD160 b0c46ce977f96ea17905839feb580c6f060070f6 mozilla-firefox-2.0_rc2-es-ES.xpi 143975
+SHA256 e1104ede5553893eebd0a7c106381b3a89309de710efa27f22094f4f1fcde43d mozilla-firefox-2.0_rc2-es-ES.xpi 143975
+MD5 218caee167d27121292daa5716c010ec mozilla-firefox-2.0_rc2-eu.xpi 153808
+RMD160 1c898a972cc7d7926409b250df42596fa1e8f6a8 mozilla-firefox-2.0_rc2-eu.xpi 153808
+SHA256 46001c505fe7cc72195e0e7ed5a2999e4a4b73ec25f158f6d186e83391681dd0 mozilla-firefox-2.0_rc2-eu.xpi 153808
+MD5 4112fea41c1afa3147929f55d5bf6e5f mozilla-firefox-2.0_rc2-fi.xpi 155484
+RMD160 848e6bb61ca62dc0cc3fad09bd3ec4b95c61a6d8 mozilla-firefox-2.0_rc2-fi.xpi 155484
+SHA256 73192fbca303e40c64d5494028c5683c865b351fa7739bff4b09b35184989e6a mozilla-firefox-2.0_rc2-fi.xpi 155484
+MD5 51c2374c386d4fd5995e3d5914aabc2e mozilla-firefox-2.0_rc2-fr.xpi 173967
+RMD160 b7a07f8b0098d176ae4c5ee485bbf16492d1b140 mozilla-firefox-2.0_rc2-fr.xpi 173967
+SHA256 24ca49206c96b76dd8b463405b8740a71d1c79a7c672b20b408077405af2b9b2 mozilla-firefox-2.0_rc2-fr.xpi 173967
+MD5 61954a1a14f78906639f86d361c18e95 mozilla-firefox-2.0_rc2-fy-NL.xpi 167266
+RMD160 0c3dcb11e4c33b60d25a3b843ae40313647a7dd6 mozilla-firefox-2.0_rc2-fy-NL.xpi 167266
+SHA256 cce03d948c583a61c8a715237672d9534d4178ae536c184187963bbae0fa858f mozilla-firefox-2.0_rc2-fy-NL.xpi 167266
+MD5 f6672a22274764299b4c4c051ad821c3 mozilla-firefox-2.0_rc2-ga-IE.xpi 151747
+RMD160 1042e6ffeb4d3fb4e1d0eb75d9fd8bb5b045bdb5 mozilla-firefox-2.0_rc2-ga-IE.xpi 151747
+SHA256 accb74ec90a87aaf15c2722e7218cd800beadc07e59cb1167be8af86db4e74a7 mozilla-firefox-2.0_rc2-ga-IE.xpi 151747
+MD5 56753444123eb6155e15f6ae58cbbdfd mozilla-firefox-2.0_rc2-gu-IN.xpi 172781
+RMD160 dd51c9f4f3cd18f6483a9bfe2fcc737305cdfc80 mozilla-firefox-2.0_rc2-gu-IN.xpi 172781
+SHA256 9150f8c9c92f818b6db8154662ef273a0fa722a2c6577b39bfe59f57988e92a2 mozilla-firefox-2.0_rc2-gu-IN.xpi 172781
+MD5 76f92a906e24fe7e3e4d38dabf84a55c mozilla-firefox-2.0_rc2-hu.xpi 164165
+RMD160 334cbb59b9f2b48dc5b272f1c86d7e12d5296f76 mozilla-firefox-2.0_rc2-hu.xpi 164165
+SHA256 73273c43e981fa7ebdb5afc726c6c9a2abd850f60164f17e8d4285fb72a9d541 mozilla-firefox-2.0_rc2-hu.xpi 164165
+MD5 64b656a21968668f444428b1bd065cbb mozilla-firefox-2.0_rc2-it.xpi 144803
+RMD160 ea19030a47db2f0d0ba3c64c50d32fc309440036 mozilla-firefox-2.0_rc2-it.xpi 144803
+SHA256 d782a1aa7882bae8ec6cc5a42486c9ad0b1515ecf3c8c0e98d59aba6e0f52cff mozilla-firefox-2.0_rc2-it.xpi 144803
+MD5 f760df13f304a489422c0e0b2bbeef28 mozilla-firefox-2.0_rc2-ja.xpi 163241
+RMD160 c11269a9f396c848bbfd084bc7f353c14f884ca0 mozilla-firefox-2.0_rc2-ja.xpi 163241
+SHA256 dc4de4307af576a9cf33c02d6944c5d39039372e5db513b9a6cf39e46a664b5f mozilla-firefox-2.0_rc2-ja.xpi 163241
+MD5 c9e0cfc1686cee72a9b1d983a811448e mozilla-firefox-2.0_rc2-ko.xpi 148121
+RMD160 9c740750d394945d169e81b3b001d3b13b5b0932 mozilla-firefox-2.0_rc2-ko.xpi 148121
+SHA256 2fb44e5b41c6123d13f1695b753d9e176eb95aedc50ab706caa10bee4f137e20 mozilla-firefox-2.0_rc2-ko.xpi 148121
+MD5 40c2f88491cb036c2c005dfc7c36d984 mozilla-firefox-2.0_rc2-lt.xpi 164687
+RMD160 2836c0347885ed44846f241ff7efdfc44eb16f23 mozilla-firefox-2.0_rc2-lt.xpi 164687
+SHA256 191d22c7db6634656cc359526a16f54f21a33149bf96dd964e02051fcf40c754 mozilla-firefox-2.0_rc2-lt.xpi 164687
+MD5 7cf2afcac38843872b6b8c3a740c480f mozilla-firefox-2.0_rc2-mk.xpi 160080
+RMD160 2897e617d4d09d6b72e65a209c197532d40c848b mozilla-firefox-2.0_rc2-mk.xpi 160080
+SHA256 801430deac40b34e189e8699f2e803cbd8d536a1a54f46457e35a42ae04a73e9 mozilla-firefox-2.0_rc2-mk.xpi 160080
+MD5 c1f0931c4852e270f16d3f3b387b4318 mozilla-firefox-2.0_rc2-mn.xpi 160248
+RMD160 3a1a148fbad414968de6e699774b547612fbe7d7 mozilla-firefox-2.0_rc2-mn.xpi 160248
+SHA256 68078d69f21463ac4617688a04d9f3718e562b5273d35ff415fa617d766e2602 mozilla-firefox-2.0_rc2-mn.xpi 160248
+MD5 6fc13b8094aa7e3c984679ece50587a5 mozilla-firefox-2.0_rc2-nb-NO.xpi 163827
+RMD160 cdc7085191998b8a27e54c48cd08e131c502b576 mozilla-firefox-2.0_rc2-nb-NO.xpi 163827
+SHA256 12d600ee1e6615c2d9ce677fa782f173da40690eae523617b550ca8110580e52 mozilla-firefox-2.0_rc2-nb-NO.xpi 163827
+MD5 c485948ec2c7d78cb44bd018e18c19c3 mozilla-firefox-2.0_rc2-nl.xpi 170117
+RMD160 5b25a186de525cde51f753d9c3004f582fb91f01 mozilla-firefox-2.0_rc2-nl.xpi 170117
+SHA256 2c18f1dd06b2a7ac77ed296a0f020b6cfa26b879b6890ed4884d1b5210f6f65e mozilla-firefox-2.0_rc2-nl.xpi 170117
+MD5 de69c97c75baf6778890aa1f6d7f31c9 mozilla-firefox-2.0_rc2-nn-NO.xpi 160799
+RMD160 7c289ba41ca1841eafebf57fa3d9b4dbcfbf4760 mozilla-firefox-2.0_rc2-nn-NO.xpi 160799
+SHA256 ff14f1b9ab1ae62e0a50eddea0e4673dc7e125346ba04cce71432056260fa2a1 mozilla-firefox-2.0_rc2-nn-NO.xpi 160799
+MD5 026d6361fb04c33cba855e495b87a907 mozilla-firefox-2.0_rc2-pa-IN.xpi 161636
+RMD160 bdc24ea38fed58934d9b84103dddf057a3b110d1 mozilla-firefox-2.0_rc2-pa-IN.xpi 161636
+SHA256 46e978d08b640db7a938e3da40ac33477da20d5ca16a3899a0ecf5aed652ca9e mozilla-firefox-2.0_rc2-pa-IN.xpi 161636
+MD5 75eb826ebea0c051dfd088f8c0a9dd16 mozilla-firefox-2.0_rc2-pl.xpi 171073
+RMD160 013102ce47f5151720e7298322c44b1c88074296 mozilla-firefox-2.0_rc2-pl.xpi 171073
+SHA256 6d00dc8e901f6c0f32a2823318ee81a61dc407dd7bf9a865f9de8c55f78b5600 mozilla-firefox-2.0_rc2-pl.xpi 171073
+MD5 5c5bb81b8c37036a0d25be40ede369bd mozilla-firefox-2.0_rc2-pt-BR.xpi 153408
+RMD160 6390bc33b028f356d2b575b814f81617c5e5516b mozilla-firefox-2.0_rc2-pt-BR.xpi 153408
+SHA256 2eaa7488ff3dc354a98fe50964b7716a1a71c152bd9de6cab6d3638d02ce6d4a mozilla-firefox-2.0_rc2-pt-BR.xpi 153408
+MD5 2ea7c2b5efd1f9fc2245176c21aee3f9 mozilla-firefox-2.0_rc2-pt-PT.xpi 153794
+RMD160 99280f05d60997434edfa5b8644312c1d4661942 mozilla-firefox-2.0_rc2-pt-PT.xpi 153794
+SHA256 24d56b23225274395c27f0b0ff7837ba380998448f3aa9daaf79f46b71927845 mozilla-firefox-2.0_rc2-pt-PT.xpi 153794
+MD5 779fed6cce9bc6bf869523b49f29165b mozilla-firefox-2.0_rc2-ru.xpi 167790
+RMD160 b848fad78c1bf6c6b5931319e0500cfea6b012d5 mozilla-firefox-2.0_rc2-ru.xpi 167790
+SHA256 a0874a27a0f8b6fa470a9b11ed0210f8378dccb14dafa2162898c10bf27f9681 mozilla-firefox-2.0_rc2-ru.xpi 167790
+MD5 fd6e0773f3b734db66e8a16cc77bc7f2 mozilla-firefox-2.0_rc2-sk.xpi 165136
+RMD160 a1d53a31c011c8fb5703573fd2ed541ce3232b5f mozilla-firefox-2.0_rc2-sk.xpi 165136
+SHA256 02a206e7cc111ed4c93ef99abc009952e983852570897b3334d2ab19765280f7 mozilla-firefox-2.0_rc2-sk.xpi 165136
+MD5 711b18d95bb10b56e6270f630c6102fd mozilla-firefox-2.0_rc2-sl.xpi 155073
+RMD160 e520629f4b1ebf80d0be0173191bd5fdb6323615 mozilla-firefox-2.0_rc2-sl.xpi 155073
+SHA256 3f7273a26a99fb540c0fda96d029217f689107ce678428fbba87c7f12b6a1f71 mozilla-firefox-2.0_rc2-sl.xpi 155073
+MD5 10b6b93b7c2f36277fcd491ad180ddc3 mozilla-firefox-2.0_rc2-sv-SE.xpi 165978
+RMD160 784b17cc5c451f9639d71aa14049ffbddc7d5f6d mozilla-firefox-2.0_rc2-sv-SE.xpi 165978
+SHA256 e23f0ecbf34370dd6ca39632aef0ae1e8751dee87ebbf9bb298981122f5240e6 mozilla-firefox-2.0_rc2-sv-SE.xpi 165978
+MD5 71d18eab5038a9e93044d770cefb19e3 mozilla-firefox-2.0_rc2-tr.xpi 148752
+RMD160 ebcc9bb3e552d613752f6d82a300c44bf0c79120 mozilla-firefox-2.0_rc2-tr.xpi 148752
+SHA256 d7c2dd63ca6b6c1f12c0161e9ff805f7f91727f7ab71abb119e1994fa560d48a mozilla-firefox-2.0_rc2-tr.xpi 148752
+MD5 1a9c9f16a0c039dd0c6810b51686d460 mozilla-firefox-2.0_rc2-zh-CN.xpi 142814
+RMD160 264d573f5f0f53893d96501b34407d67591a378d mozilla-firefox-2.0_rc2-zh-CN.xpi 142814
+SHA256 bc8bac40da32860b0632c7cd042183e5fe30205f7ad1e4dce335b9bd82c21d59 mozilla-firefox-2.0_rc2-zh-CN.xpi 142814
+MD5 a4248ab59d66df3bb74e55f252dfff2c mozilla-firefox-2.0_rc2-zh-TW.xpi 142024
+RMD160 4f81c4c0039b02cd6c1a9f2114448f3d8ef73b5e mozilla-firefox-2.0_rc2-zh-TW.xpi 142024
+SHA256 13e4390567107faa46d2052384bdbe60bc5e755dc28e830c743c9e37273bd704 mozilla-firefox-2.0_rc2-zh-TW.xpi 142024
diff --git a/www-client/mozilla-firefox/mozilla-firefox-2.0_rc2.ebuild b/www-client/mozilla-firefox/mozilla-firefox-2.0_rc2.ebuild
new file mode 100644
index 000000000000..db2cd645d0a4
--- /dev/null
+++ b/www-client/mozilla-firefox/mozilla-firefox-2.0_rc2.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_rc2.ebuild,v 1.1 2006/10/07 17:43:53 genstef Exp $
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools
+
+PATCH="mozilla-firefox-2.0_rc1-patches-1.4"
+LANGS="ar be bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN hu it ja ko
+lt mk mn nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN zh-TW"
+SHORTLANGS="fy-NL pt-PT nn-NO"
+MY_PV=${PV/_}
+
+DESCRIPTION="Firefox Web Browser"
+HOMEPAGE="http://www.mozilla.org/projects/firefox/"
+
+KEYWORDS="~alpha ~amd64 ~sparc ~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
+ http://gentooexperimental.org/~genstef/dist/${PATCH}.tar.bz2"
+
+# These are in
+#
+# http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/linux-i686/xpi/
+#
+# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done
+for X in ${LANGS} ; do
+ SRC_URI="${SRC_URI}
+ linguas_${X/-/_}? ( http://gentooexperimental.org/~genstef/dist/${P}-xpi/${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X/-/_}"
+done
+for X in ${SHORTLANGS} ; do
+ SRC_URI="${SRC_URI}
+ linguas_${X%%-*}? ( http://gentooexperimental.org/~genstef/dist/${P}-xpi/${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.11.1-r1
+ >=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 ${A%bz2*}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
+ newmenu "${FILESDIR}"/icon/mozillafirefox-1.5.desktop \
+ mozillafirefox-2.0.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
+}