summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-07-03 11:36:48 +0200
committerJohannes Huber <johu@gentoo.org>2016-07-03 19:52:50 +0200
commit78565ea3fdb167fa375e352f70ad5eb22c0318a4 (patch)
tree6f0c0164548ddcb713a2d958e1384eb8b6ea9ecf
parente6e7d8227d1f7863560a3cc2b60ba1382dd73da6 (diff)
downloadkde-78565ea3fdb167fa375e352f70ad5eb22c0318a4.tar.gz
kde-78565ea3fdb167fa375e352f70ad5eb22c0318a4.tar.bz2
kde-78565ea3fdb167fa375e352f70ad5eb22c0318a4.zip
kde-apps/kdepim-l10n: Sync LINGUAS->L10N with tree
Package-Manager: portage-2.2.28 Signed-off-by: Johannes Huber <johu@gentoo.org>
-rw-r--r--kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
index 6f7fe07af00..69c0e232538 100644
--- a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
+++ b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
@@ -27,14 +27,14 @@ MY_LANGS="ar ast bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga
gl he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro
ru sk sl sr sv tr ug uk wa zh_CN zh_TW"
-IUSE="$(printf 'linguas_%s ' ${MY_LANGS})"
+IUSE="$(printf 'l10n_%s ' ${MY_LANGS//[@_]/-})"
PIM_L10N="kdepim kdepimlibs kdepim-runtime pim"
URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
SRC_URI=""
for my_lang in ${MY_LANGS} ; do
- SRC_URI="${SRC_URI} linguas_${my_lang}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${my_lang}-${PV}.tar.xz )"
+ SRC_URI="${SRC_URI} l10n_${my_lang/[@_]/-}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${my_lang}-${PV}.tar.xz )"
done
S="${WORKDIR}"
@@ -42,12 +42,10 @@ S="${WORKDIR}"
pkg_setup() {
if [[ -z ${A} ]]; then
elog
- elog "You either have the LINGUAS variable unset, or it only"
- elog "contains languages not supported by ${P}."
- elog "You won't have any additional language support."
+ elog "None of the requested L10N are supported by ${P}."
elog
elog "${P} supports these language codes:"
- elog "${MY_LANGS}"
+ elog "${MY_LANGS//[@_]/-}"
elog
fi
[[ -n ${A} ]] && kde5_pkg_setup
@@ -65,7 +63,7 @@ src_prepare() {
default
[[ -n ${A} ]] || return
- # add all linguas to cmake
+ # add all l10n to cmake
cat <<-EOF > CMakeLists.txt || die
project(kdepim-l10n)
cmake_minimum_required(VERSION 2.8.12)
@@ -87,10 +85,11 @@ EOF
# Remove everything except kdepim, kdepimlibs, kdepim-runtime and pim
local LNG DIR
- for LNG in ${LINGUAS}; do
+ for LNG in ${MY_LANGS}; do
DIR="kde-l10n-${LNG}-${PV}"
SDIR="${S}/${DIR}/5/${LNG}"
if [[ -d "${DIR}" ]] ; then
+ einfo " L10N: ${LNG/[@_]/-}"
for SUBDIR in data docs messages scripts ; do
if [[ -d "${SDIR}/${SUBDIR}" ]] ; then