commit:     fcbbc6c644bc2103a486195a62fcad917d8f386a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  7 12:09:27 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 12:09:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcbbc6c6

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

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-irc/weechat/weechat-1.9.1.ebuild | 8 ++++----
 net-irc/weechat/weechat-2.0.1.ebuild | 8 ++++----
 net-irc/weechat/weechat-2.0.ebuild   | 8 ++++----
 net-irc/weechat/weechat-9999.ebuild  | 8 ++++----
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/net-irc/weechat/weechat-1.9.1.ebuild 
b/net-irc/weechat/weechat-1.9.1.ebuild
index e28f1929648..39521532b3f 100644
--- a/net-irc/weechat/weechat-1.9.1.ebuild
+++ b/net-irc/weechat/weechat-1.9.1.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=6
@@ -25,7 +25,7 @@ PLUGINS="+alias +buflist +charset +exec +fifo +logger +relay 
+scripts +spell +tr
 # dev-lang/v8 was dropped from Gentoo so we can't enable javascript support
 SCRIPT_LANGS="guile lua +perl +python ruby tcl"
 LANGS=" cs de es fr hu it ja pl pt pt_BR ru tr"
-IUSE="doc nls +ssl test ${LANGS// / linguas_} ${SCRIPT_LANGS} ${PLUGINS} 
${INTERFACES} ${NETWORKS}"
+IUSE="doc nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
@@ -76,7 +76,7 @@ src_prepare() {
        # install only required translations
        local i
        for i in ${LANGS} ; do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e "/${i}.po/d" \
                                po/CMakeLists.txt || die
@@ -86,7 +86,7 @@ src_prepare() {
        # install only required documentation ; en always
        for i in $(grep add_subdirectory doc/CMakeLists.txt \
                        | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e 
'/en/d'); do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e '/add_subdirectory('${i}')/d' \
                                doc/CMakeLists.txt || die

diff --git a/net-irc/weechat/weechat-2.0.1.ebuild 
b/net-irc/weechat/weechat-2.0.1.ebuild
index 59575ed9f9d..dd1313a0c73 100644
--- a/net-irc/weechat/weechat-2.0.1.ebuild
+++ b/net-irc/weechat/weechat-2.0.1.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=6
@@ -25,7 +25,7 @@ PLUGINS="+alias +buflist +charset +exec +fset +fifo +logger 
+relay +scripts +spe
 # dev-lang/v8 was dropped from Gentoo so we can't enable javascript support
 SCRIPT_LANGS="guile lua +perl php +python ruby tcl"
 LANGS=" cs de es fr hu it ja pl pt pt_BR ru tr"
-IUSE="doc nls +ssl test ${LANGS// / linguas_} ${SCRIPT_LANGS} ${PLUGINS} 
${INTERFACES} ${NETWORKS}"
+IUSE="doc nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
@@ -77,7 +77,7 @@ src_prepare() {
        # install only required translations
        local i
        for i in ${LANGS} ; do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e "/${i}.po/d" \
                                po/CMakeLists.txt || die
@@ -87,7 +87,7 @@ src_prepare() {
        # install only required documentation ; en always
        for i in $(grep add_subdirectory doc/CMakeLists.txt \
                        | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e 
'/en/d'); do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e '/add_subdirectory('${i}')/d' \
                                doc/CMakeLists.txt || die

diff --git a/net-irc/weechat/weechat-2.0.ebuild 
b/net-irc/weechat/weechat-2.0.ebuild
index 59575ed9f9d..dd1313a0c73 100644
--- a/net-irc/weechat/weechat-2.0.ebuild
+++ b/net-irc/weechat/weechat-2.0.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=6
@@ -25,7 +25,7 @@ PLUGINS="+alias +buflist +charset +exec +fset +fifo +logger 
+relay +scripts +spe
 # dev-lang/v8 was dropped from Gentoo so we can't enable javascript support
 SCRIPT_LANGS="guile lua +perl php +python ruby tcl"
 LANGS=" cs de es fr hu it ja pl pt pt_BR ru tr"
-IUSE="doc nls +ssl test ${LANGS// / linguas_} ${SCRIPT_LANGS} ${PLUGINS} 
${INTERFACES} ${NETWORKS}"
+IUSE="doc nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
@@ -77,7 +77,7 @@ src_prepare() {
        # install only required translations
        local i
        for i in ${LANGS} ; do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e "/${i}.po/d" \
                                po/CMakeLists.txt || die
@@ -87,7 +87,7 @@ src_prepare() {
        # install only required documentation ; en always
        for i in $(grep add_subdirectory doc/CMakeLists.txt \
                        | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e 
'/en/d'); do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e '/add_subdirectory('${i}')/d' \
                                doc/CMakeLists.txt || die

diff --git a/net-irc/weechat/weechat-9999.ebuild 
b/net-irc/weechat/weechat-9999.ebuild
index 59575ed9f9d..dd1313a0c73 100644
--- a/net-irc/weechat/weechat-9999.ebuild
+++ b/net-irc/weechat/weechat-9999.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=6
@@ -25,7 +25,7 @@ PLUGINS="+alias +buflist +charset +exec +fset +fifo +logger 
+relay +scripts +spe
 # dev-lang/v8 was dropped from Gentoo so we can't enable javascript support
 SCRIPT_LANGS="guile lua +perl php +python ruby tcl"
 LANGS=" cs de es fr hu it ja pl pt pt_BR ru tr"
-IUSE="doc nls +ssl test ${LANGS// / linguas_} ${SCRIPT_LANGS} ${PLUGINS} 
${INTERFACES} ${NETWORKS}"
+IUSE="doc nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
@@ -77,7 +77,7 @@ src_prepare() {
        # install only required translations
        local i
        for i in ${LANGS} ; do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e "/${i}.po/d" \
                                po/CMakeLists.txt || die
@@ -87,7 +87,7 @@ src_prepare() {
        # install only required documentation ; en always
        for i in $(grep add_subdirectory doc/CMakeLists.txt \
                        | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e 
'/en/d'); do
-               if ! use linguas_${i} ; then
+               if ! has ${i} ${LINGUAS-${i}} ; then
                        sed -i \
                                -e '/add_subdirectory('${i}')/d' \
                                doc/CMakeLists.txt || die

Reply via email to