summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/unetbootin/unetbootin-625.ebuild')
-rw-r--r--sys-boot/unetbootin/unetbootin-625.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-boot/unetbootin/unetbootin-625.ebuild b/sys-boot/unetbootin/unetbootin-625.ebuild
index aabc1aa868d7..49f0d802f768 100644
--- a/sys-boot/unetbootin/unetbootin-625.ebuild
+++ b/sys-boot/unetbootin/unetbootin-625.ebuild
@@ -19,6 +19,10 @@ UNBI_LINGUAS="
zh_CN zh_TW
"
+for lingua in ${UNBI_LINGUAS}; do
+ IUSE="${IUSE} l10n_${lingua/_/-}"
+done
+
S=${WORKDIR}/${P}/src/${PN}
DEPEND="dev-qt/qtgui:4"
@@ -48,7 +52,7 @@ src_prepare() {
# Remove localisations
local lingua
for lingua in ${UNBI_LINGUAS}; do
- if ! has ${lingua} ${LINGUAS-${lingua}}; then
+ if ! use l10n_${lingua/_/-}; then
sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
rm ${PN}_${lingua}.ts || die
fi
@@ -78,7 +82,7 @@ src_install() {
local lingua
for lingua in ${UNBI_LINGUAS}; do
- if has ${lingua} ${LINGUAS-${lingua}}; then
+ if use l10n_${lingua/_/-}; then
insinto /usr/share/${PN}
doins ${PN}_${lingua}.qm
fi