Portage is a package management system used by Gentoo Linux
# 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.33 2008/05/27 14:12:55 armin76 Exp $
27 May 2008; Raúl Porcel
-mozilla-sunbird-0.7.ebuild:
old
23 May 2008; Markus Meier
amd64 stable, bug #223045
21 May 2008; Raúl Porcel
x86 stable
19 Apr 2008; Raúl Porcel
mozilla-sunbird-0.8.ebuild:
Fix pango check, bug #218438
19 Apr 2008; Raúl Porcel
mozilla-sunbird-0.8.ebuild:
We need pango built with X use-flag bug #216377, fix linguas, bug #218147
*mozilla-sunbird-0.8 (08 Apr 2008)
08 Apr 2008; Raúl Porcel
+mozilla-sunbird-0.8.ebuild:
Version bump
17 Mar 2008; Raúl Porcel
Fix LICENSE, thanks to zlin
02 Feb 2008; Raúl Porcel
Bump patchset to fix bug #208212
28 Jan 2008; Raúl Porcel
Bump patchset to make it compile with gcc-4.3, wrt #204703
24 Jan 2008; Raúl Porcel
Bump patchset to fix building with nss-3.12
10 Dec 2007; Raúl Porcel
-mozilla-sunbird-0.5.ebuild:
old
06 Dec 2007; Samuli Suominen
amd64 stable wrt #201204
04 Dec 2007; Raúl Porcel
x86 stable
06 Nov 2007; Raúl Porcel
Bump patchset to add patches for bug 188636, among others, and use official
Mozilla tarball
03 Nov 2007; Raúl Porcel
Bump patchset to fix linking problem, bug #197694
*mozilla-sunbird-0.7 (26 Oct 2007)
26 Oct 2007; Raúl Porcel
+mozilla-sunbird-0.7.ebuild:
Version bump, bug 195040
31 Aug 2007; Raúl Porcel
Fix MAKEOPTS, bug #190755
17 Aug 2007; Christoph Mende
mozilla-sunbird-0.5.ebuild:
Stable on amd64 wrt bug #188716
14 Aug 2007; Raúl Porcel
x86 stable wrt #188716
25 Jul 2007; Raúl Porcel
files/icon/mozilla-sunbird.desktop,
files/icon/mozilla-sunbird-unbranded.desktop:
Fix desktop files, bug 185869
01 Jul 2007; Lars Weiler
Keyworded ~ppc; bug #183760.
*mozilla-sunbird-0.5 (29 Jun 2007)
29 Jun 2007; Raúl Porcel
-mozilla-sunbird-0.3.1.ebuild, +mozilla-sunbird-0.5.ebuild:
Version bump, bug 183609, old
13 Jun 2007; Raúl Porcel
mozilla-sunbird-0.3.1.ebuild:
Remove forced MAKEOPTS, bug 181722
08 Jun 2007; Raúl Porcel
mozilla-sunbird-0.3.1.ebuild:
Some small modifications, thanks to Cardoe for the suggestion
24 Mar 2007; Raúl Porcel
mozilla-sunbird-0.3.1.ebuild:
Bump patchset wrt bug 171901, patch by Roy Marples
10 Mar 2007; Markus Rothe
mozilla-sunbird-0.3.1.ebuild:
Added ~ppc64
08 Mar 2007; Raúl Porcel
mozilla-sunbird-0.3.1.ebuild:
Bump patchset for g/fbsd wrt bug 169825
07 Mar 2007; Raúl Porcel
-files/mozilla-sunbird-0.3-add-missing-LDFLAGS.patch,
mozilla-sunbird-0.3.1.ebuild:
Add patchset to fix bug 165777 and bug 168893
04 Mar 2007; Marius Mauch
mozilla-sunbird-0.3.1.ebuild:
Replacing einfo with elog
02 Mar 2007; Raúl Porcel
-mozilla-sunbird-0.3.ebuild, mozilla-sunbird-0.3.1.ebuild:
Remove mozbranding and add bindist, enabling branding by default, bug
168409, and remove old
23 Feb 2007; Raúl Porcel
mozilla-sunbird-0.3.1.ebuild:
Fix patch name, bug 168151
*mozilla-sunbird-0.3.1 (22 Feb 2007)
22 Feb 2007; Raúl Porcel
+mozilla-sunbird-0.3.1.ebuild:
Version bump, this also adds mozbranding flag
*mozilla-sunbird-0.3 (15 Feb 2007)
15 Feb 2007; Raúl Porcel
+files/mozilla-sunbird-0.3-add-missing-LDFLAGS.patch,
+files/icon/mozilla-sunbird.desktop, +files/icon/mozilla-sunbird-icon.png,
+files/icon/mozilla-sunbird-unbranded.desktop,
+files/icon/mozilla-sunbird-unbranded-icon.png, +metadata.xml,
+mozilla-sunbird-0.3.ebuild:
New ebuild, bug 114995
AUX icon/mozilla-sunbird-icon.png 6418 RMD160 92df6105a3ba07f961d5a54000e772791f1d89ac SHA1 e4e23c74234d688040f6cdaff4ace7f71d69dce4 SHA256 792fa9c96e825a0ba5d9f837910386dcb819e215fcc18c00936718823dee076e
AUX icon/mozilla-sunbird-unbranded-icon.png 4862 RMD160 31c18ecb694c24476ea4b025554394c9161ca4a1 SHA1 c9e0f3d85934a18319ea16220940d0a6e8eed1c3 SHA256 1a732f3ccbbcd7288a2bca566e94af7dee554d419a7e8855a9d20b22b19f3a4e
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.8-source.tar.bz2 37154747 RMD160 40aab90f240ccf76fdc4e725b3524d61bb0a30ec SHA1 462b4724b7aa129c21e2b38bcda6be62ed2b9500 SHA256 234b534d9478dc4f3b44d4685da54233baee90b365963fb683e37beadd61ae6e
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.8.ebuild 7385 RMD160 df0bbd47d729d329db276286cab1d0bec8dfff1c SHA1 d85570db0785748e60d2ddbdd40e743786eca9e3 SHA256 7bed914a4682cf122de9acb3637e44b3da7a733328664656529524ccad2d6dc9
MISC ChangeLog 4782 RMD160 a28f2f811aee9ff9f153c2b168b19a33fa9beb79 SHA1 2b407a0037f61e7d2dc536a769eeee54219c8234 SHA256 b070e9a5ac879ce093e753445fa4dfff7fe761b04bd33ce961098ad16ccc29da
MISC metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
# 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.5 2008/05/23 21:23:53 maekke 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 en-US 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
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
SRC_URI="${SRC_URI}
linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
fi
IUSE="${IUSE} linguas_${X/-/_}"
# english is handled internally
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
if [ "${X}" != "en-US" ]; then
SRC_URI="${SRC_URI}
linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
fi
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 ! built_with_use --missing true x11-libs/pango X; then
eerror "Pango is not built with X useflag."
eerror "Please add 'X' to your USE flags, and re-emerge pango."
die "Pango 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} != "" && ${linguas} != "en" ]]; then
einfo "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
}