summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2008-04-08 10:04:11 +0000
committerRaúl Porcel <armin76@gentoo.org>2008-04-08 10:04:11 +0000
commit82f882e615a91c6418369ca5b97fcaf5661e5a5c (patch)
tree77d4bcdaf4eff1a4c8b625126170f12eb37910a9 /app-office/mozilla-sunbird
parentUse.mask pcks11 and some cleanup, will fix some more later (diff)
downloadhistorical-82f882e615a91c6418369ca5b97fcaf5661e5a5c.tar.gz
historical-82f882e615a91c6418369ca5b97fcaf5661e5a5c.tar.bz2
historical-82f882e615a91c6418369ca5b97fcaf5661e5a5c.zip
Version bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-office/mozilla-sunbird')
-rw-r--r--app-office/mozilla-sunbird/ChangeLog8
-rw-r--r--app-office/mozilla-sunbird/Manifest35
-rw-r--r--app-office/mozilla-sunbird/mozilla-sunbird-0.8.ebuild228
3 files changed, 269 insertions, 2 deletions
diff --git a/app-office/mozilla-sunbird/ChangeLog b/app-office/mozilla-sunbird/ChangeLog
index 4d0d32c1903b..4eb533b33b98 100644
--- a/app-office/mozilla-sunbird/ChangeLog
+++ b/app-office/mozilla-sunbird/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/mozilla-sunbird
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.27 2008/03/17 12:13:44 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.28 2008/04/08 10:04:11 armin76 Exp $
+
+*mozilla-sunbird-0.8 (08 Apr 2008)
+
+ 08 Apr 2008; Raúl Porcel <armin76@gentoo.org>
+ +mozilla-sunbird-0.8.ebuild:
+ Version bump
17 Mar 2008; Raúl Porcel <armin76@gentoo.org> mozilla-sunbird-0.7.ebuild:
Fix LICENSE, thanks to zlin
diff --git a/app-office/mozilla-sunbird/Manifest b/app-office/mozilla-sunbird/Manifest
index f571e6a296df..5ab3c316e065 100644
--- a/app-office/mozilla-sunbird/Manifest
+++ b/app-office/mozilla-sunbird/Manifest
@@ -3,6 +3,7 @@ AUX icon/mozilla-sunbird-unbranded-icon.png 4862 RMD160 31c18ecb694c24476ea4b025
AUX icon/mozilla-sunbird-unbranded.desktop 188 RMD160 8338a27dc0f7a9b618b4b0994ce19ba1dd739c6e SHA1 dd77543a71ab37daa5ea1dbdb02a3a43de016766 SHA256 b2379ebdff6012c8e1f85891351a985fbe750787861058bdb7b08b44d1be53d8
AUX icon/mozilla-sunbird.desktop 178 RMD160 2f032684c794bbf6659ce631843661eeacf02acb SHA1 c481835c1905e35cee98bbb1b6029bf7a2f62d23 SHA256 f3ddcac36c7c6f10a4180c6ff77b377743841cb76eaf409b40e0568eede16469
DIST lightning-sunbird-0.7-source.tar.bz2 39951865 RMD160 f4ead53117fbbbe208dbdada01800446b800116d SHA1 aa98305783a6ea765a2ea83667ead8fd664cb379 SHA256 814628a87e803734e401a26b3beff46adeed47b0cb10f3241fe8fc6034f9baa1
+DIST lightning-sunbird-0.8-source.tar.bz2 37154747 RMD160 40aab90f240ccf76fdc4e725b3524d61bb0a30ec SHA1 462b4724b7aa129c21e2b38bcda6be62ed2b9500 SHA256 234b534d9478dc4f3b44d4685da54233baee90b365963fb683e37beadd61ae6e
DIST mozilla-sunbird-0.7-ca.xpi 103329 RMD160 018a441423878b6a09f086a3f8c0d2200087997b SHA1 6b4318d08360b2d3b7610fe196798dccef3bf406 SHA256 e513daed95d79e64e0d8ca9d7010121f79331978f580faf0e86e173098d7460d
DIST mozilla-sunbird-0.7-cs.xpi 103797 RMD160 ff84d19232aaf532f40263c718514ab146b93580 SHA1 4191a6f463d26a56c0e855defdfc44768929c43f SHA256 e25427e2842ef17ddd0eeea361b881fd14140eda8b23cf6857575d6f43e5d61a
DIST mozilla-sunbird-0.7-da.xpi 100903 RMD160 0ef774747d7fb261bf4dfa917a866bfe54d9d3dd SHA1 818ebd757cfd8301534e0a0009763f6faea5d3db SHA256 e743df1ea04056da774244dc1ea14b87235346439210294a26c830a12aa12fdd
@@ -30,6 +31,38 @@ DIST mozilla-sunbird-0.7-sl.xpi 103506 RMD160 e040beccca2f065d32d712510a3e4aa17b
DIST mozilla-sunbird-0.7-sv-SE.xpi 105175 RMD160 2cfe28c5928dd453f4d45ed3da6fbe54fff26e52 SHA1 4137d039f5aac23a74781be1e0b230ceae90bdf7 SHA256 97d9a08a713cbce4490d7c27dc779bcce38cf53dd7a208a355ac14ab518e5865
DIST mozilla-sunbird-0.7-tr.xpi 97238 RMD160 724e18a583cb75cd3c150a849609c0680abae10c SHA1 1e72d4a222f26a10e97e169546f7841e107471d2 SHA256 ba2668107e93e71ca169a711bd0888fed5fb76a0cd0189c94418bc4cddb9545b
DIST mozilla-sunbird-0.7-zh-CN.xpi 91681 RMD160 ed820e0f6e3fe7de1d41e8d0b4e81f90a7d8352a SHA1 a2213a9a007f474ed343a1ef3f0e6274e447c1a8 SHA256 f127b67e4f6fd65410552970f00de3b304465f74e0fabd23902ea856e799e53c
+DIST mozilla-sunbird-0.8-ca.xpi 106858 RMD160 026b3b89f3fb962a64b490cc4020f8fe68e77dd0 SHA1 d28bd69e588b1fddcd41fc93f355c03b95843e42 SHA256 27e08678f66c04fde8b6fe299b12a5cb9170dffe757851040167b848f274752f
+DIST mozilla-sunbird-0.8-cs.xpi 107057 RMD160 135ca8ea2026edc01d834442d95ca5039b546ba1 SHA1 3a364cd23c383e4e5637c253354481f7b865f440 SHA256 b070dd92ec0e68e8cfd671a00ddcbd1f98c8f909bc623c72d58b6e90e692ff3a
+DIST mozilla-sunbird-0.8-da.xpi 104206 RMD160 2a745bfb4c0bd4edcdff6ad5b7b3e1a337155234 SHA1 49b327d089a7e38e24e8be5d6050e0819f2e98f0 SHA256 bd0b05689ced40de58e3970ff8033ef9099eb0b212723e83ec4b4384a9b17912
+DIST mozilla-sunbird-0.8-de.xpi 99505 RMD160 8ef69af903a60b67997d7fc0b4bdd418359127cf SHA1 87eec382595bf27fc1dd656c736ffe056ff79840 SHA256 490b0c21c6bc1d941d78d9ac9f2e67211bb60f4cedb9a0052590d33f8189f422
+DIST mozilla-sunbird-0.8-es-AR.xpi 106336 RMD160 06c1839c247eab52f1cd19d1bc5c345fe2958be4 SHA1 5920881e82525071167476fd9491b9103636242b SHA256 c2b7bf3e7385278e020707d185dd5f927f51f1193432ae2917cbf1d531a4ffd4
+DIST mozilla-sunbird-0.8-es-ES.xpi 90980 RMD160 6ab2eb0404799032f5b777700d8219a79bd0e118 SHA1 c046e2c6ad362c2b767f1d323ec8d12eefd73099 SHA256 769b7d59b2ad9554f0ca2701f536484a3b20f4b092ad15d2aa10f848e656fec7
+DIST mozilla-sunbird-0.8-eu.xpi 103299 RMD160 976ede4f040a7559b72b907fce09e1db8b19cb28 SHA1 e75168f57107d73533a3495dc321f4dd529a1bd9 SHA256 28eaf32b621fcdfad0e948daa33c3c410c87207c3faa05bf876b063249956b18
+DIST mozilla-sunbird-0.8-fr.xpi 109915 RMD160 7bdecb7a4bd32c4c342868b5b1a59d7569ddc0e0 SHA1 283bf8b8ab773d4a3fa46e9a10e395d30d16cac5 SHA256 b7b779d2d44b693b5c03e6cc3ccd7be662310e01fc8697ffa43bc45d9d8f40aa
+DIST mozilla-sunbird-0.8-ga-IE.xpi 107248 RMD160 aaff3fc3367ca4fc2d8c4a73e1fddf800c1e2220 SHA1 28b047b3f71dc7bad267366b46a2d33f708b53d8 SHA256 4e9b33f5de743517d96d0e74699668950de0eb457e06d890b9c54e97a749dc72
+DIST mozilla-sunbird-0.8-hu.xpi 109656 RMD160 047f4208bd7207a5d0841ea15189f26ec5d169d7 SHA1 81dff36db537515aea5d8319812d41f1d8c7ca76 SHA256 2e3f712d553b8ae438faab6f12723cdd301f821fc94b3e19c7e33401c32ef5d4
+DIST mozilla-sunbird-0.8-it.xpi 93022 RMD160 9f339fa880fe22c21a24937c84333651c3d2bf1a SHA1 7666e348de39952eb4bbabf955253e626130d19a SHA256 e38f745a1243c567e906e09e5c1c036fc41e62e2877236dffa1ca8561a2e2c04
+DIST mozilla-sunbird-0.8-ja.xpi 114137 RMD160 376e247482a189a1a59da232ff720c5d18827fce SHA1 d4f6b773e53bdd002620800c8f81566bee5aad9f SHA256 f3d878bd664640d8a8217319e53c58da5539c688696100960f2ad847fb9a075d
+DIST mozilla-sunbird-0.8-ka.xpi 131540 RMD160 32a89bdebce46b147c945d1d68a7086d04419129 SHA1 fbfa86c1fbe778414d89296a55aeadec2ca32474 SHA256 73086818ba530951aa927fb701970a857b31615f78d3920828898f62673f2c0b
+DIST mozilla-sunbird-0.8-ko.xpi 98625 RMD160 07e4c954fc4d712696a2180a82b611f811576cd2 SHA1 0d70bcc8a6645d288efa5b8aabbde3db90de9904 SHA256 37e6500dba3c019026fcc56e18f715c90d4da6a2a4b86744efdb30454f76063c
+DIST mozilla-sunbird-0.8-lt.xpi 109029 RMD160 aafc6cc7ace5207e9d2e056a46749c6402ebbfb6 SHA1 d79e863932d3ca6d7b33004e58969e273d6670c9 SHA256 b84a93cec26498d103d8a1c79b4606d812cd900d429ecfeef3fc3ca3d3c79e40
+DIST mozilla-sunbird-0.8-mk.xpi 108185 RMD160 a7e9e544a529891af5c4bd0679e2f3a0606fde13 SHA1 a1d691ff76c24db06dae95ce71291d857cde8646 SHA256 e194b9e670ed8fea1c94bba2391923c9b7c9f67131099d15367d712143fd27fc
+DIST mozilla-sunbird-0.8-mn.xpi 71405 RMD160 dfd16638bff25090854254e5443a0176eb7857c3 SHA1 a92f0fb60848dfcb691e41a1d6d2ea62d2c79f73 SHA256 23ab817d3f37b0fac3e46ffce8c80588b829cdc8fadfe539a67ce92bf1e61d37
+DIST mozilla-sunbird-0.8-nb-NO.xpi 104807 RMD160 2e4b1ee371382612213143439b2d4a1a9d147f96 SHA1 088a22c9410861cdd01043e2b2dfa5c609a86055 SHA256 41af4aba3a566e282a20b5562ea03c0e57e68eb2590d9a7cb05727ba331621e1
+DIST mozilla-sunbird-0.8-nl.xpi 106484 RMD160 a8417648fef92c9c1e1da4518bdd677e68626313 SHA1 9b1bb46c56c2b11676a616e5dff531139da84b64 SHA256 5e821c70c9faf9b9023ba467ae34309f80871c43cb91c952f23589387ba616b2
+DIST mozilla-sunbird-0.8-pa-IN.xpi 82646 RMD160 a04c6ec387b0423ff24ec90f596ea9fe0700cb86 SHA1 5223e6dda2ceed97f8c745b6ca151ca2c8097cad SHA256 bbe339afab74af65ad068f34506f4dfa0128ac2d0d7fc14bffb83d6ed7158b67
+DIST mozilla-sunbird-0.8-patches-0.1.tar.bz2 9942 RMD160 95d81f0420e3bd59037c63b3f2063ac7b9679dcb SHA1 a9acb74ee4ffb8529241e0e3d1bbaa8868b7b73d SHA256 665e81db1cdac75cbcc98ffc229f4b50a90cc3631952c7ad98857e2c0aa3bef2
+DIST mozilla-sunbird-0.8-pl.xpi 110524 RMD160 8b9f8136e7eb0ddf6977aa7ca0fc5c9650ad8c08 SHA1 2953d29e27ca9d07770fd2968af985c8e4dbbc49 SHA256 45d54080960123ff9755a812315bbf97b5465f372599f6c5a074ebc1d66d8ed6
+DIST mozilla-sunbird-0.8-pt-BR.xpi 104949 RMD160 073eec3d268b6d0cbce974629b9bbc98b628d3fd SHA1 d203896821fb1ad037231a7c3918cef26d0981ef SHA256 e26a167f348b3f320e241a27791e3996cfa7c72c3e173de3312a912a2f14cd4f
+DIST mozilla-sunbird-0.8-pt-PT.xpi 104354 RMD160 271772f0e09c312c2925e0575e8765083127253a SHA1 6ed8520328c32abed68d3043d0bb92057d421f3f SHA256 953f37e9351b5149b6791d3818c5e6109e745050e9b2ed32b033103469020a58
+DIST mozilla-sunbird-0.8-ru.xpi 113416 RMD160 bdeea84fc3105b05e3b4fc8f3c9cf46d0561f2fb SHA1 2979af725e5133af304f7d146a5eb311fab5263a SHA256 682450cf17af8f20dd61106afff83ef3943a419cb94b50beea30981e005cf880
+DIST mozilla-sunbird-0.8-sk.xpi 110647 RMD160 4dab64bbb7a74055aef665780b959d47ffc1908b SHA1 7a57ab416278ecf5bf264c9f537503209cd427f8 SHA256 676556fa7a9bf6cb8ea905d38ef3b43ac1ce29f2749b53f2a7c43a9a460638fa
+DIST mozilla-sunbird-0.8-sl.xpi 106938 RMD160 ff0b72a11d5afd53c9a7ec313a95e6d090b4ceec SHA1 72c4eab6afedb1d8ef6db63b8551c7d54f6e2f39 SHA256 eeee2e9e922590cbec3124f2740c83b981a5ae26e90632cc5cc1f38c9120c41e
+DIST mozilla-sunbird-0.8-sv-SE.xpi 108696 RMD160 ff3e08d2e83be6cd618724f7dee086a9fdf69671 SHA1 2c28845f69c038284c89bd6381d7e61021ef14e6 SHA256 c3648fb144696411377f15a711b248e39cce444806f7bd017136d64bcd2add33
+DIST mozilla-sunbird-0.8-tr.xpi 99990 RMD160 ea556609e19c704efa511ce350bd5eea025e08d8 SHA1 c9e2c76b82fda591f7617f6ebe332fce557387f1 SHA256 3c9d921c5f6ac70eac823e29f5a09c67ed4d4d68be63ac3df28b8711251de7db
+DIST mozilla-sunbird-0.8-uk.xpi 108041 RMD160 2f254e9c10f7623d8860c8054bfe5a5385e6655a SHA1 5aacf29178d6ba55595c288189df285613086dc2 SHA256 68cb11d0437f89b90e77700d87a0d63b90ae416d67f0dce3a86a0b31865cace7
+DIST mozilla-sunbird-0.8-zh-CN.xpi 99526 RMD160 1c3b9fab504a002b3c820921e7491b8bf5ebe73b SHA1 d35cd7690a5787ca5809b7f85109dc61cdf12eea SHA256 7d4bb10104e7db761966a22efa6ba65e3a844f8c8c8c7eb6e7667a5fb4f0fa27
EBUILD mozilla-sunbird-0.7.ebuild 7071 RMD160 f2c4636e4b642dc8527f13a6b01fcbe37b656599 SHA1 37460d01e3380799d96e135198d3d627321d2278 SHA256 dcc54c88b509668c2863b26ac41a087c16adf13e341d2de72b99c61e3152d89b
-MISC ChangeLog 4044 RMD160 ae61389720a7650358f24d2586cf2d94885f2ff1 SHA1 ef47442c324e45fffc525d8f78a4bd4e123ee64e SHA256 14c804cb83db89b99dca68e195f0548f3d07da61b00ef0026f7b27caea0affce
+EBUILD mozilla-sunbird-0.8.ebuild 7084 RMD160 641ac15336081d9c5bc30070ff7aa7605a93f82a SHA1 32eb1568e7d32d8442fcea5caf8d274214d201ef SHA256 54a12ef61cdf8c27844cc86bc08f78d9ba768f78b3ba439934e27bdb4f373d9f
+MISC ChangeLog 4176 RMD160 b7e0ccb3044688fc5b4f31707ac9c59f6f68bf42 SHA1 98190531caff645141d7e285d31eb1a840bf1fb9 SHA256 1ebe0c83e70e4a681fafe3dd9057633330229c98f42eb4a0b0caa9fab6656332
MISC metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
diff --git a/app-office/mozilla-sunbird/mozilla-sunbird-0.8.ebuild b/app-office/mozilla-sunbird/mozilla-sunbird-0.8.ebuild
new file mode 100644
index 000000000000..0b5e8f166547
--- /dev/null
+++ b/app-office/mozilla-sunbird/mozilla-sunbird-0.8.ebuild
@@ -0,0 +1,228 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/mozilla-sunbird-0.8.ebuild,v 1.1 2008/04/08 10:04:11 armin76 Exp $
+
+WANT_AUTOCONF="2.1"
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools
+
+PATCH="${P}-patches-0.1"
+LANGS="ca cs da de es-AR es-ES eu fr ga-IE hu it ja ka ko lt mk mn nb-NO nl pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr uk zh-CN"
+NOSHORTLANGS="es-AR pt-BR zh-TW"
+
+MY_PN="${PN/mozilla-}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="The Mozilla Sunbird Calendar"
+HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html"
+IUSE="bindist"
+SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/source/lightning-${MY_P}-source.tar.bz2
+ mirror://gentoo/${PATCH}.tar.bz2"
+
+# These are in
+#
+# http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/langpacks/
+#
+# 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://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${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/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X%%-*}"
+ fi
+done
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
+
+RDEPEND=">=www-client/mozilla-launcher-1.55
+ >=dev-libs/nss-3.11.7"
+
+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=calendar
+export BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=1
+
+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 ${PN} does not support the ${LANG} LINGUA"
+ done
+}
+
+pkg_setup(){
+ if ! built_with_use x11-libs/cairo X; then
+ eerror "Cairo is not built with X useflag."
+ eerror "Please add 'X' to your USE flags, and re-emerge cairo."
+ die "Cairo needs X"
+ fi
+
+ if ! use bindist; then
+ 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"
+ fi
+
+ use moznopango && warn_mozilla_launcher_stub
+}
+
+src_unpack() {
+ unpack ${A%bz2*}bz2
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
+ done
+ if [[ ${linguas} != "" ]]; then
+ elog "Selected language packs (first will be default): ${linguas}"
+ fi
+
+ # Apply our patches
+ cd "${S}" || die "cd failed"
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}"/patch
+
+ eautoreconf
+}
+
+src_compile() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ mozconfig_annotate '' --enable-application=calendar
+ mozconfig_annotate '' --enable-extensions=default
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --with-system-nss
+ mozconfig_annotate '' --with-system-nspr
+
+ if ! use bindist; then
+ mozconfig_annotate '' --enable-official-branding
+ fi
+
+ # 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
+ replace-flags -fstack-protector-all -fstack-protector
+
+ ####################################
+ #
+ # 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}"/nsprpub/config/autoconf.mk \
+ "${S}"/xpfe/global/buildconfig.html
+
+ # This removes extraneous CFLAGS from the Makefiles to reduce RAM
+ # requirements while compiling
+ edit_makefiles
+
+ [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
+ emake ${jobs} || die
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ 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}"
+}
+
+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 "Copy of files failed"
+ touch "${D}"${MOZILLA_FIVE_HOME}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest
+ touch "${D}"${MOZILLA_FIVE_HOME}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
+
+ 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/sunbird.js \
+ ${MOZILLA_FIVE_HOME}/defaults/pref/sunbird-l10n.js || \
+ die "sed failed to change locale"
+ fi
+
+ # Create /usr/bin/sunbird
+ install_mozilla_launcher_stub sunbird ${MOZILLA_FIVE_HOME}
+
+ # Install icon and .desktop for menu entry
+ if ! use bindist; then
+ doicon "${FILESDIR}"/icon/${PN}-icon.png
+ domenu "${FILESDIR}"/icon/${PN}.desktop
+ else
+ doicon "${FILESDIR}"/icon/${PN}-unbranded-icon.png
+ newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
+ ${PN}.desktop
+
+ fi
+}
+
+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
+}
+
+pkg_postrm() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ update_mozilla_launcher_symlinks
+}