summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/unetbootin/unetbootin-655.ebuild')
-rw-r--r--sys-boot/unetbootin/unetbootin-655.ebuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys-boot/unetbootin/unetbootin-655.ebuild b/sys-boot/unetbootin/unetbootin-655.ebuild
index 453496db667..1007cc620a1 100644
--- a/sys-boot/unetbootin/unetbootin-655.ebuild
+++ b/sys-boot/unetbootin/unetbootin-655.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
@@ -19,10 +19,6 @@ UNBI_LINGUAS="
zh_CN zh_TW
"
-for lingua in ${UNBI_LINGUAS}; do
- IUSE="${IUSE} linguas_${lingua}"
-done
-
S=${WORKDIR}/${P}/src/${PN}
DEPEND="dev-qt/qtgui:4"
@@ -50,7 +46,7 @@ src_prepare() {
# Remove localisations
local lingua
for lingua in ${UNBI_LINGUAS}; do
- if ! use linguas_${lingua}; then
+ if ! has ${lingua} ${LINGUAS-${lingua}}; then
sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
rm ${PN}_${lingua}.ts || die
fi
@@ -80,7 +76,7 @@ src_install() {
local lingua
for lingua in ${UNBI_LINGUAS}; do
- if use linguas_${lingua}; then
+ if has ${lingua} ${LINGUAS-${lingua}}; then
insinto /usr/share/${PN}
doins ${PN}_${lingua}.qm
fi