summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-01-08 09:42:09 +0100
committerUlrich Müller <ulm@gentoo.org>2018-01-08 09:45:24 +0100
commit7914bb2e24db18f94e9d1848a865891f577b326d (patch)
tree507eadca41bf56d0e9ae6ea52f24fb3a7b7f2e5f /sys-boot
parentprofiles: add "nan" and "ur" to l10n.desc for sys-boot/unetbootin. (diff)
downloadgentoo-7914bb2e24db18f94e9d1848a865891f577b326d.tar.gz
gentoo-7914bb2e24db18f94e9d1848a865891f577b326d.tar.bz2
gentoo-7914bb2e24db18f94e9d1848a865891f577b326d.zip
sys-boot/unetbootin: Migrate from LINGUAS to L10N.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/unetbootin/unetbootin-625.ebuild8
-rw-r--r--sys-boot/unetbootin/unetbootin-647.ebuild8
-rw-r--r--sys-boot/unetbootin/unetbootin-655.ebuild8
-rw-r--r--sys-boot/unetbootin/unetbootin-657.ebuild8
4 files changed, 24 insertions, 8 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
diff --git a/sys-boot/unetbootin/unetbootin-647.ebuild b/sys-boot/unetbootin/unetbootin-647.ebuild
index 0371e75f2c8a..a8e28b868c27 100644
--- a/sys-boot/unetbootin/unetbootin-647.ebuild
+++ b/sys-boot/unetbootin/unetbootin-647.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"
@@ -47,7 +51,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
@@ -77,7 +81,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
diff --git a/sys-boot/unetbootin/unetbootin-655.ebuild b/sys-boot/unetbootin/unetbootin-655.ebuild
index 1007cc620a17..f615c0100f45 100644
--- a/sys-boot/unetbootin/unetbootin-655.ebuild
+++ b/sys-boot/unetbootin/unetbootin-655.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"
@@ -46,7 +50,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
@@ -76,7 +80,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
diff --git a/sys-boot/unetbootin/unetbootin-657.ebuild b/sys-boot/unetbootin/unetbootin-657.ebuild
index 1007cc620a17..f615c0100f45 100644
--- a/sys-boot/unetbootin/unetbootin-657.ebuild
+++ b/sys-boot/unetbootin/unetbootin-657.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"
@@ -46,7 +50,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
@@ -76,7 +80,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