commit: 78565ea3fdb167fa375e352f70ad5eb22c0318a4 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> AuthorDate: Sun Jul 3 09:36:48 2016 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Sun Jul 3 17:52:50 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=78565ea3
kde-apps/kdepim-l10n: Sync LINGUAS->L10N with tree Package-Manager: portage-2.2.28 Signed-off-by: Johannes Huber <johu <AT> gentoo.org> kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild | 15 +++++++-------- 1 file 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 6f7fe07..69c0e23 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