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: net-irc/rbot/
Date: Sun,  7 Jan 2018 11:21:36 +0000 (UTC)	[thread overview]
Message-ID: <1515324040.77d6212dcb6dc56546ebd37944bff21bbfc56420.ulm@gentoo> (raw)

commit:     77d6212dcb6dc56546ebd37944bff21bbfc56420
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  7 11:20:11 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 11:20:40 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77d6212d

net-irc/rbot: Test LINGUAS rather than linguas_* USE flags.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 10 +++-------
 net-irc/rbot/rbot-0.9.15_p20160325.ebuild    | 10 +++-------
 2 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index 9d5251d93d3..c176e4cd985 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,10 +19,6 @@ IUSE="spell aspell timezone translator shorturl nls figlet
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
-for lang in $ILINGUAS; do
-	IUSE="${IUSE} linguas_${lang}"
-done
-
 RUBY_PATCHES=( rbot-rakefile-gettext.patch )
 
 RDEPEND+="
@@ -128,7 +124,7 @@ all_ruby_compile() {
 	# need to add them later.
 	if use nls; then
 		strip-linguas ${ILINGUAS}
-		if [[ -n ${LINGUAS} ]]; then
+		if [[ -n ${LINGUAS+set} ]]; then
 			# As the the language name used by the rbot data files does
 			# not correspond to the ISO codes we usually use for LINGUAS,
 			# the following list of local varables will work as a
@@ -143,7 +139,7 @@ all_ruby_compile() {
 			local lang_rbot_ja="japanese"
 
 			for lang in ${ILINGUAS}; do
-				use linguas_${lang} && continue
+				has ${lang} ${LINGUAS} && continue
 
 				lang_varname="lang_rbot_${lang}"
 				lang_rbot=${!lang_varname}

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
index 48af140afb3..ee7d5458ae7 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,10 +19,6 @@ IUSE="spell aspell timezone translator shorturl nls figlet
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
-for lang in $ILINGUAS; do
-	IUSE="${IUSE} linguas_${lang}"
-done
-
 RUBY_PATCHES=( rbot-rakefile-gettext.patch )
 
 RDEPEND+="
@@ -118,7 +114,7 @@ all_ruby_compile() {
 	# need to add them later.
 	if use nls; then
 		strip-linguas ${ILINGUAS}
-		if [[ -n ${LINGUAS} ]]; then
+		if [[ -n ${LINGUAS+set} ]]; then
 			# As the the language name used by the rbot data files does
 			# not correspond to the ISO codes we usually use for LINGUAS,
 			# the following list of local varables will work as a
@@ -133,7 +129,7 @@ all_ruby_compile() {
 			local lang_rbot_ja="japanese"
 
 			for lang in ${ILINGUAS}; do
-				use linguas_${lang} && continue
+				has ${lang} ${LINGUAS} && continue
 
 				lang_varname="lang_rbot_${lang}"
 				lang_rbot=${!lang_varname}


             reply	other threads:[~2018-01-07 11:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-07 11:21 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-25 10:23 [gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/ Hans de Graaff
2023-08-19  9:17 Hans de Graaff
2023-07-09  5:42 Hans de Graaff
2023-03-30 13:04 Hans de Graaff
2021-07-22 19:28 Conrad Kostecki
2021-07-22 19:28 Conrad Kostecki
2021-06-30 10:15 Ulrich Müller
2021-03-09  9:41 Hans de Graaff
2020-05-06 17:25 Michał Górny
2019-04-12 13:58 Hans de Graaff
2018-07-01  7:01 Hans de Graaff
2018-03-26 18:39 Robin H. Johnson
2018-01-21 19:37 Hans de Graaff
2017-07-16  6:49 Hans de Graaff
2017-07-15 10:20 Hans de Graaff
2016-12-16 21:06 Hans de Graaff
2016-12-16 21:06 Hans de Graaff
2016-08-28  6:33 Hans de Graaff
2016-08-24 13:25 Lars Wendler
2016-04-03 18:03 Manuel Rüger

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=1515324040.77d6212dcb6dc56546ebd37944bff21bbfc56420.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