diff options
author | Stuart Longland <redhatter@gentoo.org> | 2006-08-04 23:28:30 +0000 |
---|---|---|
committer | Stuart Longland <redhatter@gentoo.org> | 2006-08-04 23:28:30 +0000 |
commit | eb20f8029a9900f7ac09ed461074b000d4ae35a1 (patch) | |
tree | 9e6457da633320161bf168f17042381b844a3721 /www-client | |
parent | Adding perl dep; fixed header; fixed DEPEND (diff) | |
download | gentoo-2-eb20f8029a9900f7ac09ed461074b000d4ae35a1.tar.gz gentoo-2-eb20f8029a9900f7ac09ed461074b000d4ae35a1.tar.bz2 gentoo-2-eb20f8029a9900f7ac09ed461074b000d4ae35a1.zip |
Bumped ~arch to 1.5.0.6.
(Portage version: 2.1-r1)
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/mozilla-firefox/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/mozilla-firefox/files/digest-mozilla-firefox-1.5.0.6 | 96 | ||||
-rw-r--r-- | www-client/mozilla-firefox/mozilla-firefox-1.5.0.6.ebuild | 295 |
3 files changed, 398 insertions, 1 deletions
diff --git a/www-client/mozilla-firefox/ChangeLog b/www-client/mozilla-firefox/ChangeLog index c1af4b53ad70..4c9d074af72a 100644 --- a/www-client/mozilla-firefox/ChangeLog +++ b/www-client/mozilla-firefox/ChangeLog @@ -1,6 +1,12 @@ # 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.174 2006/08/01 03:29:26 tsunam Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.175 2006/08/04 23:28:30 redhatter Exp $ + +*mozilla-firefox-1.5.0.6 (04 Aug 2006) + + 04 Aug 2006; Stuart Longland <redhatter@gentoo.org> + +mozilla-firefox-1.5.0.6.ebuild: + Bumped ~arch to 1.5.0.6. 01 Aug 2006; Joshua Jackson <tsunam@gentoo.org> mozilla-firefox-1.5.0.5.ebuild: diff --git a/www-client/mozilla-firefox/files/digest-mozilla-firefox-1.5.0.6 b/www-client/mozilla-firefox/files/digest-mozilla-firefox-1.5.0.6 new file mode 100644 index 000000000000..ccf37fb7f74c --- /dev/null +++ b/www-client/mozilla-firefox/files/digest-mozilla-firefox-1.5.0.6 @@ -0,0 +1,96 @@ +MD5 3a659d384744cab77f90920f6d529c89 firefox-1.5.0.6-source.tar.bz2 35518160 +RMD160 3981e37a302cb6d03bc686f8e03bc057dd1a132f firefox-1.5.0.6-source.tar.bz2 35518160 +SHA256 79e47279d839914e5052e1b1f21588c51d7f62c3f5e32205f790a60cafdbb5ac firefox-1.5.0.6-source.tar.bz2 35518160 +MD5 dbc73889829ece1456863fcf66b072c2 firefox-ar-1.5.0.6.xpi 153269 +RMD160 63dbd90e7c2f2c2eb7e9b24b750b2507fa5f6d5e firefox-ar-1.5.0.6.xpi 153269 +SHA256 40fb5f92b2a64207b138fcd6d78d5d6ac0b3b6b8fe37a48f657d222514968b1f firefox-ar-1.5.0.6.xpi 153269 +MD5 84713d13c26d7cb003dfd338b74bdc40 firefox-ca-1.5.0.6.xpi 161283 +RMD160 8a255c3bd531ab5b9ca08d2eccc844efe60fdba4 firefox-ca-1.5.0.6.xpi 161283 +SHA256 fbe6bdda6e1c5270eb26db916e6e3bf0e1503b5dfaac68fdbc4c677b90864db9 firefox-ca-1.5.0.6.xpi 161283 +MD5 afacd6c0d14b60f2d084e6f489e8e0cc firefox-cs-1.5.0.6.xpi 153054 +RMD160 0a913e4f5c2d6909b71502673e479581835f5912 firefox-cs-1.5.0.6.xpi 153054 +SHA256 2d2e9a981fbe7ea8247b39232a0d1c8dbd7bb34a3b62ac9620630e0f62976123 firefox-cs-1.5.0.6.xpi 153054 +MD5 caa6760c924ae02f58d3da573f29c415 firefox-da-1.5.0.6.xpi 142462 +RMD160 f0cdb5de5f16570ac4b8b7105ec0b7c40ef86287 firefox-da-1.5.0.6.xpi 142462 +SHA256 9e05d1be88be551f39f87b386fbe99f84e2a113dc1ab243159b1c6dfcfeba8e4 firefox-da-1.5.0.6.xpi 142462 +MD5 db3ba961a0591a06d77bc7c320ebe9cd firefox-de-1.5.0.6.xpi 141050 +RMD160 2687b9133a9cfb89c3081f7fa930f6aa905ba24b firefox-de-1.5.0.6.xpi 141050 +SHA256 0e103b17b48c8a69176bec804f0632b7ee3ba8d50e6e3af09e0217549d786c6a firefox-de-1.5.0.6.xpi 141050 +MD5 696c024ded72dab865d08be080405da9 firefox-el-1.5.0.6.xpi 146942 +RMD160 1472b48070d45403dd0e0ae47d3eb5f4af505261 firefox-el-1.5.0.6.xpi 146942 +SHA256 378a84594ff2f39cc8aa7a9a4b109035df1c46174816ab115bb009b4829c5dda firefox-el-1.5.0.6.xpi 146942 +MD5 8edf7e23711d15e1e42fe46133642557 firefox-en-GB-1.5.0.6.xpi 139579 +RMD160 762305a5b3b709eaf9b49cb062da2ffa23564ee6 firefox-en-GB-1.5.0.6.xpi 139579 +SHA256 cbc41b4578a84aa60fee639b9c42c4e9e61fe0095e4c53047abf1beef62aedd3 firefox-en-GB-1.5.0.6.xpi 139579 +MD5 3b9b56c450ed1858c2bb663dfbb5f038 firefox-es-AR-1.5.0.6.xpi 146127 +RMD160 35525228dff43cab7bec6009f10f05564fb60b72 firefox-es-AR-1.5.0.6.xpi 146127 +SHA256 98163323efd3c75dc80c89b8953cf342d2d8127fb9215ad9f46a601c7dd58fc9 firefox-es-AR-1.5.0.6.xpi 146127 +MD5 59d62ea546a6c2229fca3bca4fcf5f25 firefox-es-ES-1.5.0.6.xpi 132483 +RMD160 ddd65e32db36406e03b2fa9de4dc6ef4a16ca2ff firefox-es-ES-1.5.0.6.xpi 132483 +SHA256 bd7a3ca814847dbe8f72ba5b053b5895cd2dd8f6b5b9e88cdd5062853b55a4b0 firefox-es-ES-1.5.0.6.xpi 132483 +MD5 3a0886ffb20b1951a5c4b3808bbdd62d firefox-fi-1.5.0.6.xpi 143015 +RMD160 9c5b8b4e5140d5ba5c65650f9780c206c334b053 firefox-fi-1.5.0.6.xpi 143015 +SHA256 2dfb245b10e239aa471967e33e13ddbd8b4ad9645cfe6cee5f8b5f205baefb0b firefox-fi-1.5.0.6.xpi 143015 +MD5 a77ec6225ece78fa9f711090fcb5b529 firefox-fr-1.5.0.6.xpi 203231 +RMD160 e97cffd2c474b91c9d5957da81d80635d460a01d firefox-fr-1.5.0.6.xpi 203231 +SHA256 ebde77b39e7fcea80199e40d120a5071799e9b9f8f7e35d62b8ee07b8e4b02ee firefox-fr-1.5.0.6.xpi 203231 +MD5 5f905dfd59ff3efb15e17b572e6063c4 firefox-ga-IE-1.5.0.6.xpi 144794 +RMD160 fb4601a4f317fa9e80ea1cac17d2cc3a39bfb066 firefox-ga-IE-1.5.0.6.xpi 144794 +SHA256 bd267da3ed40487574b974cdf12603dc791c8c5fa2d732ccf757419e086e5591 firefox-ga-IE-1.5.0.6.xpi 144794 +MD5 c5e25ee12bba4986f15b993b4320dda4 firefox-he-1.5.0.6.xpi 144977 +RMD160 8f72979436458c3138fc2fc8a0772a54043ab52f firefox-he-1.5.0.6.xpi 144977 +SHA256 b0f72dc9ecbb9ddb49258b33dbe5b974f818864d758e14f0af23989f1f0982c6 firefox-he-1.5.0.6.xpi 144977 +MD5 0502bb8089bb113d010c0f17e7181b31 firefox-hu-1.5.0.6.xpi 154453 +RMD160 60c998d7ae6d7ab2fce3d38657e2b061e61af6fc firefox-hu-1.5.0.6.xpi 154453 +SHA256 a943d31e9d4e843695a8e8fae675ecdb0777c9550b66eeb26216b2ccae16ea65 firefox-hu-1.5.0.6.xpi 154453 +MD5 77e440473453e0c34212f0654098e47d firefox-it-1.5.0.6.xpi 156720 +RMD160 41f04a04e0d8f0af57f59cd9bdd39b6545ac1056 firefox-it-1.5.0.6.xpi 156720 +SHA256 555a93abd310cf43d19032b77b87eb11237c8ea73dbe64d48eb983a2f818bd9d firefox-it-1.5.0.6.xpi 156720 +MD5 40d1c2cc89a0bcb37f9a60f94c287ab3 firefox-ja-1.5.0.6.xpi 162444 +RMD160 5ed3ac6c7d0a9dd26412f3a48a732d646fdaf7a8 firefox-ja-1.5.0.6.xpi 162444 +SHA256 30ad5e5e2e1d2489e7b086994907f05aa6453afb482914bdc065853058815880 firefox-ja-1.5.0.6.xpi 162444 +MD5 d056e9308e13f6636701ed902dd8f031 firefox-ko-1.5.0.6.xpi 149477 +RMD160 65803e31220ecd21befdbd05997960164fb45370 firefox-ko-1.5.0.6.xpi 149477 +SHA256 9e77a9a057fd249970613408a5bfd1ec2c173fe0560cec195b879c02da8182da firefox-ko-1.5.0.6.xpi 149477 +MD5 3d35ff1006e549660fd7b1846af03267 firefox-mk-1.5.0.6.xpi 162212 +RMD160 1adb226dfac8ab33762572212b0aa98ad32cc71b firefox-mk-1.5.0.6.xpi 162212 +SHA256 83b96cfed9492f935caae9e0b747cc104cc9f85076bf7fb54bda704049514312 firefox-mk-1.5.0.6.xpi 162212 +MD5 b1f0e3c8701680294c58b3a6c35ab39c firefox-nb-NO-1.5.0.6.xpi 151778 +RMD160 88a9e2aecd5b704061a553a4272a2dca2642e540 firefox-nb-NO-1.5.0.6.xpi 151778 +SHA256 3e3978454e90703537908b2463d9fb5f607447192838a17d34f56a407af68341 firefox-nb-NO-1.5.0.6.xpi 151778 +MD5 4e58f7bf6dcfebaf5cd97f67e5fb9e15 firefox-nl-1.5.0.6.xpi 150930 +RMD160 41577f6043824bf30097874d53b52c718ea38b73 firefox-nl-1.5.0.6.xpi 150930 +SHA256 ce7c547b8134e2a4521953a87a111ee78cc77ca2413f71828cdc2f73d2b4ae43 firefox-nl-1.5.0.6.xpi 150930 +MD5 3aa4001db19744573bd15c161d731b49 firefox-pl-1.5.0.6.xpi 243665 +RMD160 df2f24e3b92a66793901b09524ce895bcedf42df firefox-pl-1.5.0.6.xpi 243665 +SHA256 709c8c00598a4752b1f33a32247672f813087cff7b529e6bf331fce76ef3e910 firefox-pl-1.5.0.6.xpi 243665 +MD5 513e8a760499985cd1e5173f3149ef5d firefox-pt-BR-1.5.0.6.xpi 143568 +RMD160 390da347883aa3e1b52b5d9a7265ddc9f7a2e564 firefox-pt-BR-1.5.0.6.xpi 143568 +SHA256 bef5fce1680a34e436a2a1f23ae2447985676bbbb6ea726a44de80ae0f392f71 firefox-pt-BR-1.5.0.6.xpi 143568 +MD5 738717be184cd98e14b1016a45219957 firefox-ro-1.5.0.6.xpi 144113 +RMD160 a34ea06f8e2bf49911307eaf05f0932985b7d92c firefox-ro-1.5.0.6.xpi 144113 +SHA256 13abb6381ab64ca221cab9b8e3be70ea19a0db9c5677eff57b822efc125094d7 firefox-ro-1.5.0.6.xpi 144113 +MD5 1c5585a21b994f1827f7ae69393178b6 firefox-ru-1.5.0.6.xpi 170083 +RMD160 a6bb12efbbdd4b5b17a88871f7341760b81c6df5 firefox-ru-1.5.0.6.xpi 170083 +SHA256 b69e605ca651029ad4e45001eb6dbe161387299c7d5cf2738ec6d53f34895afd firefox-ru-1.5.0.6.xpi 170083 +MD5 514385c0e563411260c1e7cde23b613c firefox-sk-1.5.0.6.xpi 153991 +RMD160 97f183e258ddab8b9fe473f5b37974beaeb87af8 firefox-sk-1.5.0.6.xpi 153991 +SHA256 6cdd9fce8ee38c9f6c25431902a9dd55fa3954fd8992f05fff84fc7398c27136 firefox-sk-1.5.0.6.xpi 153991 +MD5 72efef39bf222a330756936b01ba3783 firefox-sl-1.5.0.6.xpi 145205 +RMD160 0e2474935f188cddf0b2accfbb3889f08c99d482 firefox-sl-1.5.0.6.xpi 145205 +SHA256 91da2c789cb0bafd71f6ba153faca5f96b68fe394ed971bd3462b26a43dbe6f8 firefox-sl-1.5.0.6.xpi 145205 +MD5 adba40f112119d5c1c99f8e6c051d106 firefox-sv-SE-1.5.0.6.xpi 154914 +RMD160 47adae64fc805e0fb9e6ecfe34a3f76618f05bb2 firefox-sv-SE-1.5.0.6.xpi 154914 +SHA256 762fa5f7de2398fa12f35156be4e019dbc5c570725ceed16889726549b5e6643 firefox-sv-SE-1.5.0.6.xpi 154914 +MD5 33b8e63117cb765b8f941b4e9cb184ff firefox-tr-1.5.0.6.xpi 136158 +RMD160 c21c82c0a82679fb45b1c8cf662bad431e2ab393 firefox-tr-1.5.0.6.xpi 136158 +SHA256 cb56c5a00faf3f195f37440913d87a079b1c3219b7ea8a32267a17ffe3470c34 firefox-tr-1.5.0.6.xpi 136158 +MD5 dd37c170eb25ddf5bd2f36d4407c5be9 firefox-zh-CN-1.5.0.6.xpi 136417 +RMD160 6425aed32927b771fd8f3be21cfcfee57c1c0683 firefox-zh-CN-1.5.0.6.xpi 136417 +SHA256 5c718fe0c8a3c386bc6797fb548c8853f544d873d07e784e61852d88c7c23b02 firefox-zh-CN-1.5.0.6.xpi 136417 +MD5 e8cbecb12b2fed4d31653a01e874ccce firefox-zh-TW-1.5.0.6.xpi 128230 +RMD160 f1f8915a40dfcce0151fc6c54ce6954ee4bde3cb firefox-zh-TW-1.5.0.6.xpi 128230 +SHA256 f1c094aad592f1e09e93369f018e922fc972b63114e1f5ad9893128a4a1f1e44 firefox-zh-TW-1.5.0.6.xpi 128230 +MD5 6e4cf5702a4e8b7d877abf821c6ea70d mozilla-firefox-1.5.0.6-patches-0.1.tar.bz2 37065 +RMD160 bf2581e5eb5c50e8ff6323aa484317d0424831c2 mozilla-firefox-1.5.0.6-patches-0.1.tar.bz2 37065 +SHA256 4908af66ba31de56e6a75a29748fa81bec26656a28c327db0584c2dca2918cea mozilla-firefox-1.5.0.6-patches-0.1.tar.bz2 37065 diff --git a/www-client/mozilla-firefox/mozilla-firefox-1.5.0.6.ebuild b/www-client/mozilla-firefox/mozilla-firefox-1.5.0.6.ebuild new file mode 100644 index 000000000000..1c228796338e --- /dev/null +++ b/www-client/mozilla-firefox/mozilla-firefox-1.5.0.6.ebuild @@ -0,0 +1,295 @@ +# 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-1.5.0.6.ebuild,v 1.1 2006/08/04 23:28:30 redhatter Exp $ + +unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 + +inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools + +LANGS="ar ca cs da de el en-GB es-AR es-ES fi fr ga-IE he hu it ja ko mk nb-NO nl pl pt-BR ro ru sk sl sv-SE tr zh-CN zh-TW" +SHORTLANGS="es-ES ga-IE nb-NO sv-SE" +PVER="0.1" + +DESCRIPTION="Firefox Web Browser" +HOMEPAGE="http://www.mozilla.org/projects/firefox/" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}-source.tar.bz2 + mirror://gentoo/${P}-patches-${PVER}.tar.bz2" + +KEYWORDS="-* ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="MPL-1.1 NPL-1.1" +IUSE="java mozdevelop" + +for X in ${LANGS} ; do + SRC_URI="${SRC_URI} linguas_${X/-/_}? ( mirror://gentoo/firefox-${X}-${PV}.xpi )" + IUSE="${IUSE} linguas_${X/-/_}" +done + +for X in ${SHORTLANGS} ; do + SRC_URI="${SRC_URI} linguas_${X%%-*}? ( mirror://gentoo/firefox-${X}-${PV}.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 + +# Needed by src_compile() and src_install(). +# Would do in pkg_setup but that loses the export attribute, they +# become pure shell variables. +export MOZ_CO_PROJECT=browser +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 + +linguas() { + linguas= + local LANG + 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 + local SLANG + 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-${PV}-source.tar.bz2 ${P}-patches-${PVER}.tar.bz2 + + linguas + for X in ${linguas}; do + [[ ${X} != en ]] && xpi_unpack firefox-${X}-${PV}.xpi + done + + # Apply our patches + cd ${S} || die "cd failed" + EPATCH_SUFFIX="patch" \ + 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 || die "failed running eautoreconf" +} + +src_compile() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + mozconfig_config + + mozconfig_annotate '' --enable-extensions=default,typeaheadfind + mozconfig_annotate '' --disable-mailnews + #mozconfig_annotate '' --enable-native-uconv + 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} + + # Finalize and report settings + mozconfig_final + + # hardened GCC uses -fstack-protector-all by default, which breaks us + gcc-specs-ssp && append-flags -fno-stack-protector-all + # remove -fstack-protector because now it borks firefox + CFLAGS=${CFLAGS/-fstack-protector-all/} + CFLAGS=${CFLAGS/-fstack-protector/} + CXXFLAGS=${CXXFLAGS/-fstack-protector-all/} + CXXFLAGS=${CXXFLAGS/-fstack-protector/} + + append-flags -freorder-blocks -fno-reorder-functions + + # Export CPU_ARCH_TEST as it is not exported by default. + case $(tc-arch) in + amd64) [[ ${ABI} == "x86" ]] && CPU_ARCH_TEST="x86" || CPU_ARCH_TEST="x86_64" ;; + *) CPU_ARCH_TEST=$(tc-arch) ;; + esac + + export CPU_ARCH_TEST + + #################################### + # + # Configure and build + # + #################################### + + CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ + econf || die + + # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior + # to econf, but the quotes cause configure to fail. + sed -i -e \ + 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ + ${S}/config/autoconf.mk \ + ${S}/xpfe/global/buildconfig.html + + # 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} + + echo "" + einfo "Removing old installs though some really ugly code. It potentially" + einfo "eliminates any problems during the install, however suggestions to" + einfo "replace this are highly welcome. Send comments and suggestions to" + einfo "mozilla@gentoo.org" + rm -rf ${ROOT}${MOZILLA_FIVE_HOME} + echo "" +} + +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} + + linguas + for X in ${linguas}; do + [[ ${X} != en ]] && xpi_install ${WORKDIR}/firefox-${X}-${PV} + done + + local LANG=${linguas%% *} + if [[ ${LANG} != "" && ${LANG} != "en" ]]; then + ebegin "Setting default locale to ${LANG}" + sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \ + ${D}${MOZILLA_FIVE_HOME}/defaults/pref/firefox.js \ + ${D}${MOZILLA_FIVE_HOME}/defaults/pref/firefox-l10n.js + eend $? || 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 + # + #################################### + + ewarn "Installing includes and idl files..." + dodir ${MOZILLA_FIVE_HOME}/idl ${MOZILLA_FIVE_HOME}/include + cd ${S}/dist + cp -LfR include/* ${D}${MOZILLA_FIVE_HOME}/include || die "failed to copy" + cp -LfR idl/* ${D}${MOZILLA_FIVE_HOME}/idl || die "failed to copy" + + # Dirty hack to get some applications using this header running + dosym ${MOZILLA_FIVE_HOME}/include/necko/nsIURI.h \ + /usr/$(get_libdir)/${MOZILLA_FIVE_HOME##*/}/include/nsIURI.h + + + # Fix pkgconfig files and install them + insinto /usr/$(get_libdir)/pkgconfig + for x in ${S}/build/unix/*.pc; do + doins ${x} + done + + #################################### + # + # Some preferences, probably gentoo.org as start-page also + # + #################################### + + dodir ${MOZILLA_FIVE_HOME}/greprefs + cp ${FILESDIR}/gentoo-default-prefs.js ${D}/${MOZILLA_FIVE_HOME}/greprefs/all-gentoo.js + dodir ${MOZILLA_FIVE_HOME}/defaults/pref + cp ${FILESDIR}/gentoo-default-prefs.js ${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js + + # Install docs + dodoc LEGAL +} + +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 + + echo "" + ewarn "Please remember to rebuild any packages that you have built" + ewarn "against firefox. Some packages might be broken by the upgrade; if this" + ewarn "is the case, please search at http://bugs.gentoo.org and open a new bug" + ewarn "if one does not exist. Before filing any bugs, please move or remove ~/.mozilla" + ewarn "and test with a clean profile directory." + ewarn "Thank you! anarchy@gentoo.org." + + echo "" + einfo "Any regchrome errors can be ignored right now, this is due to" + einfo "mozilla-firefox-1.0.x. being unregistered with mozilla-launcher." + + epause 15 +} + +pkg_postrm() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + update_mozilla_launcher_symlinks +} |