aboutsummaryrefslogtreecommitdiffstats
path: root/main/libreoffice
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-08-04 14:45:38 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-08-04 14:47:14 +0000
commitc0f23fbef3d4203653602011a5cc3fcc0fe2267b (patch)
tree57cf7da28acf3a7ec38b2af44047e2dedc13e0d4 /main/libreoffice
parentd62a69d9f27a321395d715b11f8945f6674b1a23 (diff)
downloadaports-c0f23fbef3d4203653602011a5cc3fcc0fe2267b.tar.bz2
aports-c0f23fbef3d4203653602011a5cc3fcc0fe2267b.tar.xz
main/libreoffice: enable additional language packs
Diffstat (limited to 'main/libreoffice')
-rw-r--r--main/libreoffice/APKBUILD38
1 files changed, 28 insertions, 10 deletions
diff --git a/main/libreoffice/APKBUILD b/main/libreoffice/APKBUILD
index f9116b1749..1e028d888c 100644
--- a/main/libreoffice/APKBUILD
+++ b/main/libreoffice/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=libreoffice
pkgver=4.4.5.2
-pkgrel=0
+pkgrel=1
pkgdesc="LibreOffice - Meta package for the full office suite"
url="http://www.libreoffice.org/"
arch="all"
@@ -16,12 +16,12 @@ depends_dev="cups-dev libjpeg-turbo-dev boost-dev clucene-dev libe-book-dev icu-
gconf-dev bluez-dev gstreamer1-dev gst-plugins-base1-dev gtk+2.0-dev
poppler-dev cairo-dev hyphen-dev mythes-dev python3-dev harfbuzz-dev
libfreehand-dev libodfgen-dev libcdr-dev"
-makedepends="$depends_dev autoconf automake tar coreutils ucpp gperf bison flex
- zip perl perl-archive-zip sed libxml2-utils"
+makedepends="$depends_dev autoconf automake tar coreutils findutils ucpp gperf
+ bison flex zip perl perl-archive-zip sed libxml2-utils"
# GNU sed is needed for in i18npool/CustomTarget_localedata.mk
install=""
subpackages="$pkgname-base $pkgname-calc $pkgname-common $pkgname-draw
- $pkgname-gnome $pkgname-impress $pkgname-lang-en_us $pkgname-math
+ $pkgname-gnome $pkgname-impress $pkgname-math
$pkgname-connector-postgres $pkgname-writer"
depends="$subpackages"
_addsrcurl="http://dev-www.libreoffice.org/src"
@@ -30,12 +30,29 @@ case $pkgver in
*.*.*) _v=$pkgver;;
esac
source="http://download.documentfoundation.org/libreoffice/src/${_v}/libreoffice-$pkgver.tar.xz
+ http://download.documentfoundation.org/libreoffice/src/${_v}/libreoffice-dictionaries-$pkgver.tar.xz
+ http://download.documentfoundation.org/libreoffice/src/${_v}/libreoffice-translations-$pkgver.tar.xz
$_addsrcurl/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
linux-musl.patch
fix-execinfo.patch
fix-includes.patch
"
+languages=""
+add_lang() {
+ local pkglang="${3:-$1}"
+ subpackages="$subpackages $pkgname-lang-${1}:_lang_${1}"
+ languages="$languages ${pkglang/_/-}"
+ eval "_lang_$1() { pkgdesc=\"LibreOffice - $2 language pack\"; depends=\"\"; _split lang_${pkglang}; }"
+}
+add_lang en_us "English (US)" en_US
+add_lang es "Spanish"
+add_lang fi "Finnish"
+add_lang pt "Portuguese"
+add_lang pt_br "Portuguese (Brazil)" pt_BR
+add_lang ru "Russian"
+add_lang sv "Swedish"
+
# help abuild find shared objects in rpath
ldpath="/usr/lib/libreoffice/program:/usr/lib/libreoffice/ure/lib/"
@@ -103,6 +120,7 @@ build() {
--with-external-dict-dir=/usr/share/hunspell \
--with-external-hyph-dir=/usr/share/hyphen \
--with-external-tar="$srcdir" \
+ --with-lang="$languages" \
--without-java \
--without-fonts \
--without-system-sane \
@@ -168,12 +186,6 @@ impress() {
_split impress
}
-en_us() {
- pkgdesc="LibreOffice - English (US) language pack"
- depends=""
- _split lang_en_US
-}
-
math() {
pkgdesc="LibreOffice - Equation editor"
depends="libreoffice-common"
@@ -193,16 +205,22 @@ writer() {
}
md5sums="9bcb92fc06b3e2676a841420079598bd libreoffice-4.4.5.2.tar.xz
+4c82bc306d11d2bedf27780656300af3 libreoffice-translations-4.4.5.2.tar.xz
+84ff615f57ff189ca5e1bb61480e271d libreoffice-dictionaries-4.4.5.2.tar.xz
1f24ab1d39f4a51faf22244c94a6203f 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
69bef53b6dc9d39d59d1514d02dbbcf7 linux-musl.patch
1cff63a520d1b037edddf1b4de4799dc fix-execinfo.patch
2410b3fef56a2163a0d3142330ecbcdc fix-includes.patch"
sha256sums="3aeb4f08918c6ca6ec12fc47c2be690d2180c2e41cc3136b6ed36185b89cec0d libreoffice-4.4.5.2.tar.xz
+7f4529914e4dfa960243ada641ada808619e193e1187f10f67e379063236d2a7 libreoffice-translations-4.4.5.2.tar.xz
+fb7ecff75e4668a9435f6111e658d1a5316154e34a8b93cd37b29b927f8bffdc libreoffice-dictionaries-4.4.5.2.tar.xz
390a5085651828b8fe12aa978b200f59b9155eedbb91a4be89bf7cf39eefdd4a 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
5cf5a446e5769f6a2df01c5c10702514fe9178334d1e53d3c7df843ca72c6fa2 linux-musl.patch
7171dfa651a7ee81b4e13a9fd9131428d9a65af138cac4cb428ae6c3e4bcb1f3 fix-execinfo.patch
2044d4c997472a46e95c68fa8bec19c1424e9074fad05df9f1c0d220dec00281 fix-includes.patch"
sha512sums="15abecb02d8ca478cb7d006834c8670b9e42d3e5d8ec772e9a1d805dbd2ef1145092d1d4e3a6531f21eeb75210c1354e91c4d3abeec97103ad4c3092b7b7273b libreoffice-4.4.5.2.tar.xz
+c23ab491b93e9011074ea163ebe891d0d79925089aef71db7ef6b2f35d0b1ee50a55f2b66da30cba7aaa4e74ee9b4922931904762feea26405f9fa85dadf5816 libreoffice-translations-4.4.5.2.tar.xz
+67e11a04bdad74021523e34ba149ace425c1975ace1f42b50d4d430e3aa1df4633ce6b1ecdd35c0d99d13fd98ff536cbe12134e15800c660807a38d61469c97d libreoffice-dictionaries-4.4.5.2.tar.xz
5664203e6426880041cdb227e91f79f00d2ca7ae28c6997f61b72cc599aac55838d082d2b2b551bd7a228424c350ddea5d41599b8ca58d444a2cd46c9206ea91 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
5fb4d5bf5cab21a0c95a9e51a4a138b427a08677c34bc14287c3eb74926b606345d5185c76bbe8957043d79dc33d46cf4aaa5182642c7fb9136dc48ed9e7fabb linux-musl.patch
567123f990c4a47c2e4cebf99f3486150740015e647ca2b2521e606f3350fc55ceda6c7ac031302da34e8fc90747d66619334fcfda4e7b8998456fe3619ab860 fix-execinfo.patch