public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/tagainijisho/
Date: Mon,  8 Jan 2018 07:25:52 +0000 (UTC)	[thread overview]
Message-ID: <1515396338.29111e77caf81c872c298d33bafddb86c09900cf.ulm@gentoo> (raw)

commit:     29111e77caf81c872c298d33bafddb86c09900cf
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  8 07:25:11 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan  8 07:25:38 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29111e77

app-i18n/tagainijisho: Migrate from LINGUAS to L10N.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild | 27 ++++++++++++++--------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
index 66e285c37c3..6b4b8db7eed 100644
--- a/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
@@ -18,8 +18,8 @@ DEPEND="dev-qt/qtcore:4
 	>=dev-db/sqlite-3.11:3"
 RDEPEND="${DEPEND}"
 
-pkg_linguas=( ar cs de es fa_IR fi_FI fr hu id it nb nl pl pt ru sv th tr vi )
-IUSE+=" ${pkg_linguas[@]/#/linguas_}"
+pkg_langs=( ar cs de es fa fi fr hu id it nb nl pl pt ru sv th tr vi )
+IUSE+=" ${pkg_langs[@]/#/l10n_}"
 
 PATCHES=( "${FILESDIR}"/${P}-sqlite.patch )
 
@@ -27,22 +27,29 @@ src_configure() {
 	# GUI linguae
 	# en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
 	# linguae undeclared in IUSE will trigger an error, which is a handy check
-	for lingua in $(ls -1 i18n/*.ts | sed -e 's/.*tagainijisho_\(.*\)\.ts/\1/' | grep -v en | grep -v ja); do
-		if ! use linguas_${lingua}; then
-			rm i18n/tagainijisho_${lingua}.ts || die
+	local lang use_lang
+	for lang in i18n/*.ts; do
+		lang=${lang#i18n/tagainijisho_}
+		lang=${lang%.ts}
+		case ${lang} in
+			fa_IR|fi_FI) use_lang=${lang%%_*} ;; # use generic tags instead
+			*) use_lang=${lang} ;;
+		esac
+		if [[ ${lang} != en && ${lang} != ja ]] && ! use l10n_${use_lang}; then
+			rm i18n/tagainijisho_${lang}.ts || die
 		fi
 	done
 
 	# Dictionary linguae
 	# en is not optional here either, but nothing special needs to be done
 	# here too, linguae undeclared in IUSE will trigger an error
-	local cmake_linguas
-	for lingua in $(sed -e 's/;/ /g' -ne '/set(DICT_LANG ".*")/s/.*"\(.*\)".*/\1/p' CMakeLists.txt); do
-		if use linguas_${lingua}; then
-			cmake_linguas+=";${lingua}"
+	local cmake_langs
+	for lang in $(sed -e 's/;/ /g' -ne '/set(DICT_LANG ".*")/s/.*"\(.*\)".*/\1/p' CMakeLists.txt); do
+		if use l10n_${lang}; then
+			cmake_langs+=";${lang}"
 		fi
 	done
-	mycmakeargs=( -DDICT_LANG="${cmake_linguas};" )
+	mycmakeargs=( -DDICT_LANG="${cmake_langs};" )
 
 	cmake-utils_src_configure
 }


             reply	other threads:[~2018-01-08  7:25 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08  7:25 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-09 18:54 [gentoo-commits] repo/gentoo:master commit in: app-i18n/tagainijisho/ Matt Turner
2023-12-10 18:31 Mike Gilbert
2023-12-10 18:31 Mike Gilbert
2022-03-09  8:59 Jakov Smolić
2022-01-29 15:20 Yixun Lan
2021-07-01 20:08 Mike Gilbert
2021-07-01 20:08 Mike Gilbert
2021-04-21 18:51 Sam James
2021-04-01 19:57 Mike Gilbert
2021-04-01 19:57 Mike Gilbert
2021-01-17  4:10 Sam James
2020-10-02 17:45 Mike Gilbert
2020-10-02 17:45 Mike Gilbert
2020-07-04 13:53 Mike Gilbert
2020-07-04 13:53 Mike Gilbert
2020-04-02 19:28 Mike Gilbert
2020-01-17 19:09 Mike Gilbert
2020-01-01 22:10 Mike Gilbert
2019-10-04 18:43 Mike Gilbert
2019-10-04 18:43 Mike Gilbert
2018-07-07  2:03 Mike Gilbert
2018-06-13 14:36 Mike Gilbert
2018-06-13 14:36 Mike Gilbert
2018-04-25 21:28 Aaron Bauman
2018-01-08  7:25 Ulrich Müller
2016-03-15 17:46 Denis Dupeyron
2016-03-08 18:56 Denis Dupeyron

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=1515396338.29111e77caf81c872c298d33bafddb86c09900cf.ulm@gentoo \
    --to=ulm@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