From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RfXZz-000253-HJ for garchives@archives.gentoo.org; Tue, 27 Dec 2011 14:00:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C078221C0B8; Tue, 27 Dec 2011 14:00:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7720021C0B8 for ; Tue, 27 Dec 2011 14:00:27 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA9071B406C for ; Tue, 27 Dec 2011 14:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2686080043 for ; Tue, 27 Dec 2011 14:00:26 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <9b1f137f6910e02414f3e5b4e9fefcf71675bd2a.dilfridge@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdepim-l10n/ X-VCS-Repository: proj/kde X-VCS-Files: kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild X-VCS-Directories: kde-base/kdepim-l10n/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 9b1f137f6910e02414f3e5b4e9fefcf71675bd2a Date: Tue, 27 Dec 2011 14:00:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f23f4d8f-a85f-48a4-abb3-1fb8ac38fdf2 X-Archives-Hash: a12439d0ee45d9d9328d90411cb2c5fb commit: 9b1f137f6910e02414f3e5b4e9fefcf71675bd2a Author: Andreas K. Huettel (dilfridge) gentoo o= rg> AuthorDate: Tue Dec 27 14:02:13 2011 +0000 Commit: Andreas H=C3=BCttel gentoo org> CommitDate: Tue Dec 27 14:02:13 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/kde.git;a=3Dc= ommit;h=3D9b1f137f [kde-base/kdepim-l10n] Add localization for kdepim-4.7.95 (Portage version: 2.1.10.41/git/Linux x86_64, unsigned Manifest commit) --- kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild | 112 ++++++++++++++++++= ++++++ 1 files changed, 112 insertions(+), 0 deletions(-) diff --git a/kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild b/kde-base/kd= epim-l10n/kdepim-l10n-4.7.95.ebuild new file mode 100644 index 0000000..5495a2f --- /dev/null +++ b/kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.7.= 4-r1.ebuild,v 1.1 2011/12/27 13:54:54 dilfridge Exp $ + +EAPI=3D4 + +KDE_HANDBOOK=3Doptional +inherit kde4-base + +DESCRIPTION=3D"KDE PIM internationalization package" +HOMEPAGE=3D"http://www.kde.org/" +LICENSE=3D"GPL-2" + +DEPEND=3D" + sys-devel/gettext +" +RDEPEND=3D"" + +KEYWORDS=3D"~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE=3D"" + +MY_LANGS=3D"ar bg bs ca ca@valencia cs da de el en_GB es et eu fi fr ga = gl he hr +hu ia id is it ja kk km kn ko lt lv nb nds nl nn pa pl pt pt_BR ro ru sk= sl +sv th tr ug uk wa zh_CN zh_TW" + +URI_BASE=3D"${SRC_URI/-${PV}.tar.bz2/}" +SRC_URI=3D"" + +for MY_LANG in ${MY_LANGS} ; do + IUSE=3D"${IUSE} linguas_${MY_LANG}" + SRC_URI=3D"${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE/kdepim/kde}/kde-= l10n-${MY_LANG}-${PV}.tar.bz2 )" +done + +S=3D"${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 + + # For EAPI >=3D 3, or if not using .tar.xz archives: + [[ -n ${A} ]] && unpack ${A} + cd "${S}" + + # add all linguas to cmake + if [[ -n ${A} ]]; then + for LNG in ${LINGUAS}; do + DIR=3D"kde-l10n-${LNG}-${PV}" + if [[ -d "${DIR}" ]] ; then + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt + fi + + # remove everything except kdepim and kdepim-runtime + for SUBDIR in data docs messages scripts ; do + if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then + einfo " ${SUBDIR} subdirectory" + echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory= (kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" ) + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subd= irectory(kdepim-runtime)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" ) + fi + done + + # in some cases we may have sub-lingua subdirs, e.g. sr :( + for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do + XLNG=3D$(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" + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirector= y(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" ) + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_sub= directory(kdepim-runtime)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" ) + fi + done + fi + done + done + fi +} + +src_prepare() { + [[ -n ${A} ]] && kde4-base_src_prepare +} + +src_configure() { + mycmakeargs=3D( + $(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 +}