summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-10-29 13:10:10 +0200
committerJustin Lecher <jlec@gentoo.org>2016-10-29 13:10:59 +0200
commit8800d8cb84bdc95a7aa18221072a7c82037429e5 (patch)
tree8e0d700bd0c35ddaad5196894c94f13079ffc79b /app-office/scribus/scribus-1.4.6.ebuild
parentsys-kernel/aufs-sources: Bump to latest genpatches and linux release (diff)
downloadgentoo-8800d8cb84bdc95a7aa18221072a7c82037429e5.tar.gz
gentoo-8800d8cb84bdc95a7aa18221072a7c82037429e5.tar.bz2
gentoo-8800d8cb84bdc95a7aa18221072a7c82037429e5.zip
app-office/scribus: Fix LINGUAS usage
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=583760 Package-Manager: portage-2.3.2 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'app-office/scribus/scribus-1.4.6.ebuild')
-rw-r--r--app-office/scribus/scribus-1.4.6.ebuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/app-office/scribus/scribus-1.4.6.ebuild b/app-office/scribus/scribus-1.4.6.ebuild
index 5d2dad6b5636..44240c674452 100644
--- a/app-office/scribus/scribus-1.4.6.ebuild
+++ b/app-office/scribus/scribus-1.4.6.ebuild
@@ -19,7 +19,7 @@ KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86"
IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk"
# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a}
-IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de_1901 de_CH de el en_AU en_GB en_US eo es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW"
+IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de@1901 de_CH de el en_AU en_GB en_US eo es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW"
IUSE+=" ${IUSE_LINGUAS// / linguas_}"
REQUIRED_USE="
@@ -76,12 +76,13 @@ src_prepare() {
}
src_configure() {
- local lang langs
+ local _lang lang langs
for lang in ${IUSE_LINGUAS}; do
+ _lang=$(translate_lang ${lang})
if use linguas_${lang}; then
- langs+=",${lang}"
+ langs+=",${_lang}"
else
- sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die
+ sed -e "/${_lang}/d" -i scribus/doc/CMakeLists.txt || die
fi
done
@@ -149,3 +150,10 @@ pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
+
+translate_lang() {
+ _lang=${1}
+ [[ ${1} == "ru_RU" ]] && _lang+=_0
+ [[ ${1} == "de@1901" ]] && _lang=de_1901
+ echo ${_lang}
+}