public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kde-l10n/
Date: Wed, 13 Jul 2016 18:23:31 +0000 (UTC)	[thread overview]
Message-ID: <1468434112.a339b11c0b9de99a5809d2f06eb17895160ecc98.johu@gentoo> (raw)

commit:     a339b11c0b9de99a5809d2f06eb17895160ecc98
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Jul 10 15:59:02 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 18:21:52 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=a339b11c

kde-apps/kde-l10n: Add KDE_L10N

This adds 3 new sr variants to L10N.

Package-Manager: portage-2.2.28

Signed-off-by: Johannes Huber <johu <AT> gentoo.org>

 kde-apps/kde-l10n/kde-l10n-16.04.3.ebuild | 47 ++++++-------------------------
 1 file changed, 9 insertions(+), 38 deletions(-)

diff --git a/kde-apps/kde-l10n/kde-l10n-16.04.3.ebuild b/kde-apps/kde-l10n/kde-l10n-16.04.3.ebuild
index c054dc9..ba93054 100644
--- a/kde-apps/kde-l10n/kde-l10n-16.04.3.ebuild
+++ b/kde-apps/kde-l10n/kde-l10n-16.04.3.ebuild
@@ -5,12 +5,18 @@
 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"
-HOMEPAGE="http://l10n.kde.org"
 
 KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
 
 DEPEND="
 	$(add_frameworks_dep ki18n)
@@ -25,57 +31,22 @@ RDEPEND="
 	!<kde-apps/ktp-l10n-${PV}
 "
 
-# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.xz::' -e 's:kde-l10n-::' |tr '\n' ' '
-MY_LANGS="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 sv tr ug uk wa zh_CN zh_TW"
-
-IUSE="$(printf 'l10n_%s ' ${MY_LANGS//[_@]/-})"
-
-URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
-SRC_URI=""
-for my_lang in ${MY_LANGS} ; do
-	SRC_URI="${SRC_URI} l10n_${my_lang//[_@]/-}? ( ${URI_BASE}/${PN}-${my_lang}-${PV}.tar.xz )"
-done
-
-S="${WORKDIR}"
-
 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 "${MY_LANGS//[@_]/-}"
+		elog "${KDE_L10N[@]}"
 		elog
 	fi
 	[[ -n ${A} ]] && kde5_pkg_setup
 }
 
-src_unpack() {
-	for my_tar in ${A}; do
-		tar -xpf "${DISTDIR}/${my_tar}" --xz \
-			"${my_tar/.tar.xz/}/CMakeLists.txt" "${my_tar/.tar.xz/}/5" 2> /dev/null ||
-			elog "${my_tar}: tar extract command failed at least partially - continuing"
-	done
-}
-
 src_prepare() {
-	default
+	kde5_src_prepare
 	[[ -n ${A} ]] || return
 
-	# add all l10n to cmake
-	cat <<-EOF > CMakeLists.txt || die
-project(kde-l10n)
-cmake_minimum_required(VERSION 2.8.12)
-$(printf "add_subdirectory( %s )\n" \
-	`find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`)
-EOF
-
-	# Drop KDE4-based part
-	find -maxdepth 2 -type f -name CMakeLists.txt -exec \
-		sed -i -e "/add_subdirectory(4)/ s/^/#DONT/" {} + || die
-
 	# Handbook optional
 	find -type f -name CMakeLists.txt -exec \
 		sed -i -e "/find_package.*KF5DocTools/ s/ REQUIRED//" {} + || die


             reply	other threads:[~2016-07-13 18:23 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-13 18:23 Johannes Huber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-10-16 18:44 [gentoo-commits] proj/kde:master commit in: kde-apps/kde-l10n/ Michael Palimaka
2016-10-13  9:05 Johannes Huber
2016-07-08 17:29 Michael Palimaka
2016-06-26 16:50 Michael Palimaka
2016-04-15 19:06 Johannes Huber
2016-04-08 22:12 Andreas Hüttel
2016-04-07 19:19 Michael Palimaka
2016-04-07 17:01 Michael Palimaka
2016-03-30 16:05 Johannes Huber
2016-03-29 19:23 Alexey Shvetsov
2016-03-20 20:43 Johannes Huber
2015-12-06 15:22 Alexey Shvetsov
2015-09-19 14:05 Manuel Rüger
2015-08-25 22:20 Johannes Huber
2015-08-08 12:28 Johannes Huber
2015-08-01  2:13 Manuel Rüger
2015-06-27 13:53 Manuel Rüger
2015-05-31 19:09 Manuel Rüger
2015-05-27 12:07 Michael Palimaka
2015-05-23 17:16 Michael Palimaka
2015-04-26  2:06 Manuel Rüger
2015-04-26  2:06 Manuel Rüger
2015-04-13 15:22 Manuel Rüger
2015-04-13 15:08 Manuel Rüger
2015-04-13 14:43 Manuel Rüger
2015-04-13 14:18 Manuel Rüger
2015-04-13 13:23 Manuel Rüger
2015-01-14  0:36 Manuel Rüger
2015-01-14  0:30 Manuel Rüger
2014-12-12 23:08 Manuel Rüger
2014-12-12 20:58 Manuel Rüger
2014-11-24 12:38 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468434112.a339b11c0b9de99a5809d2f06eb17895160ecc98.johu@gentoo \
    --to=johu@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox