summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-11-12 12:25:57 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-11-12 12:25:57 +0000
commit6b281f75604bf7bd1f6751a74d4c1f484dba9ce7 (patch)
tree9fe651f96d8928abcb1ad197c15e6b62fe36b978 /app-office
parentRevbump to optionally include multi-line prompt patch by Ben Hoskings as sugg... (diff)
downloadhistorical-6b281f75604bf7bd1f6751a74d4c1f484dba9ce7.tar.gz
historical-6b281f75604bf7bd1f6751a74d4c1f484dba9ce7.tar.bz2
historical-6b281f75604bf7bd1f6751a74d4c1f484dba9ce7.zip
Move teplates here from main pack.
Package-Manager: portage-2.2.0_alpha73/cvs/Linux x86_64
Diffstat (limited to 'app-office')
-rw-r--r--app-office/libreoffice-l10n/ChangeLog10
-rw-r--r--app-office/libreoffice-l10n/Manifest39
-rw-r--r--app-office/libreoffice-l10n/libreoffice-l10n-3.4.4-r1.ebuild163
-rw-r--r--app-office/libreoffice-l10n/libreoffice-l10n-9999-r1.ebuild (renamed from app-office/libreoffice-l10n/libreoffice-l10n-9999.ebuild)70
-rw-r--r--app-office/libreoffice-l10n/metadata.xml4
5 files changed, 258 insertions, 28 deletions
diff --git a/app-office/libreoffice-l10n/ChangeLog b/app-office/libreoffice-l10n/ChangeLog
index a56794cffafd..f12e5dc654bb 100644
--- a/app-office/libreoffice-l10n/ChangeLog
+++ b/app-office/libreoffice-l10n/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-office/libreoffice-l10n
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.15 2011/11/10 20:35:58 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/ChangeLog,v 1.16 2011/11/12 12:25:57 scarabeus Exp $
+
+*libreoffice-l10n-9999-r1 (12 Nov 2011)
+*libreoffice-l10n-3.4.4-r1 (12 Nov 2011)
+
+ 12 Nov 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ +libreoffice-l10n-3.4.4-r1.ebuild, -libreoffice-l10n-9999.ebuild,
+ +libreoffice-l10n-9999-r1.ebuild, metadata.xml:
+ Move teplates here from main pack.
*libreoffice-l10n-3.4.4 (10 Nov 2011)
diff --git a/app-office/libreoffice-l10n/Manifest b/app-office/libreoffice-l10n/Manifest
index a43d4f46d501..d4a38ac9fc40 100644
--- a/app-office/libreoffice-l10n/Manifest
+++ b/app-office/libreoffice-l10n/Manifest
@@ -2,6 +2,10 @@
Hash: SHA1
AUX lo_gen_langs.sh 1380 RMD160 f1f595c92e8a69f88239070b3711b32d524b52e3 SHA1 2cf1577fac50ee8514a1c92f898ed0c527710e81 SHA256 a4dfdce56b269abca84b8812008c109e608c569cd9d7f92412dac68574d87efd
+DIST 09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt 6144654 RMD160 f9bf3fc5a078f4cd357f766c3e750dcf05407a2d SHA1 42c9235d7f876645ea6553770e7572c1b0b8609a SHA256 4b069e14609440d1743f4f898040aa6ffa12699ce1882a3f98e984facc1835d8
+DIST 472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt 4998642 RMD160 61bbecc48c94393b9c04fa9c11282dd55d42a871 SHA1 d2b6a076b40d8d517075e52220ddd8f89f655c8f SHA256 f15b13b947d8690bf05c4dc4cb04ab89297565ccddf02cce37b831376151ba29
+DIST 4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt 4973419 RMD160 1f01d5f4d8be121bc3aaa5c5d69c9bbb50cfd912 SHA1 bf25bef71f72a4622089c85958bfd6c58d8516a6 SHA256 4eb76551b548c0e7fdc5048be8462ddb61dfb7bba4bbc23b46189356b4b0976c
+DIST 53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt 4953938 RMD160 cf457953fd947bf7f60274377ef88124bb788108 SHA1 4fea33622d89c7ac62053e5ee3616cfe504e0f14 SHA256 2f0ac09043abf098335ca1aa4c8bdd1759a0fea6dea561d9a21cfa0d606378dc
DIST LibO_3.4.3_Linux_x86_helppack-rpm_bg.tar.gz 11600726 RMD160 9f1f6103f8a203de5c698eb61a0393ec717801bc SHA1 9aaab4bac6aaeed367222203695837892745ae74 SHA256 35e82464e7df2ce29d6581cc99fcd3d4ec8599e8502ccd32423c60012fe80eb5
DIST LibO_3.4.3_Linux_x86_helppack-rpm_bn.tar.gz 11827442 RMD160 7c0ea12129b91284baf4a7d560e8375d09116775 SHA1 7a9a19087f7dc483f2488b58da6e9168c01e2cda SHA256 da7cf25d126f885ef5ef5a4ab146d1decc279bc31ebf4ea7fc82e56c63ccc060
DIST LibO_3.4.3_Linux_x86_helppack-rpm_bo.tar.gz 12481157 RMD160 259d98e9cd0c0036482908aea4148b9a8d7f9771 SHA1 7080b887ced84f476ecdbe7ac248e07725b48f28 SHA256 5bb6e175e624c2765b35e6b730a37b5ce9cab7d7632eb49bb8177f5576b3fe63
@@ -314,25 +318,28 @@ DIST LibO_3.4.4_Linux_x86_langpack-rpm_xh.tar.gz 8219611 RMD160 45da2fbec44ef3da
DIST LibO_3.4.4_Linux_x86_langpack-rpm_zh-CN.tar.gz 1771941 RMD160 4d85f797082699c5400b1e10ec456bf199054685 SHA1 4ffeb438ffc9e3c396d6a2b8c8d5262733722717 SHA256 88af9f0a05aa084f862e22b5c822570a555c7dd2ba4f583dc7e425786543fa73
DIST LibO_3.4.4_Linux_x86_langpack-rpm_zh-TW.tar.gz 1764315 RMD160 37769d9a4ea8a8989ecbb695c017acd3f03377c3 SHA1 eedf6fd5d6357de27bdcaf7f219a61fe08f69f67 SHA256 65754fc700bda00948888975b40b80bca153e5f2e9cb95648032ee43896a0ce4
DIST LibO_3.4.4_Linux_x86_langpack-rpm_zu.tar.gz 1720450 RMD160 34c4ca3e6d1fae78376f3852e6115dc58bb3619d SHA1 a5c54cb2abce21de7f36e351bd0a69a804385f51 SHA256 7fbbf76f8a7c9d3ae9afc85e481ca3459d357b51d1cd05749e0d85729c5ace62
+DIST a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt 4971243 RMD160 40f8e190cedca8706d9ac44316a076aad33b8b42 SHA1 d831314cf4c74f5afb3b37ee718dd58f981b97a8 SHA256 472c724cf6190465ee5922536d2b1f7754478ecb9661a00f63fb2082b1aed859
+DIST b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt 4961173 RMD160 d90425d5485f1607ebdd3bd7b1a99b6365c3097d SHA1 27847d6c320297905303ca7d2a45dbd0c492f705 SHA256 fd6962d40e68494f91474c77d001603c95b04f543434141de9c3f395d795f6a4
EBUILD libreoffice-l10n-3.4.3-r3.ebuild 3892 RMD160 d35706fb4d9ddb13c38655a0a46479c22e5ccd7d SHA1 76b8b927fafd40ff9075709c81af010f5a9acc47 SHA256 e5607315b228488cdcc10f03afa39b1b3c97a5ce8fe96fda15fa7edd3ea8b057
+EBUILD libreoffice-l10n-3.4.4-r1.ebuild 5086 RMD160 fa116231a18596c558244390a87e7578f5d9ffb8 SHA1 5753157ae29a3fdea369c452c8e881afb36ddd64 SHA256 384e7766369d7d807f19f129bdaa33785ab0444a9a22d2d71d3854873ef87e07
EBUILD libreoffice-l10n-3.4.4.ebuild 3635 RMD160 b207749e1391029a74e6f5f82b73e31534d7c201 SHA1 eff7c9b5c559418a4eb983deeec2af1a9e2b4da2 SHA256 166b6c5a00c5589c44b08d6466c8e0e0215b989d68a5e35f44b8c011469ef1aa
-EBUILD libreoffice-l10n-9999.ebuild 3612 RMD160 2a432e4fbdd483d7c601b9358127b2e460e5807f SHA1 df79808ca6e1314ded9cbc9d1f1a25d893391808 SHA256 28f010b9cd3f56e902edebaaf24267ed81e4114ff12b17ec2ac53052ae2a311f
-MISC ChangeLog 3002 RMD160 62fea869df66b20a4e35b639a73df41f54235c40 SHA1 146ebdc6a9e6c80352a87c936c5926fcd172917b SHA256 4dc3af9c7207e731f1364c70c51c33a88f9256d6f26cf6c237ac63d4474147cd
-MISC metadata.xml 280 RMD160 b78a155215ec280b8b95fd2765aec06affdeb1ea SHA1 2236557635125ec389aee93c5cb052475a1ce472 SHA256 23e40d2f7f689371ad553226289772b45b7e8063ce88025615e5d86b208173df
+EBUILD libreoffice-l10n-9999-r1.ebuild 5085 RMD160 f8a07e1e3ff7fc85e2719e6256b25250b7197a56 SHA1 32c9f7ee48f43cdab25d6663fa5d6acc1f031463 SHA256 e0d6e2044687cccfa8d0b23c442d1bbd5e0e1526ff0fa99e95e6700b0699845b
+MISC ChangeLog 3295 RMD160 a20e6ff596ec1c0dacb218a3dba6e3ec014bc9c7 SHA1 032b3d0159d92e4a6897cedeadcb63e7ad91ab87 SHA256 3ba479195f628fe15f090c53ca32acc22849d8eed1e7bef7e370752ee25d3e86
+MISC metadata.xml 347 RMD160 9f877917cd81032044930b5585910cacd590ea41 SHA1 71e2840a19fab2cf3a6f1c32e305e457cdb29ba3 SHA256 8b80b71771e14ffebe84e2537b6207a459d1160b4d0880773657ce2f082eae0b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iQIcBAEBAgAGBQJOvDWmAAoJEOSiRoyO7jvoPEkP/20A0VckpklPjZ9zobx8F+FE
-+cuE8+gfs00KAVleV+Yx9nQBGWbrysaw1JHNX+DyzgzuUcYP66BseiDEfyZoZCvQ
-H0mOGZ2sU8gsFlnAaKr/dORM6pEL7/M4bxzRotpQsHmVjHBP2g3fl/hrPPnNVnv6
-zS203fYqCZa0pgO7h7NA/85gvJrkg2AL01a+RYjt1o+7W9e5id5VxFnuyNSM4xtx
-S+Ky2nMPGnxGt3ASvXcogn7CpxrVK3TjeYu0EpCBoXKC4m+H2AoM0p/CmkUU3j5B
-FCKV9+lTjfF+Rq/SK2lrvNC3AJiLvvYELjpe0wvDk85l5JgMweOWdK4Ls31Ifjwp
-otdpSSPUcMTpJBzKva/JLcow35LVukzNpm7lxP+uCdvdffAFZySUUFUvqVwlktH7
-c4DASeIEg4UvD5HM7/K5krFjDw4cuXxAWHfKg2hRWRqLQ5dW4M6lIOu7lYCtx5ej
-1yN/Hcv0MeBf1OWbQWaC/ukbfelAurNXJ7Zl3f4hiO1oK5YecIrW59GwE2bQG+q+
-tUXiJ9B31ulsAXfDZFgxsaDp/Ms54jLt5PC1Kg9uewNsqJmxbapVkeimHF9H6EY2
-wkbtEoRB+OaEYdptvdxlJhVUtx9dkxx6L82myHVw7ZcrlG7kVK5vFIR+055aJHpM
-q4s66wC7/kRbvSKqDU3z
-=W0fL
+iQIcBAEBAgAGBQJOvmXPAAoJEOSiRoyO7jvojTIP/jQpIiOXJmKRpnWRsuiN0swb
+92mvWZ+89qGpJ9AKOEqsMFZsDTtelP8ZfaO7kZ9lRrpYKtK9oGOK8KOBgiPYyOwC
+VrTjjuNMmD4tLm4dsop4jdxDR2L9Syp+Eb2E8HTcipPXGOX3pvesFVd2GYXyZxp+
+wUCH2FLRpyylWIdhIOLiCOq+1K3d3NXpxdG26V7rJzYV6F4jHi5YkqxiblCHOjnC
+QwzfEld6hhLfJ3npbVxT96M/0zr6ZcC92r/SXFa7OQKZum+Kqzh/waQducdhlwem
+ud+IQ05QUpoMWJJJ688z3A35OJlYpXTYc2QI4OpeeGh8vn3ppXCW0deH/QAIl0/T
+S7PlRFBpg3Gb625kMRKRXl9COIS4SD7FG9CzECgWoUBP+5CePAr6+gbFcf0S6FoN
+Nw/uIy317KUkD6BRPZ2M9bMJh0NzPmYlmZAjrkIjTcwuqcR7bfzF17iJBcsgLwv/
+MMWBrK0fWcSpehHRclYPPKF17XSjyIkwivBWhikrr3aa01zzy2t8vAcmDW+jzV2I
+G/hs7NagaMtCzygeSFFgMJ2jSJKK1SduTXLm5EkEtMD/7rWmsYdUPsXkI14eMjEQ
+LZvGa2b0I9aQ4SHQwHruZUaIf9kjxC9rwCCXkPjsxf6sFGhmcHqnzxlFYkGoqsom
+BVzes2gsSxQT0bZ8/f6L
+=vwWZ
-----END PGP SIGNATURE-----
diff --git a/app-office/libreoffice-l10n/libreoffice-l10n-3.4.4-r1.ebuild b/app-office/libreoffice-l10n/libreoffice-l10n-3.4.4-r1.ebuild
new file mode 100644
index 000000000000..863f5487e5a0
--- /dev/null
+++ b/app-office/libreoffice-l10n/libreoffice-l10n-3.4.4-r1.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-3.4.4-r1.ebuild,v 1.1 2011/11/12 12:25:57 scarabeus Exp $
+
+EAPI=4
+
+[[ ${PV} == 9999 ]] && MY_PV="3.4.4" || MY_PV="${PV}"
+
+RC_VERSION="rc2" # CHECK ME WITH EVERY BUMP!
+BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm/"
+
+OO_EXTENSIONS=(
+ "472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt"
+ "53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt"
+ "4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt"
+ "a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt"
+ "09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt"
+ "b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt"
+)
+inherit rpm eutils versionator office-ext
+
+DESCRIPTION="Translations for the Libreoffice suite."
+HOMEPAGE="http://www.libreoffice.org"
+
+LICENSE="LGPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="offlinehelp templates"
+
+LANGUAGES_HELP="bg bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu
+fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si
+sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
+LANGUAGES="${LANGUAGES_HELP} af ar as ast be br brx cy dgo fa ga gd kk kn kok ks
+ku lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr ss
+st sw_TZ ta te th tn ts uz ve xh zu"
+
+for lang in ${LANGUAGES}; do
+ helppack=""
+ langpack=""
+ if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]]; then
+ [[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
+ helppack=" offlinehelp? ( ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_helppack-rpm_${lang2/_/-}.tar.gz ) "
+ fi
+ [[ ${lang} == en ]] \
+ || langpack=" ${BASE_SRC_URI}/x86/LibO_${MY_PV}_Linux_x86_langpack-rpm_${lang/_/-}.tar.gz "
+ SRC_URI+=" linguas_${lang}? (
+ ${langpack}
+ ${helppack}
+ )"
+ IUSE+=" linguas_${lang}"
+done
+unset lang helppack langpack lang2
+
+# dictionaries
+SPELL_DICTS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk
+nb nl nn pl pt ru sk sl sv tn zu"
+for X in ${SPELL_DICTS} ; do
+ SPELL_DICTS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
+done
+RDEPEND="${SPELL_DICTS_DEPEND}"
+unset X SPELL_DICTS SPELL_DICTS_DEPEND
+
+# no need for iuse here as this needs to be written out and is subset
+# of lignuas anyway
+EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
+TDEPEND=""
+for i in ${OO_EXTENSIONS[@]}; do
+ lingua=${i/_*.oxt/}
+ lingua=${lingua/*Pack-/}
+ if [[ ${lingua} == en-US ]]; then
+ TDEPEND+=" ${EXT_URI}/${i}"
+ else
+ TDEPEND+=" linguas_${lingua}? ( ${EXT_URI}/${i} )"
+ fi
+done
+SRC_URI+=" templates? ( ${TDEPEND} )"
+unset i lingua TDEPEND EXT_URI
+
+# blockers for old libreoffice with bundled linguas
+RDEPEND+="
+ !<=app-office/libreoffice-3.4.4.2-r1
+ !=app-office/libreoffice-3.4.9999-r1
+ !=app-office/libreoffice-9999-r1
+ !<=app-office/libreoffice-bin-3.4.4.2-r1
+"
+
+RESTRICT="strip"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ default
+
+ local lang dir rpmdir i
+ local ooextused=()
+
+ for lang in ${LANGUAGES}; do
+ # break away if not enabled; paludis support
+ use_if_iuse linguas_${lang} || continue
+
+ dir=${lang/_/-}
+
+ # for english we provide just helppack, as translation is always there
+ if [[ ${lang} != en ]]; then
+ rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_langpack-rpm_${dir}/RPMS/"
+ [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
+ # First remove dictionaries, we want to use system ones.
+ rm -rf "${S}/${rpmdir}/"*dict*.rpm
+ rpm_unpack "./${rpmdir}/"*.rpm
+ fi
+ if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
+ [[ ${lang} == en ]] && dir="en-US"
+ rpmdir="LibO_${MY_PV}${RC_VERSION}_Linux_x86_helppack-rpm_${dir}/RPMS/"
+ [[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
+ rpm_unpack ./"${rpmdir}/"*.rpm
+ fi
+ if use templates; then
+ for i in ${OO_EXTENSIONS[@]}; do
+ lingua=${i/_*.oxt/}
+ lingua=${lingua/*Pack-/}
+ if [[ ${lang} == ${lingua} || ${lingua} == en-US ]]; then
+ if [[ ! -f "${S}/${i}" ]]; then
+ cp -v "${DISTDIR}/${i}" "${S}"
+ ooextused+=( "${i}" )
+ fi
+ fi
+ done
+ fi
+ done
+ OO_EXTENSIONS=()
+ for i in ${ooextused[@]}; do
+ OO_EXTENSIONS+=( ${i} )
+ done
+}
+
+src_prepare() { :; }
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2 ${MY_PV})/basis$(get_version_component_range 1-2 ${MY_PV})/
+ # Condition required for people that do not install anything eg no linguas
+ # or just english with no offlinehelp.
+ if [[ -d "${dir}" ]] ; then
+ if [[ ${PV} == 9999 ]]; then
+ # starting with 3.5 this is in common dir
+ insinto /usr/$(get_libdir)/${PN/-l10n/}/
+ else
+ insinto /usr/$(get_libdir)/${PN/-l10n/}/basis$(get_version_component_range 1-2)/
+ fi
+ doins -r "${dir}"/*
+ fi
+
+ echo "${OO_EXTENSIONS[@]}"
+ office-ext_src_install
+}
+
+pkg_postinst() {
+ office-ext_pkg_postinst
+}
+pkg_prerm() {
+ office-ext_pkg_prerm
+}
diff --git a/app-office/libreoffice-l10n/libreoffice-l10n-9999.ebuild b/app-office/libreoffice-l10n/libreoffice-l10n-9999-r1.ebuild
index a59f3ca9b494..19cba865c921 100644
--- a/app-office/libreoffice-l10n/libreoffice-l10n-9999.ebuild
+++ b/app-office/libreoffice-l10n/libreoffice-l10n-9999-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-9999.ebuild,v 1.6 2011/11/10 20:35:58 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-9999-r1.ebuild,v 1.1 2011/11/12 12:25:57 scarabeus Exp $
EAPI=4
@@ -8,7 +8,16 @@ EAPI=4
RC_VERSION="rc2" # CHECK ME WITH EVERY BUMP!
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm/"
-inherit rpm eutils versionator
+
+OO_EXTENSIONS=(
+ "472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt"
+ "53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt"
+ "4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt"
+ "a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt"
+ "09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt"
+ "b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt"
+)
+inherit rpm eutils versionator office-ext
DESCRIPTION="Translations for the Libreoffice suite."
HOMEPAGE="http://www.libreoffice.org"
@@ -16,7 +25,7 @@ HOMEPAGE="http://www.libreoffice.org"
LICENSE="LGPL-3"
SLOT="0"
[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
-IUSE="offlinehelp"
+IUSE="offlinehelp templates"
LANGUAGES_HELP="bg bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu
fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si
@@ -51,12 +60,28 @@ done
RDEPEND="${SPELL_DICTS_DEPEND}"
unset X SPELL_DICTS SPELL_DICTS_DEPEND
-# blockers for old libreoffice with linguas bundled
+# no need for iuse here as this needs to be written out and is subset
+# of lignuas anyway
+EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
+TDEPEND=""
+for i in ${OO_EXTENSIONS[@]}; do
+ lingua=${i/_*.oxt/}
+ lingua=${lingua/*Pack-/}
+ if [[ ${lingua} == en-US ]]; then
+ TDEPEND+=" ${EXT_URI}/${i}"
+ else
+ TDEPEND+=" linguas_${lingua}? ( ${EXT_URI}/${i} )"
+ fi
+done
+SRC_URI+=" templates? ( ${TDEPEND} )"
+unset i lingua TDEPEND EXT_URI
+
+# blockers for old libreoffice with bundled linguas
RDEPEND+="
- !<=app-office/libreoffice-3.4.3.2
- !=app-office/libreoffice-3.4.9999
- !=app-office/libreoffice-9999
- !<=app-office/libreoffice-bin-3.4.3-r1
+ !<=app-office/libreoffice-3.4.4.2-r1
+ !=app-office/libreoffice-3.4.9999-r1
+ !=app-office/libreoffice-9999-r1
+ !<=app-office/libreoffice-bin-3.4.4.2-r1
"
RESTRICT="strip"
@@ -66,7 +91,8 @@ S="${WORKDIR}"
src_unpack() {
default
- local lang dir rpmdir
+ local lang dir rpmdir i
+ local ooextused=()
for lang in ${LANGUAGES}; do
# break away if not enabled; paludis support
@@ -88,6 +114,22 @@ src_unpack() {
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
rpm_unpack ./"${rpmdir}/"*.rpm
fi
+ if use templates; then
+ for i in ${OO_EXTENSIONS[@]}; do
+ lingua=${i/_*.oxt/}
+ lingua=${lingua/*Pack-/}
+ if [[ ${lang} == ${lingua} || ${lingua} == en-US ]]; then
+ if [[ ! -f "${S}/${i}" ]]; then
+ cp -v "${DISTDIR}/${i}" "${S}"
+ ooextused+=( "${i}" )
+ fi
+ fi
+ done
+ fi
+ done
+ OO_EXTENSIONS=()
+ for i in ${ooextused[@]}; do
+ OO_EXTENSIONS+=( ${i} )
done
}
@@ -108,4 +150,14 @@ src_install() {
fi
doins -r "${dir}"/*
fi
+
+ echo "${OO_EXTENSIONS[@]}"
+ office-ext_src_install
+}
+
+pkg_postinst() {
+ office-ext_pkg_postinst
+}
+pkg_prerm() {
+ office-ext_pkg_prerm
}
diff --git a/app-office/libreoffice-l10n/metadata.xml b/app-office/libreoffice-l10n/metadata.xml
index 3fe5522f88bd..9cbcc3910f9b 100644
--- a/app-office/libreoffice-l10n/metadata.xml
+++ b/app-office/libreoffice-l10n/metadata.xml
@@ -3,7 +3,7 @@
<pkgmetadata>
<herd>openoffice</herd>
<use>
- <flag name="offlinehelp">Install help files locally instead of
- using the LibreOffice Wiki</flag>
+ <flag name="offlinehelp">Install help files locally instead of using the LibreOffice Wiki</flag>
+ <flag name="templates">Enable installation of Sun templates</flag>
</use>
</pkgmetadata>