summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2007-02-22 21:27:34 +0000
committerRaúl Porcel <armin76@gentoo.org>2007-02-22 21:27:34 +0000
commit898b97810010b94bd6f51e6e9a8ea6e720fb4998 (patch)
tree1c5c5969237c67c055c73c45d46a349f3660d2f6 /app-office
parentblah for \ sign. (diff)
downloadhistorical-898b97810010b94bd6f51e6e9a8ea6e720fb4998.tar.gz
historical-898b97810010b94bd6f51e6e9a8ea6e720fb4998.tar.bz2
historical-898b97810010b94bd6f51e6e9a8ea6e720fb4998.zip
Version bump, this also adds mozbranding flag
Package-Manager: portage-2.1.2-r10
Diffstat (limited to 'app-office')
-rw-r--r--app-office/mozilla-sunbird/ChangeLog8
-rw-r--r--app-office/mozilla-sunbird/Manifest31
-rw-r--r--app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.148
-rw-r--r--app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild207
4 files changed, 289 insertions, 5 deletions
diff --git a/app-office/mozilla-sunbird/ChangeLog b/app-office/mozilla-sunbird/ChangeLog
index a98c01dc6bfb..28073a7200aa 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-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.1 2007/02/15 21:09:16 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.2 2007/02/22 21:27:34 armin76 Exp $
+
+*mozilla-sunbird-0.3.1 (22 Feb 2007)
+
+ 22 Feb 2007; Raúl Porcel <armin76@gentoo.org>
+ +mozilla-sunbird-0.3.1.ebuild:
+ Version bump, this also adds mozbranding flag
*mozilla-sunbird-0.3 (15 Feb 2007)
diff --git a/app-office/mozilla-sunbird/Manifest b/app-office/mozilla-sunbird/Manifest
index 2e29cbf93de6..48eb2a22687f 100644
--- a/app-office/mozilla-sunbird/Manifest
+++ b/app-office/mozilla-sunbird/Manifest
@@ -18,6 +18,22 @@ AUX mozilla-sunbird-0.3-add-missing-LDFLAGS.patch 227 RMD160 d2faf0a4a29c5fc1214
MD5 72b8e672d18d07325219da2b4dd39ca2 files/mozilla-sunbird-0.3-add-missing-LDFLAGS.patch 227
RMD160 d2faf0a4a29c5fc121453d02358e01e4f7e3f19c files/mozilla-sunbird-0.3-add-missing-LDFLAGS.patch 227
SHA256 ffce4bfc913800bdf69385620f483f1e8e43c5874fad4283cc94a8ba322e983d files/mozilla-sunbird-0.3-add-missing-LDFLAGS.patch 227
+DIST sunbird-0.3.1.ca.langpack.xpi 97999 RMD160 6fd1af114e4f07931e6e32d43bc7a9bc330e8ee1 SHA1 aa35b5eb3d907243e55641b984d44e349135b765 SHA256 b84be9cb13e964b5dc1da857df19c78b946f4b4e4b4f8967527582873b9857ae
+DIST sunbird-0.3.1.cs.langpack.xpi 98057 RMD160 e4b31720187548342031f3e29bca0c7b1e7106a8 SHA1 fddd89ddf6bd0611d59c9d70184ca4e18d495612 SHA256 96e14ff8ddf254ddef8a997bb682a73d9d0de915dc928ce1e69600fe7d351676
+DIST sunbird-0.3.1.da.langpack.xpi 95991 RMD160 0d7f94a1ebb7dcd90c12bd3a6f2ade16a68b1cc9 SHA1 5df50a460b13ca33ec0a68cf0397dfd588dd95fa SHA256 ef39c0f14f05ab74e676282a8c3d4381d335daa9ee46a1950d97ad6c48879696
+DIST sunbird-0.3.1.de.langpack.xpi 93380 RMD160 0a664a2c7e4005b30ee1e277eb1506520950cc85 SHA1 d5abcc648e996fb08eb8622bc62487d11704e608 SHA256 3f6c95412f4e5bf2b2caaab40f3e0b4522ac8a4ea805153b144e3345fc361ea1
+DIST sunbird-0.3.1.es-ES.langpack.xpi 87186 RMD160 f5a783fe6974514aab47ecb54d5a3b4cd29c94a9 SHA1 d50f0737b6b35e756bec9b979b1cbd0be7fefbfb SHA256 a999e415b127b2ae1b10b8ab9c9fb8d9ef0872552df32b780184fe9c04c38771
+DIST sunbird-0.3.1.eu.langpack.xpi 94986 RMD160 34f8f019948bde94814c3f4e5a5cdcb13e342dcb SHA1 45e589e9e140a9551c243013ae9e9232b3d6459d SHA256 e23944d6d725b6bb414041782d3dc077e22d22cb022dda176e584f16c6c7b076
+DIST sunbird-0.3.1.fr.langpack.xpi 101532 RMD160 2435a7fbb7b77b03efcc141a735605509aa8df72 SHA1 8f9ca7d4e4efa4924a18e561568db790a9ac12af SHA256 fadd18f7a95149b3cd39871b8dfcfd8ea219baea73984f34391e2bf7cf08c6cf
+DIST sunbird-0.3.1.hu.langpack.xpi 101148 RMD160 e9162ff796aeb23f9b9d7c26376541194fbb0244 SHA1 ececdf2ca56748b39c08afb59760b345419753a6 SHA256 ba33aa86580034125e5b7e483b19b80f59fd0642c2f12780146275a8388698c8
+DIST sunbird-0.3.1.it.langpack.xpi 86047 RMD160 9c5e9eabfa67307599e2b53540145e8e42df289f SHA1 f565c13568fce3665ce6d584a30c01bcb5126d9e SHA256 403490ed405aece645831434f4480f59eec1317cd7fad620a00f9d26e166b130
+DIST sunbird-0.3.1.mn.langpack.xpi 101381 RMD160 bf962cc2fd9546c146922f926ed25109e4226cea SHA1 2de4bcf196654191b5840b5a2d07b3cf4aaafef5 SHA256 03df2b25a9086e4c4d1061a672529d845bc4859b85383455f50702a66f4a4952
+DIST sunbird-0.3.1.nl.langpack.xpi 97731 RMD160 4f10efab9393cf7475129c92480cbfa7e2d8f63f SHA1 d6da841dfad436d46c4408f135e0e360554b0683 SHA256 530c30a7e80b358258e65e8d0caab28eb2d03b384023196672b14c0ddfa8205b
+DIST sunbird-0.3.1.pl.langpack.xpi 101097 RMD160 2ea1583e99d23bc9de28b49456b358fea53d5e60 SHA1 9895e485e821249f9b15210f2d337f837141d58e SHA256 c25e40afcc3b744e5d20cf7253014ae237717c3d8fc83120f44c1740ecbf078e
+DIST sunbird-0.3.1.ru.langpack.xpi 106451 RMD160 9f572d0f0fbd9154d5546d2e7eff24a00bf60aca SHA1 94778c5e99f0306c5876f36dc89499077eceaef0 SHA256 1d744af72218dd12367355773bdce8f994141002a651a75e3d02be2ef868bcc1
+DIST sunbird-0.3.1.sk.langpack.xpi 102414 RMD160 fe54e5596d14164daeeb9f8fe89ee26ccedabbdb SHA1 9769e17981d49958021a5a6e5bda2fdbebc0efbb SHA256 19c66831cce0683c1025228f49f461252210fea566e3047c9cab3aa1ea59a01a
+DIST sunbird-0.3.1.sl.langpack.xpi 97817 RMD160 7c4fc023bb209bbc0aab1725bfe57f2a21a238bd SHA1 a2445d5b6f77247b8e946a5df7e53ada7c3301ee SHA256 bab139be5765516c3807f420b56154b6ccba8475eb152247e69e6bcdd13d52c4
+DIST sunbird-0.3.1.source.tar.bz2 44088609 RMD160 b2fe3d03ce20500641e18da07fafda031d7b882e SHA1 f8a397746f0e3abf15273de5232c447746a8d370 SHA256 4cf4eb5b26c5199af1332432264f82f920b1728bf150fd8172eec21ca073ff5b
DIST sunbird-0.3.ca.langpack.xpi 97883 RMD160 98e885c1372fee985b1e55e36ecfc3b2c01bdf2f SHA1 d9cd83a271f9a0f91a0e37add6d52b141b3105db SHA256 7d5d73fcef567b2f769ed7120e7091f52f56e3ecb3463e23343c0a89c3b17f52
DIST sunbird-0.3.cs.langpack.xpi 97889 RMD160 2eb2996c9510c3b5f03f3e92548ff216c46137ee SHA1 62b6c9e2c22f8bf3196f3e2bc44444c00335778b SHA256 b5e5d0c6af07071d010b306e41428edb8b16150e0f18fbfb1614e13de997cf29
DIST sunbird-0.3.da.langpack.xpi 95119 RMD160 0eb13ab0de0b89bbe4a07bd35ec89cf588d7569a SHA1 c999890566480d10f31a141f3137f6ad3870b687 SHA256 26acad4c77b573b5c2692d8939f13727961ebb8511f452a8a07d7be76ab9eadf
@@ -35,14 +51,18 @@ DIST sunbird-0.3.ru.langpack.xpi 106253 RMD160 1e439ba0b6d3e76eb77774eadcd5fd990
DIST sunbird-0.3.sk.langpack.xpi 102314 RMD160 22cb902f9b92ba0749650f6167ec8405fea77c29 SHA1 c333bc6d547e23160189e2373fa2e4d0cbd3f946 SHA256 fa10d298c8b79f9d5c91627068af85dd560064c15935a37e158e6c383ae12514
DIST sunbird-0.3.sl.langpack.xpi 97715 RMD160 3267c0911d4d5a18b7be12fba23c844862725b97 SHA1 9837bf43ae64c8763dd2614fb6444034b41942ec SHA256 15109263fbf40aab3913279b8a57955374428783a997aa9d2adc0c3005f841de
DIST sunbird-0.3.source.tar.bz2 32564480 RMD160 a5b71c40be6e6739b9ad558dfac8d2b714709e3c SHA1 9c498789d428b1f6a5abcb5a690a6d977553dce5 SHA256 e359a61363971ef8a7ab33ebfc9c645a03ad32f71ebcc3b6f414737d22b40224
+EBUILD mozilla-sunbird-0.3.1.ebuild 6191 RMD160 17930a8e82b91bfcc48f8302062d2a9d6a3227a1 SHA1 04ffcbd97fb14dc572cca4e53d41a24165f67c14 SHA256 d1fa0af960607caf1ce26caf64a417d473ec45392b40c1bc16dc6a27175d4d06
+MD5 211a7530d9ffa9af0babdf496d80a406 mozilla-sunbird-0.3.1.ebuild 6191
+RMD160 17930a8e82b91bfcc48f8302062d2a9d6a3227a1 mozilla-sunbird-0.3.1.ebuild 6191
+SHA256 d1fa0af960607caf1ce26caf64a417d473ec45392b40c1bc16dc6a27175d4d06 mozilla-sunbird-0.3.1.ebuild 6191
EBUILD mozilla-sunbird-0.3.ebuild 5730 RMD160 f8687cbe6aba6d58ff0a5d4d2cc97abd103fe253 SHA1 c4b85081b7e7fb3aa93b7baaf70e2ae4929ccc86 SHA256 292ea13bba673fb7baf7b67db7e47b764476c8917ee402018e96b68c79dd41f4
MD5 77be0e208a58bec7d4cbdf42d07249eb mozilla-sunbird-0.3.ebuild 5730
RMD160 f8687cbe6aba6d58ff0a5d4d2cc97abd103fe253 mozilla-sunbird-0.3.ebuild 5730
SHA256 292ea13bba673fb7baf7b67db7e47b764476c8917ee402018e96b68c79dd41f4 mozilla-sunbird-0.3.ebuild 5730
-MISC ChangeLog 615 RMD160 bcb1455796f65daae30d4bac77f5b213c4e9758e SHA1 3a13b9611b7cec52d6143636b6d9b79ca58566fd SHA256 2e46e38dbdbae33a96388060e540c6f81286279463b553e64bd087999655898e
-MD5 3fcccd854ee0d1d4b3d03abf77c9d3ee ChangeLog 615
-RMD160 bcb1455796f65daae30d4bac77f5b213c4e9758e ChangeLog 615
-SHA256 2e46e38dbdbae33a96388060e540c6f81286279463b553e64bd087999655898e ChangeLog 615
+MISC ChangeLog 784 RMD160 e814e9db668b138acd6b14f6a63b7415b26af83c SHA1 a21c9fda7bbf5476b203ca03896aae22cb25ee8c SHA256 3a05a1c181b2ecd11918df1740c8a774fc04e32ef6f4b4921c45780a585ab6be
+MD5 d1f355d64397aaab9c20187eb3808b4a ChangeLog 784
+RMD160 e814e9db668b138acd6b14f6a63b7415b26af83c ChangeLog 784
+SHA256 3a05a1c181b2ecd11918df1740c8a774fc04e32ef6f4b4921c45780a585ab6be ChangeLog 784
MISC metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 metadata.xml 160
@@ -50,3 +70,6 @@ SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b metadata
MD5 be85d7bb8ede7d2313fa2b99a5e167ee files/digest-mozilla-sunbird-0.3 4445
RMD160 8527469f1c7a96ebd9712e046143f69e8c234741 files/digest-mozilla-sunbird-0.3 4445
SHA256 30eee483f468145d960ac519dcb8dc19c91336be936d357739e0c2a9516c857b files/digest-mozilla-sunbird-0.3 4445
+MD5 6dbb21c281b906269c4d7f0a62281f3a files/digest-mozilla-sunbird-0.3.1 4273
+RMD160 4e56288a37d59094f5c910b8bdd30327d8b6b8f8 files/digest-mozilla-sunbird-0.3.1 4273
+SHA256 1f2002bd68bd333e442bc1716a444411033360fff0d5e426cd0ccba8165fcf11 files/digest-mozilla-sunbird-0.3.1 4273
diff --git a/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1 b/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1
new file mode 100644
index 000000000000..c80bc01aef1b
--- /dev/null
+++ b/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1
@@ -0,0 +1,48 @@
+MD5 742c4b70cbef579fa99e0409156c0bb3 sunbird-0.3.1.ca.langpack.xpi 97999
+RMD160 6fd1af114e4f07931e6e32d43bc7a9bc330e8ee1 sunbird-0.3.1.ca.langpack.xpi 97999
+SHA256 b84be9cb13e964b5dc1da857df19c78b946f4b4e4b4f8967527582873b9857ae sunbird-0.3.1.ca.langpack.xpi 97999
+MD5 b65d56a36c157e19e53c776b442a9fd6 sunbird-0.3.1.cs.langpack.xpi 98057
+RMD160 e4b31720187548342031f3e29bca0c7b1e7106a8 sunbird-0.3.1.cs.langpack.xpi 98057
+SHA256 96e14ff8ddf254ddef8a997bb682a73d9d0de915dc928ce1e69600fe7d351676 sunbird-0.3.1.cs.langpack.xpi 98057
+MD5 a05b8f7917a95dc040d36733e52c02f8 sunbird-0.3.1.da.langpack.xpi 95991
+RMD160 0d7f94a1ebb7dcd90c12bd3a6f2ade16a68b1cc9 sunbird-0.3.1.da.langpack.xpi 95991
+SHA256 ef39c0f14f05ab74e676282a8c3d4381d335daa9ee46a1950d97ad6c48879696 sunbird-0.3.1.da.langpack.xpi 95991
+MD5 f5ed14c1dd7220ba467a628945a9b466 sunbird-0.3.1.de.langpack.xpi 93380
+RMD160 0a664a2c7e4005b30ee1e277eb1506520950cc85 sunbird-0.3.1.de.langpack.xpi 93380
+SHA256 3f6c95412f4e5bf2b2caaab40f3e0b4522ac8a4ea805153b144e3345fc361ea1 sunbird-0.3.1.de.langpack.xpi 93380
+MD5 6732b5a0836713dbdee322fda6c550dd sunbird-0.3.1.es-ES.langpack.xpi 87186
+RMD160 f5a783fe6974514aab47ecb54d5a3b4cd29c94a9 sunbird-0.3.1.es-ES.langpack.xpi 87186
+SHA256 a999e415b127b2ae1b10b8ab9c9fb8d9ef0872552df32b780184fe9c04c38771 sunbird-0.3.1.es-ES.langpack.xpi 87186
+MD5 b4b2abe6f7fafc0d3de9d8b80fd07f12 sunbird-0.3.1.eu.langpack.xpi 94986
+RMD160 34f8f019948bde94814c3f4e5a5cdcb13e342dcb sunbird-0.3.1.eu.langpack.xpi 94986
+SHA256 e23944d6d725b6bb414041782d3dc077e22d22cb022dda176e584f16c6c7b076 sunbird-0.3.1.eu.langpack.xpi 94986
+MD5 6551686a1bac1ca43779ed30da1c8589 sunbird-0.3.1.fr.langpack.xpi 101532
+RMD160 2435a7fbb7b77b03efcc141a735605509aa8df72 sunbird-0.3.1.fr.langpack.xpi 101532
+SHA256 fadd18f7a95149b3cd39871b8dfcfd8ea219baea73984f34391e2bf7cf08c6cf sunbird-0.3.1.fr.langpack.xpi 101532
+MD5 035ad2bd22b3371231336b0584b9a47e sunbird-0.3.1.hu.langpack.xpi 101148
+RMD160 e9162ff796aeb23f9b9d7c26376541194fbb0244 sunbird-0.3.1.hu.langpack.xpi 101148
+SHA256 ba33aa86580034125e5b7e483b19b80f59fd0642c2f12780146275a8388698c8 sunbird-0.3.1.hu.langpack.xpi 101148
+MD5 b35f367ba863af7933f99c57100771ea sunbird-0.3.1.it.langpack.xpi 86047
+RMD160 9c5e9eabfa67307599e2b53540145e8e42df289f sunbird-0.3.1.it.langpack.xpi 86047
+SHA256 403490ed405aece645831434f4480f59eec1317cd7fad620a00f9d26e166b130 sunbird-0.3.1.it.langpack.xpi 86047
+MD5 ed38d77ce3759cfc4f3f56bb11f168ec sunbird-0.3.1.mn.langpack.xpi 101381
+RMD160 bf962cc2fd9546c146922f926ed25109e4226cea sunbird-0.3.1.mn.langpack.xpi 101381
+SHA256 03df2b25a9086e4c4d1061a672529d845bc4859b85383455f50702a66f4a4952 sunbird-0.3.1.mn.langpack.xpi 101381
+MD5 c31960d984a7eceaede2f0c0449db098 sunbird-0.3.1.nl.langpack.xpi 97731
+RMD160 4f10efab9393cf7475129c92480cbfa7e2d8f63f sunbird-0.3.1.nl.langpack.xpi 97731
+SHA256 530c30a7e80b358258e65e8d0caab28eb2d03b384023196672b14c0ddfa8205b sunbird-0.3.1.nl.langpack.xpi 97731
+MD5 de5d1c761fbd8edf70024e3f558ee3ae sunbird-0.3.1.pl.langpack.xpi 101097
+RMD160 2ea1583e99d23bc9de28b49456b358fea53d5e60 sunbird-0.3.1.pl.langpack.xpi 101097
+SHA256 c25e40afcc3b744e5d20cf7253014ae237717c3d8fc83120f44c1740ecbf078e sunbird-0.3.1.pl.langpack.xpi 101097
+MD5 dfa9f04d478aac36865b387497553269 sunbird-0.3.1.ru.langpack.xpi 106451
+RMD160 9f572d0f0fbd9154d5546d2e7eff24a00bf60aca sunbird-0.3.1.ru.langpack.xpi 106451
+SHA256 1d744af72218dd12367355773bdce8f994141002a651a75e3d02be2ef868bcc1 sunbird-0.3.1.ru.langpack.xpi 106451
+MD5 e62cfa2f9982c21b1df4a33151d6ef7c sunbird-0.3.1.sk.langpack.xpi 102414
+RMD160 fe54e5596d14164daeeb9f8fe89ee26ccedabbdb sunbird-0.3.1.sk.langpack.xpi 102414
+SHA256 19c66831cce0683c1025228f49f461252210fea566e3047c9cab3aa1ea59a01a sunbird-0.3.1.sk.langpack.xpi 102414
+MD5 7fa2a95960fc80854899df65c216dc62 sunbird-0.3.1.sl.langpack.xpi 97817
+RMD160 7c4fc023bb209bbc0aab1725bfe57f2a21a238bd sunbird-0.3.1.sl.langpack.xpi 97817
+SHA256 bab139be5765516c3807f420b56154b6ccba8475eb152247e69e6bcdd13d52c4 sunbird-0.3.1.sl.langpack.xpi 97817
+MD5 65465b6c6c551049c366e6fa8e2303bc sunbird-0.3.1.source.tar.bz2 44088609
+RMD160 b2fe3d03ce20500641e18da07fafda031d7b882e sunbird-0.3.1.source.tar.bz2 44088609
+SHA256 4cf4eb5b26c5199af1332432264f82f920b1728bf150fd8172eec21ca073ff5b sunbird-0.3.1.source.tar.bz2 44088609
diff --git a/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild b/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild
new file mode 100644
index 000000000000..7d743a1a901b
--- /dev/null
+++ b/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild
@@ -0,0 +1,207 @@
+# Copyright 1999-2007 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.3.1.ebuild,v 1.1 2007/02/22 21:27:34 armin76 Exp $
+
+WANT_AUTOCONF="2.1"
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools
+
+LANGS="ca cs da de es-ES eu fr hu it mn nl pl ru sk sl"
+
+MY_PN="${PN/mozilla-}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="The Mozilla Sunbird Calendar"
+HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html"
+IUSE="mozbranding"
+SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/source/${MY_P}.source.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://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/langpacks/${MY_PN}-${PV}.${X}.langpack.xpi )"
+ IUSE="${IUSE} linguas_${X/-/_}"
+ # english is handled internally
+done
+
+KEYWORDS="-* ~x86 ~amd64"
+SLOT="0"
+LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
+
+RDEPEND=">=www-client/mozilla-launcher-1.44
+ >=dev-libs/nss-3.10"
+
+S="${WORKDIR}/mozilla"
+
+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}-"* ]] && != *" ${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
+ einfo "Selected language packs (first will be default): $linguas"
+}
+
+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 mozbranding; then
+ einfo "You are enabling official branding. You may not redistribute this build"
+ einfo "to any users on your network or the internet. Doing so puts yourself into"
+ einfo "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 "${MY_PN}-${PV}.${X}.langpack.xpi"
+ done
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-add-missing-LDFLAGS.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 mozbranding; then
+ mozconfig_annotate '' --enable-official-branding
+ fi
+
+ # Add build variables
+ mozconfig_build_opts
+
+ # 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
+
+ emake -j1 || 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"
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_PN}-${PV}.${X}.langpack"
+ 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 mozbranding; 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
+}