# ChangeLog for app-office/mozilla-sunbird-bin
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.16 2007/02/14 19:18:51 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.17 2007/02/22 20:51:16 armin76 Exp $
+
+*mozilla-sunbird-bin-0.3.1 (22 Feb 2007)
+
+ 22 Feb 2007; Raúl Porcel <armin76@gentoo.org>
+ +mozilla-sunbird-bin-0.3.1.ebuild:
+ Version bump, plus add linguas support
14 Feb 2007; Raúl Porcel <armin76@gentoo.org>
+files/icon/mozilla-sunbird-bin.desktop,
MD5 739d5604ee1b7e921ad9f21c5c92b854 files/icon/mozilla-sunbird-bin.desktop 200
RMD160 3ce4489f7d76554546308e6e90d55b73229c921b files/icon/mozilla-sunbird-bin.desktop 200
SHA256 135baf7eceb579f686c1d2d52792bc67cf27ad1d89c4c3a956b9f5ffdee2996d files/icon/mozilla-sunbird-bin.desktop 200
+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.en-US.linux-i686.tar.bz2 7671779 RMD160 d0742916fa91d47b7c338578c546290d3d876a87 SHA1 e9506fec0375903d9398d10f57cda13695ba6caa SHA256 50ca4088150c6d879d943adc7e438478b49fe6baea755d7b59f2945c793efd54
+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.en-US.linux-i686.tar.bz2 7858638 RMD160 fa9a15521a51f8ba79b8f135333d0c1d06e24de4 SHA1 0c3c976b4ba6232172d8a30e67a6899da3a77362 SHA256 1ccacca657eabf8fa371f84780c40f8490e7f802f81f63c3fa2cec4d5e732d44
+EBUILD mozilla-sunbird-bin-0.3.1.ebuild 3843 RMD160 e572d4560fed683503d504f2e4f6a979db565229 SHA1 cbe2b92ded94a66f9f76d4be29d7468deec59616 SHA256 69292d1caa13958ca991304979f614378f6bb4a23bfe30f47c8fb0f4a38c3530
+MD5 738a7d09ad20731fdadf9e08ff987b7f mozilla-sunbird-bin-0.3.1.ebuild 3843
+RMD160 e572d4560fed683503d504f2e4f6a979db565229 mozilla-sunbird-bin-0.3.1.ebuild 3843
+SHA256 69292d1caa13958ca991304979f614378f6bb4a23bfe30f47c8fb0f4a38c3530 mozilla-sunbird-bin-0.3.1.ebuild 3843
EBUILD mozilla-sunbird-bin-0.3.ebuild 1931 RMD160 b27cd16f3686a9bccaa14154dc43ce508f436e49 SHA1 a623c65e5932a1ecb4b5725c5e23120c8626e78e SHA256 1ed5643c3116372390cbd168dde9faba37e2d22770aed10ab68ef8069e8ce5c7
MD5 d3a02379e0b375558d1b9f66887b5738 mozilla-sunbird-bin-0.3.ebuild 1931
RMD160 b27cd16f3686a9bccaa14154dc43ce508f436e49 mozilla-sunbird-bin-0.3.ebuild 1931
SHA256 1ed5643c3116372390cbd168dde9faba37e2d22770aed10ab68ef8069e8ce5c7 mozilla-sunbird-bin-0.3.ebuild 1931
-MISC ChangeLog 3686 RMD160 76c77895fa703bcfe708d5f12a12b1a23a279a2d SHA1 4511eb8a253ea7c400bc15971f85fb78bc170f05 SHA256 ec2d5623d1e58099b29171a5d47297623f6f3ea0eaf9fc407658bbe57b13ce1c
-MD5 d12c179f21e37764c2ed49c99e667a8f ChangeLog 3686
-RMD160 76c77895fa703bcfe708d5f12a12b1a23a279a2d ChangeLog 3686
-SHA256 ec2d5623d1e58099b29171a5d47297623f6f3ea0eaf9fc407658bbe57b13ce1c ChangeLog 3686
+MISC ChangeLog 3856 RMD160 f32b2b28285d2d85db1ce69a41ef23b5ebed5a0c SHA1 9450c1cdb1befdddfe8ce7a25d4015ba8e90da17 SHA256 b3a79226cf4dba0a1ca303503c0837b454410a96258c74dc9bf9777bef483846
+MD5 df1126e4c685db693861c20678828f48 ChangeLog 3856
+RMD160 f32b2b28285d2d85db1ce69a41ef23b5ebed5a0c ChangeLog 3856
+SHA256 b3a79226cf4dba0a1ca303503c0837b454410a96258c74dc9bf9777bef483846 ChangeLog 3856
MISC metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 metadata.xml 160
MD5 5c0a6eefa054d8e27952e0c8d8a1fa8d files/digest-mozilla-sunbird-bin-0.3 292
RMD160 350eb059e30b850bef7c82b7195b1471c6e2a436 files/digest-mozilla-sunbird-bin-0.3 292
SHA256 9aa3b82645c0a91602873abf3e2a542f3d022a6c6b1bf859ddae969e049a2560 files/digest-mozilla-sunbird-bin-0.3 292
+MD5 87749b9b9b26a9fd1bec635df4c0a2df files/digest-mozilla-sunbird-bin-0.3.1 4300
+RMD160 11df01ae8a4aecc7ca9b48a22727e7ed802f3358 files/digest-mozilla-sunbird-bin-0.3.1 4300
+SHA256 52df82fc76c8db46f09352ddbbc42b58dfbd6d7d0d59300c8f4e4fcfef408666 files/digest-mozilla-sunbird-bin-0.3.1 4300
--- /dev/null
+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 011eff3a681f31e5a8d729edfdeef3c9 sunbird-0.3.1.en-US.linux-i686.tar.bz2 7671779
+RMD160 d0742916fa91d47b7c338578c546290d3d876a87 sunbird-0.3.1.en-US.linux-i686.tar.bz2 7671779
+SHA256 50ca4088150c6d879d943adc7e438478b49fe6baea755d7b59f2945c793efd54 sunbird-0.3.1.en-US.linux-i686.tar.bz2 7671779
+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
--- /dev/null
+# 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-bin/mozilla-sunbird-bin-0.3.1.ebuild,v 1.1 2007/02/22 20:51:16 armin76 Exp $
+
+inherit eutils mozilla-launcher multilib mozextension
+
+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"
+SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/linux-i686/en-US/sunbird-${PV}.en-US.linux-i686.tar.bz2"
+HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html"
+RESTRICT="nostrip"
+
+KEYWORDS="-* ~amd64 ~x86"
+SLOT="0"
+LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
+IUSE=""
+
+# 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/-bin}/releases/${PV}/langpacks/${MY_PN/-bin}-${PV}.${X}.langpack.xpi )"
+ IUSE="${IUSE} linguas_${X/-/_}"
+ # english is handled internally
+done
+
+DEPEND=""
+RDEPEND="x11-libs/libXcursor
+ x11-libs/libXrandr
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXt
+ virtual/xft
+ 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
+ )
+ >=www-client/mozilla-launcher-1.44"
+
+S=${WORKDIR}/sunbird
+
+pkg_config() {
+ # This is a binary x86 package => ABI=x86
+ # Please keep this in future versions
+ # Danny van Dyk <kugelfang@gentoo.org> 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}-"* ]] && != *" ${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"
+}
+
+
+src_unpack() {
+ unpack ${MY_PN/-bin}-${PV}.en-US.linux-i686.tar.bz2
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_unpack "${MY_P/-bin/}.${X}.langpack.xpi"
+ done
+}
+
+src_install() {
+ declare MOZILLA_FIVE_HOME=/opt/sunbird
+
+ # Install sunbird in /opt
+ dodir ${MOZILLA_FIVE_HOME%/*}
+ mv ${S} ${D}${MOZILLA_FIVE_HOME}
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P/-bin/}.${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
+
+ keepdir ${MOZILLA_FIVE_HOME}/extensions # required to run!
+
+ # Create /usr/bin/sunbird-bin
+ install_mozilla_launcher_stub sunbird-bin ${MOZILLA_FIVE_HOME}
+
+ # Install icon and .desktop for menu entry
+ doicon ${FILESDIR}/icon/mozilla-sunbird-bin-icon.png
+ domenu ${FILESDIR}/icon/mozilla-sunbird-bin.desktop
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME=/opt/sunbird
+
+ # Remove entire installed instance to prevent all kinds of
+ # problems... see bug 44772 for example
+ rm -rf ${ROOT}${MOZILLA_FIVE_HOME}
+}
+
+pkg_postinst() {
+ update_mozilla_launcher_symlinks
+}
+
+pkg_postrm() {
+ update_mozilla_launcher_symlinks
+}