public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Keri Harris" <keri@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/cxprolog/
Date: Sun, 14 Aug 2022 15:11:24 +0000 (UTC)	[thread overview]
Message-ID: <1660489455.58d57494d68c409a3844cbbfd091304bc5efda43.keri@gentoo> (raw)

commit:     58d57494d68c409a3844cbbfd091304bc5efda43
Author:     Keri Harris <keri <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 14 15:04:15 2022 +0000
Commit:     Keri Harris <keri <AT> gentoo <DOT> org>
CommitDate: Sun Aug 14 15:04:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58d57494

dev-lang/cxprolog: support building with JDK 11

Closes: https://bugs.gentoo.org/855206
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Keri Harris <keri <AT> gentoo.org>

 dev-lang/cxprolog/cxprolog-0.98.2.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
index 3c949317f178..aea94ab537f6 100644
--- a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
+++ b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
@@ -14,7 +14,7 @@ SRC_URI="http://ctp.di.fct.unl.pt/~amd/cxprolog/cxunix/${P}.src.tgz"
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="~amd64 ~x86"
 IUSE="examples java +readline test wxwidgets"
 RESTRICT="!test? ( test )"
 
@@ -59,7 +59,10 @@ src_compile() {
 		local java_arch
 		use x86 && java_arch=i386
 		use amd64 && java_arch=amd64
-		CX_JVM="${JAVA_HOME}/jre/lib/${java_arch}/server"
+		local CX_JVM
+		for i in jre/lib/${java_arch}/server lib/server; do
+			[[ -f ${JAVA_HOME}/${i}/libjvm.so ]] && CX_JVM=${JAVA_HOME}/${i}
+		done
 		CX_EXT_DEFINES="$CX_EXT_DEFINES -DUSE_JAVA"
 		CX_EXT_CFLAGS="$CX_EXT_CFLAGS $(java-pkg_get-jni-cflags)"
 		CX_EXT_LDFLAGS="$CX_EXT_LDFLAGS -Wl,-rpath,${CX_JVM}"


             reply	other threads:[~2022-08-14 15:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-14 15:11 Keri Harris [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-01  9:56 [gentoo-commits] repo/gentoo:master commit in: dev-lang/cxprolog/ Miroslav Šulc
2024-08-27  7:45 Miroslav Šulc
2024-06-19  8:34 Miroslav Šulc
2024-06-19  8:12 Miroslav Šulc
2024-05-05  7:25 Miroslav Šulc
2024-04-18 16:48 Pacho Ramos
2022-05-21 15:05 Keri Harris
2022-03-20 18:43 Sam James
2021-05-15 17:30 Keri Harris
2020-09-21 18:55 Keri Harris
2020-07-19 16:42 Keri Harris
2020-07-19 13:51 Keri Harris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1660489455.58d57494d68c409a3844cbbfd091304bc5efda43.keri@gentoo \
    --to=keri@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox