summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-25 21:27:32 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-25 21:31:56 +0200
commitaf98ad389412ccda71e14c1cfd7d444c789d4137 (patch)
treee5d5f15c1933b742ac0a0f950de9627163c05663 /dev-java
parentapp-text/ghostscript-gpl: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-af98ad389412ccda71e14c1cfd7d444c789d4137.tar.gz
gentoo-af98ad389412ccda71e14c1cfd7d444c789d4137.tar.bz2
gentoo-af98ad389412ccda71e14c1cfd7d444c789d4137.zip
dev-java/zemberek: Migrate from LINGUAS to L10N.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/zemberek/zemberek-2.1.1.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/dev-java/zemberek/zemberek-2.1.1.ebuild b/dev-java/zemberek/zemberek-2.1.1.ebuild
index bc8b98dbdd15..3ffa2e165a06 100644
--- a/dev-java/zemberek/zemberek-2.1.1.ebuild
+++ b/dev-java/zemberek/zemberek-2.1.1.ebuild
@@ -18,7 +18,7 @@ LANGS="tr tk"
S=${WORKDIR}/${P}-nolibs-src
-IUSE="linguas_tk +linguas_tr"
+IUSE="l10n_tk +l10n_tr"
RDEPEND=">=virtual/jre-1.5"
@@ -41,18 +41,22 @@ java_prepare() {
}
src_compile() {
- strip-linguas ${LANGS}
- local anttargs
- for jar in cekirdek demo ${LINGUAS}; do
+ local anttargs langs="" jar
+ for jar in ${LANGS}; do
+ use l10n_${jar} && langs+=" ${jar}"
+ done
+ for jar in cekirdek demo ${langs}; do
anttargs="${anttargs} jar-${jar}"
done
eant ${anttargs} $(use_doc javadocs)
}
src_install() {
- strip-linguas ${LANGS}
- local sourcetrees=""
- for jar in cekirdek demo ${LINGUAS}; do
+ local sourcetrees="" langs="" jar
+ for jar in ${LANGS}; do
+ use l10n_${jar} && langs+=" ${jar}"
+ done
+ for jar in cekirdek demo ${langs}; do
java-pkg_newjar dagitim/jar/zemberek-${jar}-${PV}.jar zemberek2-${jar}.jar
sourcetrees="${sourcetrees} src/${jar}/net"
done