From a61faab9d1cbd935d60571f442fd5a716c7854bd Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Tue, 11 Mar 2008 17:48:12 +0000 Subject: [PATCH] added ebuild for fx3.0b4 --- www-client/mozilla-firefox-bin/Manifest | 35 ++++ .../mozilla-firefox-bin-3.0_beta4.ebuild | 149 ++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 www-client/mozilla-firefox-bin/Manifest create mode 100644 www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0_beta4.ebuild diff --git a/www-client/mozilla-firefox-bin/Manifest b/www-client/mozilla-firefox-bin/Manifest new file mode 100644 index 0000000..4c8db3a --- /dev/null +++ b/www-client/mozilla-firefox-bin/Manifest @@ -0,0 +1,35 @@ +DIST firefox-3.0b4.tar.bz2 8903418 RMD160 a31bf432ed198ad8464f6af205719b7f94921393 SHA1 80305ab295f37095957b5e89695902725d0b2300 SHA256 362c1158077437334d0bf91e6b86cc32f479c296cff6034e1147c20ee77f81cf +DIST mozilla-firefox-3.0b4-ar.xpi 175534 RMD160 cdbbd29b822abfaefc1e0e3f3bc41e3ea878a2c2 SHA1 69eeb25789ee8af0c624b32d040730d202af966d SHA256 419c367ec20b3db3b720a24b5c7b70e2c4a0353c8364f9665e5f7112e47984c1 +DIST mozilla-firefox-3.0b4-be.xpi 170534 RMD160 6106bf76dea1ebed9ece203d494e3060bcc89626 SHA1 75d52a02352494eec569c594c68743742073c979 SHA256 c2ce4bb2dbd7cce028a60daa555435d6b3a82a114935d92598965ff0474c6705 +DIST mozilla-firefox-3.0b4-ca.xpi 190090 RMD160 9beb4d258191b5d0a3f897d6118a465528bcddcb SHA1 3ef8035ad1639e6a04714f8706d39fe8cff76b92 SHA256 22ac1374fb6c986639764c70b27020d4d949b981dcebec03276567aa2f6d9322 +DIST mozilla-firefox-3.0b4-cs.xpi 181589 RMD160 7373d69576ef98a514174387b38576a7fd854092 SHA1 9ae7a6b2ebcf7f5ba3e8b263992dc9199bfb1aa6 SHA256 33e2318a3a6df6875b5ac59a6bf094f27b18e3f22e6dd769d54dd2f988c32ea5 +DIST mozilla-firefox-3.0b4-de.xpi 181524 RMD160 1a04ea9bedc0100a2ba69ad96bb0fcde2e87ed46 SHA1 39284363a3c4e3d133ccc2b869622d4df6e65666 SHA256 54bbf8eb0d9ed773cd2f3000304a7e51e83919747ab97fe822203113a3d50f33 +DIST mozilla-firefox-3.0b4-es-ES.xpi 162570 RMD160 f4e293c98626644f53ac956c5cd724b3e37560e4 SHA1 d8d649b57bcb34c3ef923697cfa9579865b7178d SHA256 837cca0c7e1eb4e82e407c7a9d46b3ecf8b30b0d05e3bdb828e392f1d21dbe0c +DIST mozilla-firefox-3.0b4-eu.xpi 170473 RMD160 4f2295c9e13d48b27ced5483183af735d0fc524c SHA1 3fea48c72c57cde6cbafb083460da87c715a3db9 SHA256 7c132f06d33583f1d752a33c9d4f314806e94f7cea1349dacd2704331db88071 +DIST mozilla-firefox-3.0b4-fi.xpi 172949 RMD160 d313006b223385c50665237d9a390b050553cd52 SHA1 e2fa4655340e9e355b352f434c2428fee82b9fb2 SHA256 d6293fe9f1b026e8c1cce70da6b9a95535d30c55ed5d35bc834c23b402aa50f0 +DIST mozilla-firefox-3.0b4-fr.xpi 188648 RMD160 afe23eb9a99c12999ad0b8bdc786c8ce9552bf86 SHA1 b63a451eeb048c358fe38d07d74e42179059d8ca SHA256 4060eb01af3a36f3a9a2985f6e89c4eb9d15d8eac138bc4f66adf9947c1c2a57 +DIST mozilla-firefox-3.0b4-fy-NL.xpi 183515 RMD160 db47c2fe59e8cb9af08e201c8ed81e7639eee1e7 SHA1 9253d87aa08d61f4b20f7151cfd24f487c251288 SHA256 adae4e4ae8388c8c414c9dcb6ccade7cb7bf74927085b0456e57ebaf6378a3fa +DIST mozilla-firefox-3.0b4-ga-IE.xpi 170987 RMD160 fc820320e3510c308d6796dc2162f0da61c9c648 SHA1 a07c1ec2c9577b728f31c511f1b6dac699166860 SHA256 89145607b8da5f3f6f97398da8873219cfe2e8119d09360f2b7814adc8fb678c +DIST mozilla-firefox-3.0b4-gu-IN.xpi 190681 RMD160 0a3e52930a8ee383451306a143dab2aca328496d SHA1 00e0d7ff74c45d180b51e65aec259e81369aeac7 SHA256 bca44199066cb861f2ca9e35e8d2e1caf2456cc8344f9ac908f403791eeb4e99 +DIST mozilla-firefox-3.0b4-he.xpi 172406 RMD160 7164d697cc4634b8b29a2d1d13657cf24164cf76 SHA1 fb70e3a1271c22a899365d82e8e58a174443cc42 SHA256 e8c14a8236f9812485300b61a13819c33e3bda861471bc705b2f41eacd81925f +DIST mozilla-firefox-3.0b4-hu.xpi 201580 RMD160 c1fef3481a8c87c47ae2e61cae1bceb252661707 SHA1 e2e84429862a4a06077b96c6545725baa4c6f239 SHA256 394b2993969310847a8ebf24ae41158332d1c91abc8d16843121bafcfe237d0a +DIST mozilla-firefox-3.0b4-it.xpi 160301 RMD160 f895ccbcd1143498ac038159a2a18aea1d9cf69e SHA1 be6f36e6b10ac18c418ec0100ee901b8b180bb04 SHA256 98d456fa7b1d00aa313627fd384e753cb9ab25fa0e18a99c9e4fb9e08d40c479 +DIST mozilla-firefox-3.0b4-ja.xpi 183648 RMD160 054bf948d6f2d58f752990e38e84198cb8d516dc SHA1 1a952ec691767dea14fb83fc77fc492e5cc3befa SHA256 181375fabfab108a2adb7aa9735b3c73d4fe66ba90b79fb7f467a26f8302a580 +DIST mozilla-firefox-3.0b4-ka.xpi 197368 RMD160 e842d78deb8419b907732a9e76128c36ee206094 SHA1 db196b7779b68710fadef8650cde8c9661fbffec SHA256 448036263911db526c384f558c888cec8b61bdfd0239bd86707288f7d99e77f7 +DIST mozilla-firefox-3.0b4-ko.xpi 161469 RMD160 839f5c45e913a38a55ea476cbb024c7b69f6bf21 SHA1 89802c9f5014dd997a0e06c84a7635281f5ce8fc SHA256 edce3ff067f499b38e4e2e84a830920b99ebb268ff1757e25b38a03217d5dcdf +DIST mozilla-firefox-3.0b4-lt.xpi 192327 RMD160 cf33028176460a6f960572e3ca406cd587bf3863 SHA1 2c2ea404afcfed9372689bb8b5499f7546f3a4b6 SHA256 d0474bee8626dde86edfa64667ac26b52d15866f4f33fb81671e89ffc909e31d +DIST mozilla-firefox-3.0b4-nb-NO.xpi 181377 RMD160 5ffa830982a79edacd2351f1f9a88ea503824bcd SHA1 d9fb1c0a43c864040efe4d8c931954d4a8e7865e SHA256 eb6ffd25543612ba6aebf5823dc7b373b527c7966b994f199bb84e2ddab3f6fc +DIST mozilla-firefox-3.0b4-nl.xpi 188231 RMD160 50302ffb390a21f9316580b47b14c9b60f4a9d0a SHA1 f5642bd2382dd5bfdfa4b3f64bd1bac94c7539c8 SHA256 1099aa73e7aebbf233af9e65715a6c1fff09151d2c893593f2dfe7a62abe2f06 +DIST mozilla-firefox-3.0b4-pa-IN.xpi 184426 RMD160 3877d58f8d36dd12fbc3b6796ea60ce3aede5ede SHA1 908e79dde394eff89c3cb7cc6c83882598cd9d62 SHA256 7c33e5be8aabea271e6cee63f80907baa20fc37cc4b83657118838554dd78073 +DIST mozilla-firefox-3.0b4-pl.xpi 192453 RMD160 f0e538316be326e37574c8eae8d6699b9d1a6613 SHA1 ede7c9994efe4fcc14b195bb69002c3d11a2336a SHA256 2689be10057dd4bf4de9928bbb5e17a0b3306f7842bebf925bcf9ddd5f676be8 +DIST mozilla-firefox-3.0b4-pt-BR.xpi 169681 RMD160 a9c2094daf35e750ee571293ec5316dda69fb473 SHA1 3a5453331668b637e16c227a4e47538e1a08250c SHA256 e208ecfe4ab9ee5e77f189cc18171a65bfd47194fcd1f0cdaa107e78caaf5de3 +DIST mozilla-firefox-3.0b4-pt-PT.xpi 173102 RMD160 6028108d0514626999e0225ea38bea68680a1b67 SHA1 39e71982d41e9d16e320a4520dd02a94cb43fbec SHA256 5f59a71ccca7ac70789b6049d19f94fc87d9d18d98eb566004fd88ef5c521076 +DIST mozilla-firefox-3.0b4-ro.xpi 179355 RMD160 6b881fe6fcab366fee9d6b486815c9840b376c28 SHA1 2371912788f531cdb8c15d4c6710cbdd774463ef SHA256 75cbf29a6aa5fd129937fdbf2dce318b10f8b222616ebc738714a74360fa5dbf +DIST mozilla-firefox-3.0b4-ru.xpi 188110 RMD160 0a17475252b75fd024400a4b1c685ac4b895126e SHA1 4895b0709f0dba6ed2ff4cd386f1cf06a740f552 SHA256 ab6d0686ff199d5c08c7fbee8500d1a3756b40d0685b53cde75be4c2d124e42b +DIST mozilla-firefox-3.0b4-sk.xpi 180622 RMD160 453c97414bb7deeae81aae2c7b705d54085d05e8 SHA1 af39d137890b3df3d2f26f79cb2ca716b67a6921 SHA256 937615e02d7ebd4ba73055b973efe0a7e4d14c8a62886841194751ebf20a2c6c +DIST mozilla-firefox-3.0b4-sv-SE.xpi 182357 RMD160 8767fd8520234cd6c1de8d153971b8d33f6a25cd SHA1 74a5ccf687cb64f564a07302c459b7a98285dc1e SHA256 bc1204a16124b3ed4dd36aef3af2263734cdcff2e4ed6fcb361367ec24454b8c +DIST mozilla-firefox-3.0b4-tr.xpi 166613 RMD160 7b64f3b40c4fb97a5a56ffc458eaacd638ca8ce9 SHA1 25a81f5ca334d3c4fe48da32b5d51ba30a92adc3 SHA256 4575af8db6b702eb493bec7309eed6027fac4bb683adbda401e39b9e69672e66 +DIST mozilla-firefox-3.0b4-uk.xpi 180644 RMD160 69f1c67b4d307ab4536390fb425e499890526710 SHA1 20e443b3997bd52f8be2eea790b8e06f7e3171ac SHA256 4a1f2b27dba5104227d23c31d488a66e54b6bab2c1250a1db2184c7ba90a0413 +DIST mozilla-firefox-3.0b4-zh-CN.xpi 154209 RMD160 ca09b7551e03221a0fdd5c3ddc861e1f4274b6da SHA1 bb6047621c6d58746a919c43f211ec5fc1ae4364 SHA256 88a0b3a179bb1e9411da2d3261c19d6a40977eebf5debf8306b5df353596cd0b +DIST mozilla-firefox-3.0b4-zh-TW.xpi 164738 RMD160 d1077348eec8597150cdb8c7ac1f3a3a261b3f2b SHA1 15a630f0580c157515e5c5231cc3f2c94dec8d81 SHA256 f6fe304a16dbfe02cd0d9b4a73019abc27396505e6f4c7270cc553a38807337d +EBUILD mozilla-firefox-bin-3.0_beta4.ebuild 4398 RMD160 c5240702838e0f6d86f1c25df1ab454601bfbdcd SHA1 f7e1dca7d6bf8b0d321929afeeee522e846e278f SHA256 746e5e63c4e2781290a6f222da74353b9bd3a8a1dab2bac90c106365db28b5e8 diff --git a/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0_beta4.ebuild b/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0_beta4.ebuild new file mode 100644 index 0000000..d5e7eb0 --- /dev/null +++ b/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0_beta4.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0_beta3.ebuild,v 1.1 2008/02/13 08:54:11 armin76 Exp $ + +inherit eutils mozilla-launcher multilib mozextension + +LANGS="ar be ca cs de es-ES eu fi fr fy-NL ga-IE gu-IN he hu it ja ka ko lt nb-NO nl pa-IN pl pt-BR pt-PT ro ru sk sv-SE tr uk zh-CN zh-TW" +NOSHORTLANGS="pt-BR zh-CN" + +MY_PV=${PV/_beta/b} +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Firefox Web Browser" +SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/linux-i686/en-US/firefox-${MY_PV}.tar.bz2" +HOMEPAGE="http://www.mozilla.com/firefox" +RESTRICT="strip" +QA_EXECSTACK="opt/firefox/extensions/talkback@mozilla.org/components/libqfaservices.so" +QA_TEXTRELS="opt/firefox/extensions/talkback@mozilla.org/components/libqfaservices.so" + +KEYWORDS="-* ~amd64 ~x86" +SLOT="0" +LICENSE="MPL-1.1 GPL-2 LGPL-2.1" +IUSE="restrict-javascript" + +for X in ${LANGS} ; do + SRC_URI="${SRC_URI} + linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P/-bin}-xpi/${MY_P/-bin/}-${X}.xpi )" + IUSE="${IUSE} linguas_${X/-/_}" + # english is handled internally + if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then + SRC_URI="${SRC_URI} + linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P/-bin}-xpi/${MY_P/-bin/}-${X}.xpi )" + IUSE="${IUSE} linguas_${X%%-*}" + fi +done + +DEPEND="app-arch/unzip" +RDEPEND="x11-libs/libXrender + x11-libs/libXt + x11-libs/libXmu + x86? ( + >=x11-libs/gtk+-2.2 + =virtual/libstdc++-3.3 + ) + amd64? ( + >=app-emulation/emul-linux-x86-baselibs-1.0 + >=app-emulation/emul-linux-x86-gtklibs-1.0 + app-emulation/emul-linux-x86-compat + ) + >=www-client/mozilla-launcher-1.41" + +PDEPEND="restrict-javascript? ( x11-plugins/noscript )" + +S="${WORKDIR}/firefox" + +pkg_setup() { + # This is a binary x86 package => ABI=x86 + # Please keep this in future versions + # Danny van Dyk 2005/03/26 + has_multilib_profile && ABI="x86" +} + +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 mozilla-firefox does not support the ${LANG} LINGUA" + done +} + +src_unpack() { + unpack firefox-${MY_PV}.tar.bz2 + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_unpack "${MY_P/-bin/}-${X}.xpi" + done + if [[ ${linguas} != "" ]]; then + einfo "Selected language packs (first will be default): ${linguas}" + fi +} + +src_install() { + declare MOZILLA_FIVE_HOME=/opt/firefox + + # Install firefox in /opt + dodir ${MOZILLA_FIVE_HOME%/*} + touch "${S}"/extensions/talkback@mozilla.org/chrome.manifest + mv "${S}" "${D}"${MOZILLA_FIVE_HOME} + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P/-bin/}-${X}" + done + + local LANG=${linguas%% *} + if [[ -n ${LANG} && ${LANG} != "en" ]]; then + elog "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-bin + install_mozilla_launcher_stub firefox-bin ${MOZILLA_FIVE_HOME} + + # Install icon and .desktop for menu entry + doicon "${FILESDIR}"/icon/${PN}-icon.png + domenu "${FILESDIR}"/icon/${PN}.desktop + + # revdep-rebuild entry + insinto /etc/revdep-rebuild + doins "${FILESDIR}"/10firefox-bin + + # install ldpath env.d + doenvd "${FILESDIR}"/71firefox-bin +} + +pkg_preinst() { + declare MOZILLA_FIVE_HOME=/opt/firefox + + # Remove entire installed instance to prevent all kinds of + # problems... see bug 44772 for example + rm -rf "${ROOT}"${MOZILLA_FIVE_HOME} +} + +pkg_postinst() { + use amd64 && einfo "NB: You just installed a 32-bit firefox" + update_mozilla_launcher_symlinks +} + +pkg_postrm() { + update_mozilla_launcher_symlinks +}