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 3828D138CD0 for ; Sun, 31 May 2015 19:09:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3749E087E; 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 3EA78E0835 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 30125340C50 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 B24A1A11 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: <1433099271.3ea557bbb5e6265890555def7273206f9f55fc19.mrueg@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kde4-l10n/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/kde4-l10n/kde4-l10n-15.04.2.ebuild X-VCS-Directories: kde-apps/kde4-l10n/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 3ea557bbb5e6265890555def7273206f9f55fc19 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: 125b43a9-48b3-4f8a-b356-a8967c05a692 X-Archives-Hash: 202817e8ddb6d87abeb29fd90db185ba commit: 3ea557bbb5e6265890555def7273206f9f55fc19 Author: Manuel Rüger gentoo org> AuthorDate: Sun May 31 19:07:51 2015 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Sun May 31 19:07:51 2015 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=3ea557bb [kde-apps/kde4-l10n] Version bump Package-Manager: portage-2.2.20 kde-apps/kde4-l10n/kde4-l10n-15.04.2.ebuild | 133 ++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) diff --git a/kde-apps/kde4-l10n/kde4-l10n-15.04.2.ebuild b/kde-apps/kde4-l10n/kde4-l10n-15.04.2.ebuild new file mode 100644 index 0000000..8f5a8c4 --- /dev/null +++ b/kde-apps/kde4-l10n/kde4-l10n-15.04.2.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +KDE_HANDBOOK="optional" +KMNAME="kde-l10n" +inherit kde4-base + +DESCRIPTION="KDE internationalization package" +HOMEPAGE="http://l10n.kde.org" + +DEPEND=" + sys-devel/gettext +" +RDEPEND=" + !> "${S}"/CMakeLists.txt + + # Drop KF5-based part + sed -e '/add_subdirectory(5)/ s/^/#/' -i "${S}"/${DIR}/CMakeLists.txt + + # Drop translations that get installed with plasma 5 and kde apps 5 packages + if use minimal; then + einfo "Removing paths from ${LNG}" + if [[ -d "${KMNAME}-${LNG}-${LV}" ]] ; then + rm -rf "${KMNAME}-${LNG}-${LV}" + fi + + # Remove dirs + while read path; do + if [[ -e "${S}"/${DIR}/4/${LNG}/${path%\ *}/CMakeLists.txt ]] ; then + sed -e "/${path#*\ }/ s/^/#/"\ + -i "${S}"/${DIR}/4/${LNG}/${path%\ *}/CMakeLists.txt + fi + done < <(grep -v "^#" "${REMOVE_DIRS}") + + # Remove messages + for path in $(grep -v "^#" "${REMOVE_MSGS}") ; do + rm -f "${S}"/${DIR}/4/${LNG}/messages/${path} + done + + else + if [[ -d "${KMNAME}-${LNG}-${LV}" ]] ; then + # Merge legacy localisation + for path in $(find "${KMNAME}-${LNG}-${LV}" -name "*.po"); do + cp -rn "${path}" "${path/${LV}/${PV}/4/${LNG}}" || die + done + rm -rf "${KMNAME}-${LNG}-${LV}" + fi + fi + 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 +}