From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 90B24138CD0 for ; Sun, 31 May 2015 19:09:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE24EE0835; Sun, 31 May 2015 19:09:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 448C9E087E for ; Sun, 31 May 2015 19:09:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20726340C4B for ; Sun, 31 May 2015 19:09:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A0188A04 for ; Sun, 31 May 2015 19:09:51 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1433099248.73b3bcd55de14984543fa62b85dd4aa8eee1bf35.mrueg@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kde-l10n/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/kde-l10n/kde-l10n-15.04.2.ebuild X-VCS-Directories: kde-apps/kde-l10n/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 73b3bcd55de14984543fa62b85dd4aa8eee1bf35 X-VCS-Branch: master Date: Sun, 31 May 2015 19:09:51 +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: d7fd46e2-ec06-4091-8d22-4ae8308a741f X-Archives-Hash: 7639ae011f10573d6f345b7df81852f3 commit: 73b3bcd55de14984543fa62b85dd4aa8eee1bf35 Author: Manuel Rüger gentoo org> AuthorDate: Sun May 31 19:07:28 2015 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Sun May 31 19:07:28 2015 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=73b3bcd5 [kde-apps/kde-l10n] Version bump Package-Manager: portage-2.2.20 kde-apps/kde-l10n/kde-l10n-15.04.2.ebuild | 98 +++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/kde-apps/kde-l10n/kde-l10n-15.04.2.ebuild b/kde-apps/kde-l10n/kde-l10n-15.04.2.ebuild new file mode 100644 index 0000000..890095b --- /dev/null +++ b/kde-apps/kde-l10n/kde-l10n-15.04.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +KDE_HANDBOOK="true" +inherit kde5 + +DESCRIPTION="KDE internationalization package" +HOMEPAGE="http://l10n.kde.org" + +DEPEND=" + sys-devel/gettext +" + +KEYWORDS=" ~amd64 ~x86" +IUSE="" + +# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' ' +MY_LANGS="ar 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" + +URI_BASE="${SRC_URI/-${PV}.tar.xz/}" +SRC_URI="" + +for MY_LANG in ${MY_LANGS} ; do + IUSE="${IUSE} linguas_${MY_LANG}" + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )" +done + +S="${WORKDIR}" + +src_unpack() { + 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 + elog "${P} supports these language codes:" + elog "${MY_LANGS}" + elog + fi + + [[ -n ${A} ]] && unpack ${A} +} + +src_prepare() { + local LNG DIR + # add all linguas to cmake + if [[ -n ${A} ]]; then + for LNG in ${LINGUAS}; do + DIR="${PN}-${LNG}-${PV}" + if [[ -d "${DIR}" ]] ; then + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt + + # Drop KDE4-based part + sed -e '/add_subdirectory(4)/ s/^/#/'\ + -i "${S}"/${DIR}/CMakeLists.txt || die + + # Handbook optional + sed -e '/KF5DocTools/ s/ REQUIRED//'\ + -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die + if ! use handbook ; then + sed -e '/add_subdirectory(docs)/ s/^/#/'\ + -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die + fi + + # Fix broken LINGUAS=sr (KDE4 leftover) + if [[ ${LNG} = "sr" ]] ; then + sed -e '/add_subdirectory(lokalize)/ s/^/#/'\ + -i "${S}"/${DIR}/5/${LNG}/data/kdesdk/CMakeLists.txt || die + fi + fi + done + fi +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_find_package handbook KF5DocTools) + ) + [[ -n ${A} ]] && kde5_src_configure +} + +src_compile() { + [[ -n ${A} ]] && kde5_src_compile +} + +src_test() { + [[ -n ${A} ]] && kde5_src_test +} + +src_install() { + [[ -n ${A} ]] && kde5_src_install +}