commit:     6da603b14087fc284adc5ea3d58e80ef0aedad60
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Oct  9 20:08:07 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 18:44:11 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=6da603b1

kde-apps/kde-l10n: Re-enable ktp translations, block ktp-l10n and ktp*:4

Package-Manager: portage-2.3.0

 kde-apps/kde-l10n/kde-l10n-16.08.1-r1.ebuild | 85 ++++++++++++++++++++++++++++
 kde-apps/kde-l10n/metadata.xml               |  8 +++
 2 files changed, 93 insertions(+)

diff --git a/kde-apps/kde-l10n/kde-l10n-16.08.1-r1.ebuild 
b/kde-apps/kde-l10n/kde-l10n-16.08.1-r1.ebuild
new file mode 100644
index 0000000..b169174
--- /dev/null
+++ b/kde-apps/kde-l10n/kde-l10n-16.08.1-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_HANDBOOK="optional"
+# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 
's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
+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
+)
+inherit kde5
+
+DESCRIPTION="KDE internationalization package"
+
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+DEPEND="
+       $(add_frameworks_dep ki18n)
+       $(add_qt_dep linguist-tools)
+       sys-devel/gettext
+"
+RDEPEND="
+       !<kde-apps/kde4-l10n-${PV}
+       !<kde-apps/kdepim-l10n-${PV}:5
+       !<=kde-apps/khelpcenter-5.6.2
+       !kde-apps/ktp-accounts-kcm:4
+       !kde-apps/ktp-approver:4
+       !kde-apps/ktp-auth-handler:4
+       !kde-apps/ktp-common-internals:4
+       !kde-apps/ktp-contact-list:4
+       !kde-apps/ktp-filetransfer-handler:4
+       !kde-apps/ktp-kded-module:4
+       !kde-apps/ktp-l10n
+       !kde-apps/ktp-send-file:4
+       !kde-apps/ktp-text-ui:4
+"
+
+pkg_setup() {
+       if [[ -z ${A} ]]; then
+               elog
+               elog "None of the requested L10N are supported by ${P}."
+               elog
+               elog "${P} supports these language codes:"
+               elog "${KDE_L10N[@]}"
+               elog
+       fi
+       [[ -n ${A} ]] && kde5_pkg_setup
+}
+
+src_prepare() {
+       kde5_src_prepare
+       [[ -n ${A} ]] || return
+
+       # Handbook optional
+       find -type f -name CMakeLists.txt -exec \
+               sed -i -e "/find_package.*KF5DocTools/ s/ REQUIRED//" {} + || 
die
+       if ! use handbook ; then
+               find -mindepth 4 -maxdepth 4 -type f -name CMakeLists.txt -exec 
\
+                       sed -i -e '/add_subdirectory(docs)/ s/^/#DONT/' {} + || 
die
+       fi
+
+       # Remove kdepim translations (part of kde-apps/kdepim-l10n)
+       for subdir in kdepim kdepimlibs kdepim-runtime pim; do
+               find -mindepth 5 -maxdepth 5 -type f -name CMakeLists.txt -exec 
\
+                       sed -i -e "/add_subdirectory( *${subdir} *)/ 
s/^/#DONT/" {} + || die
+       done
+}
+
+src_configure() {
+       [[ -n ${A} ]] && kde5_src_configure
+}
+
+src_compile() {
+       [[ -n ${A} ]] && kde5_src_compile
+}
+
+src_test() { :; }
+
+src_install() {
+       [[ -n ${A} ]] && kde5_src_install
+}

diff --git a/kde-apps/kde-l10n/metadata.xml b/kde-apps/kde-l10n/metadata.xml
new file mode 100644
index 0000000..2fdbf33
--- /dev/null
+++ b/kde-apps/kde-l10n/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>k...@gentoo.org</email>
+               <name>Gentoo KDE Project</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to