From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA6A9138306 for ; Wed, 13 Jul 2016 18:23:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D622221C250; Wed, 13 Jul 2016 18:23:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11CEB21C13B for ; Wed, 13 Jul 2016 18:23:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B0A9D340CD7 for ; Wed, 13 Jul 2016 18:23:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77070244F for ; Wed, 13 Jul 2016 18:23:31 +0000 (UTC) From: "Johannes Huber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Johannes Huber" Message-ID: <1468434112.fec1c6c2ca8e68c1c9f539ef56a5d03f3f14c516.johu@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kdepim-l10n/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild X-VCS-Directories: kde-apps/kdepim-l10n/ X-VCS-Committer: johu X-VCS-Committer-Name: Johannes Huber X-VCS-Revision: fec1c6c2ca8e68c1c9f539ef56a5d03f3f14c516 X-VCS-Branch: master Date: Wed, 13 Jul 2016 18:23:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ff2ab394-1e76-48a7-8d66-6e2a806286a3 X-Archives-Hash: 808ef64c23b937f9e7b0a00184101739 commit: fec1c6c2ca8e68c1c9f539ef56a5d03f3f14c516 Author: Andreas Sturmlechner gmail com> AuthorDate: Sun Jul 10 15:59:57 2016 +0000 Commit: Johannes Huber gentoo org> CommitDate: Wed Jul 13 18:21:52 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=fec1c6c2 kde-apps/kdepim-l10n: Add KDE_L10N This adds 3 new sr variants to L10N. Package-Manager: portage-2.2.28 Signed-off-by: Johannes Huber gentoo.org> kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild | 92 ++++++------------------- 1 file changed, 22 insertions(+), 70 deletions(-) diff --git a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild index 69c0e23..f570030 100644 --- a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild +++ b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.3.ebuild @@ -5,12 +5,18 @@ EAPI=6 KDE_HANDBOOK="optional" +KDE_L10N=( + 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 sr-ijekavsk sr-Latn sr-Latn-ijekavsk sv tr ug uk wa zh-CN zh-TW +) +KMNAME="kde-l10n" inherit kde5 DESCRIPTION="KDE PIM internationalization package" -HOMEPAGE="http://l10n.kde.org" KEYWORDS="~amd64 ~x86" +IUSE="" DEPEND=" $(add_frameworks_dep ki18n) @@ -22,59 +28,24 @@ RDEPEND=" ! /dev/null || - elog "${my_tar}: tar extract command failed at least partially - continuing" - done -} - src_prepare() { - default + kde5_src_prepare [[ -n ${A} ]] || return - # add all l10n to cmake - cat <<-EOF > CMakeLists.txt || die -project(kdepim-l10n) -cmake_minimum_required(VERSION 2.8.12) -$(printf "add_subdirectory( %s )\n" \ - `find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`) -EOF - - # Drop KDE4-based part - find -maxdepth 2 -type f -name CMakeLists.txt -exec \ - sed -i -e "/add_subdirectory(4)/ s/^/#DONT/" {} + || die - # Handbook optional find -type f -name CMakeLists.txt -exec \ sed -i -e "/find_package.*KF5DocTools/ s/ REQUIRED//" {} + || die @@ -84,39 +55,20 @@ EOF fi # Remove everything except kdepim, kdepimlibs, kdepim-runtime and pim - local LNG DIR - 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 - einfo " ${SUBDIR} subdirectory" - echo > "${SDIR}/${SUBDIR}/CMakeLists.txt" + for lng in ${KDE_L10N[@]}; do + local dir sdir + dir="kde-l10n-$(kde_l10n2lingua ${lng})-${PV}" + sdir="${S}/${dir}/5/$(kde_l10n2lingua ${lng})" + if [[ -d "${dir}" ]] ; then + einfo " L10N: ${lng}" + + for subdir in data docs messages scripts ; do + if [[ -d "${sdir}/${subdir}" ]] ; then + einfo " ${subdir} subdirectory" + echo > "${sdir}/${subdir}/CMakeLists.txt" for pim in ${PIM_L10N}; do - [[ -d "${SDIR}/${SUBDIR}/${pim}" ]] && \ - ( echo "add_subdirectory(${pim})" >> "${SDIR}/${SUBDIR}/CMakeLists.txt" ) - done - fi - done - - # In some cases we may have sub-lingua subdirs, e.g. sr :( - for XSUBDIR in "${SDIR}/${LNG}"@* ; do - XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::') - if [[ -d "${XSUBDIR}" ]] ; then - einfo " ${XLNG} variant" - # remove everything except kdepim and kdepim-runtime - for SUBDIR in data docs messages scripts ; do - if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then - einfo " ${SUBDIR} subdirectory" - echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" - for pim in ${PIM_L10N}; do - [[ -d "${XSUBDIR}/${SUBDIR}/${pim}" ]] && \ - ( echo "add_subdirectory(${pim})" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" ) - done - fi + [[ -d "${sdir}/${subdir}/${pim}" ]] && \ + ( echo "add_subdirectory(${pim})" >> "${sdir}/${subdir}/CMakeLists.txt" ) done fi done