summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-06-29 13:27:00 -0400
committerMike Gilbert <floppym@gentoo.org>2022-06-29 15:44:37 -0400
commitc6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7 (patch)
treee11b4892edd7fb9e793453dbde90a0e3c4a47a93 /sys-devel
parentsys-devel/gettext: pass JAVACFLAGS in JAVAC variable (diff)
downloadgentoo-c6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7.tar.gz
gentoo-c6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7.tar.bz2
gentoo-c6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7.zip
sys-devel/gettext: ensure libintl.jar gets build with desired target
Closes: https://bugs.gentoo.org/770508 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gettext/gettext-0.21-r1.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-devel/gettext/gettext-0.21-r1.ebuild b/sys-devel/gettext/gettext-0.21-r1.ebuild
index d8788c77d071..c7ecd0ac88ae 100644
--- a/sys-devel/gettext/gettext-0.21-r1.ebuild
+++ b/sys-devel/gettext/gettext-0.21-r1.ebuild
@@ -76,10 +76,13 @@ pkg_setup() {
src_prepare() {
java-pkg-opt-2_src_prepare
-
default
-
elibtoolize
+ if use java; then
+ # Update the target version for libintl
+ sed -i -e "s/target_version=1.6/target_version=$(java-pkg_get-target)/" \
+ gettext-runtime/configure || die
+ fi
}
multilib_src_configure() {