commit:     0059cba7874b51193579681a753f6727bab56f2a
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 19 09:36:26 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <herd>kde</herd>
+</pkgmetadata>

Reply via email to