diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-02-22 20:51:16 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-02-22 20:51:16 +0000 |
commit | a46a05e13ecfd7b6de26eb958dc16c0ea6bfc16e (patch) | |
tree | 3dbb820f216e0330c936f0e511f2d5d87fa24138 /app-office | |
parent | Stable on hppa and x86. (diff) | |
download | gentoo-2-a46a05e13ecfd7b6de26eb958dc16c0ea6bfc16e.tar.gz gentoo-2-a46a05e13ecfd7b6de26eb958dc16c0ea6bfc16e.tar.bz2 gentoo-2-a46a05e13ecfd7b6de26eb958dc16c0ea6bfc16e.zip |
Version bump, plus add linguas support
(Portage version: 2.1.2-r10)
Diffstat (limited to 'app-office')
3 files changed, 191 insertions, 1 deletions
diff --git a/app-office/mozilla-sunbird-bin/ChangeLog b/app-office/mozilla-sunbird-bin/ChangeLog index df1782e5d8a3..d1774d78ec16 100644 --- a/app-office/mozilla-sunbird-bin/ChangeLog +++ b/app-office/mozilla-sunbird-bin/ChangeLog @@ -1,6 +1,12 @@ # 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, diff --git a/app-office/mozilla-sunbird-bin/files/digest-mozilla-sunbird-bin-0.3.1 b/app-office/mozilla-sunbird-bin/files/digest-mozilla-sunbird-bin-0.3.1 new file mode 100644 index 000000000000..42516a92ef53 --- /dev/null +++ b/app-office/mozilla-sunbird-bin/files/digest-mozilla-sunbird-bin-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 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 diff --git a/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.3.1.ebuild b/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.3.1.ebuild new file mode 100644 index 000000000000..61d282b37752 --- /dev/null +++ b/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.3.1.ebuild @@ -0,0 +1,136 @@ +# 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 +} |