diff options
Diffstat (limited to 'net-analyzer/nmap/nmap-7.60.ebuild')
-rw-r--r-- | net-analyzer/nmap/nmap-7.60.ebuild | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net-analyzer/nmap/nmap-7.60.ebuild b/net-analyzer/nmap/nmap-7.60.ebuild index e925ad725d85..d6bd64a6b69e 100644 --- a/net-analyzer/nmap/nmap-7.60.ebuild +++ b/net-analyzer/nmap/nmap-7.60.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,6 @@ IUSE=" zenmap " NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh ) -IUSE+=" ${NMAP_LINGUAS[@]/#/linguas_}" REQUIRED_USE=" system-lua? ( nse ) @@ -88,10 +87,10 @@ src_prepare() { default + local lingua if use nls; then - local lingua='' for lingua in ${NMAP_LINGUAS[@]}; do - if ! use linguas_${lingua}; then + if ! has ${linguas} ${LINGUAS-${lingua}}; then rm -r zenmap/share/zenmap/locale/${lingua} || die rm zenmap/share/zenmap/locale/${lingua}.po || die fi |