diff options
Diffstat (limited to 'net-dns/dnsmasq/dnsmasq-2.77.ebuild')
-rw-r--r-- | net-dns/dnsmasq/dnsmasq-2.77.ebuild | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net-dns/dnsmasq/dnsmasq-2.77.ebuild b/net-dns/dnsmasq/dnsmasq-2.77.ebuild index 3b26668c2df5..3c45c1db5b18 100644 --- a/net-dns/dnsmasq/dnsmasq-2.77.ebuild +++ b/net-dns/dnsmasq/dnsmasq-2.77.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 @@ -18,10 +18,6 @@ IUSE+=" ipv6 lua nls script selinux static tftp" DM_LINGUAS=(de es fi fr id it no pl pt_BR ro) -for dm_lingua in "${DM_LINGUAS[@]}"; do - IUSE+=" linguas_${dm_lingua}" -done - CDEPEND="dbus? ( sys-apps/dbus ) idn? ( net-dns/libidn ) libidn2? ( >=net-dns/libidn2-2.0 ) @@ -145,7 +141,8 @@ src_install() { install$(use nls && echo "-i18n") for lingua in "${DM_LINGUAS[@]}"; do - use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua} + has ${lingua} ${LINGUAS-${lingua}} \ + || rm -rf "${D}"/usr/share/locale/${lingua} done [[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/ |