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 9D889138A1C for ; Wed, 19 Nov 2014 09:37:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26920E089B; Wed, 19 Nov 2014 09:37:35 +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 B92DFE089B for ; Wed, 19 Nov 2014 09:37:34 +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 B7B18340411 for ; Wed, 19 Nov 2014 09:37:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64017A72D for ; Wed, 19 Nov 2014 09:37:32 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1416389786.0059cba7874b51193579681a753f6727bab56f2a.kensington@gentoo> Subject: [gentoo-commits] proj/kde:apps-scratch commit in: kde-apps/kde-l10n/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/kde-l10n/kde-l10n-14.11.90.ebuild kde-apps/kde-l10n/metadata.xml X-VCS-Directories: kde-apps/kde-l10n/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 0059cba7874b51193579681a753f6727bab56f2a X-VCS-Branch: apps-scratch Date: Wed, 19 Nov 2014 09:37:32 +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: d28d9b6b-96e5-47b1-88ed-01a99a66f3e7 X-Archives-Hash: ea5f7c36a4932d51896abb1d66552146 commit: 0059cba7874b51193579681a753f6727bab56f2a Author: Michael Palimaka gentoo org> AuthorDate: Wed Nov 19 09:36:26 2014 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Wed Nov 19 09:36:26 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=0059cba7 [kde-apps/kde-l10n] Add copy-and-paste ebuild to test resolving linguas collision blocker. Package-Manager: portage-2.2.14 --- kde-apps/kde-l10n/kde-l10n-14.11.90.ebuild | 79 ++++++++++++++++++++++++++++++ kde-apps/kde-l10n/metadata.xml | 5 ++ 2 files changed, 84 insertions(+) diff --git a/kde-apps/kde-l10n/kde-l10n-14.11.90.ebuild b/kde-apps/kde-l10n/kde-l10n-14.11.90.ebuild new file mode 100644 index 0000000..1fedf15 --- /dev/null +++ b/kde-apps/kde-l10n/kde-l10n-14.11.90.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +KDE_HANDBOOK="optional" +inherit kde4-base + +DESCRIPTION="KDE internationalization package" +HOMEPAGE="http://l10n.kde.org" + +DEPEND=" + sys-devel/gettext +" + +KEYWORDS="" +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 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() { + local LNG DIR + 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} + cd "${S}" + + # 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 + fi + done + fi +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_build handbook docs) + ) + [[ -n ${A} ]] && kde4-base_src_configure +} + +src_compile() { + [[ -n ${A} ]] && kde4-base_src_compile +} + +src_test() { + [[ -n ${A} ]] && kde4-base_src_test +} + +src_install() { + [[ -n ${A} ]] && kde4-base_src_install +} diff --git a/kde-apps/kde-l10n/metadata.xml b/kde-apps/kde-l10n/metadata.xml new file mode 100644 index 0000000..a23f444 --- /dev/null +++ b/kde-apps/kde-l10n/metadata.xml @@ -0,0 +1,5 @@ + + + + kde +