public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "M. B." <tomboy64@sina.cn>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/user/tbc:master commit in: dev-lang/nqp/, dev-lang/rakudo/
Date: Wed, 25 May 2016 20:45:18 +0000 (UTC)	[thread overview]
Message-ID: <1464209040.b8c56dd73e1bf494ac469491b07c525e00bc4d3c.tomboy64@gentoo> (raw)

commit:     b8c56dd73e1bf494ac469491b07c525e00bc4d3c
Author:     Matthew Brewer <tomboy64 <AT> sina <DOT> cn>
AuthorDate: Wed May 25 20:44:00 2016 +0000
Commit:     M. B. <tomboy64 <AT> sina <DOT> cn>
CommitDate: Wed May 25 20:44:00 2016 +0000
URL:        https://gitweb.gentoo.org/repo/user/tbc.git/commit/?id=b8c56dd7

rework java support within nqp and moarvm (thanks chewi!)

 dev-lang/nqp/Manifest                    |  1 +
 dev-lang/nqp/nqp-2016.04-r4.ebuild       | 29 ++++++++++++++++++++++++-----
 dev-lang/rakudo/Manifest                 |  1 +
 dev-lang/rakudo/rakudo-2016.04-r3.ebuild |  2 +-
 4 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/dev-lang/nqp/Manifest b/dev-lang/nqp/Manifest
new file mode 100644
index 0000000..19088f1
--- /dev/null
+++ b/dev-lang/nqp/Manifest
@@ -0,0 +1 @@
+DIST nqp-2016.04.tar.gz 5156494 SHA256 9176422eb2a99db24ab520bc78686f3a2c008ba73bf8c7091a790985f5061019 SHA512 5dcb685a90b26fee3e8dac3ca24da11bd967d034b5328232d18d9db37e27645b57259cabf54ef8e10b3ac508b1aa784072f0a9542d30168d3017f86e610c3cee WHIRLPOOL 0711e1471740b0ed181f9e4504f810a084056e74650c0ffb1c6c17e2976b2c1facb6a7e73df5d991d9ffe43f055fe844f0756dbd816375708b4d499a0f7a9162

diff --git a/dev-lang/nqp/nqp-2016.04-r4.ebuild b/dev-lang/nqp/nqp-2016.04-r4.ebuild
index 6d3e38e..9495089 100644
--- a/dev-lang/nqp/nqp-2016.04-r4.ebuild
+++ b/dev-lang/nqp/nqp-2016.04-r4.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == "9999" ]]; then
 else
 	SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
 	inherit vcs-snapshot
-	KEYWORDS=""
+	KEYWORDS="~amd64 ~x86"
 fi
 
 DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
@@ -32,14 +32,16 @@ CDEPEND="java? (
 	moar? ( ~dev-lang/moarvm-${PV}[clang=] )
 	dev-libs/libffi"
 RDEPEND="${CDEPEND}
-	java? ( >=virtual/jre-1.7:* )"
+	java? ( >=virtual/jre-1.7 )"
 DEPEND="${CDEPEND}
 	clang? ( sys-devel/clang )
-	java? ( >=virtual/jdk-1.7:* )
+	java? ( >=virtual/jdk-1.7 )
 	dev-lang/perl"
+PATCHES=( "${FILESDIR}/enable-external-jars.patch" )
 
 java_prepare() {
 	# Don't clean stage0 jars.
+	einfo "Cleaning upstream jars"
 	java-pkg_clean 3rdparty/
 
 	# Don't use jars we just deleted.
@@ -47,6 +49,15 @@ java_prepare() {
 		src/vm/jvm/runners/nqp-j || die
 }
 
+src_unpack() {
+	if [[ ${PV} == 9999 ]]; then
+		git-r3_src_unpack
+	else
+		unpack ${A}
+		mv "${WORKDIR}/perl6-nqp-"* "${WORKDIR}/${P}" || die
+	fi
+}
+
 src_configure() {
 	local backends
 	use java && backends+="jvm,"
@@ -79,6 +90,16 @@ src_test() {
 }
 
 src_install() {
+	if use moar; then
+		if use java; then
+			# We need to re-run Configure.pl with only the MoarVM backend,
+			# so we don't overwrite our custom java install.
+			# This has to happen before the installation of nqp's MoarVM bits.
+			# Also, those bits have to get installed before the JVM bits.
+			perl Configure.pl --backend=moar --prefix=/usr || die
+		fi
+		emake DESTDIR="${ED}" install
+	fi
 	if use java; then
 		# Set JAVA_PKG_JARDEST early.
 		java-pkg_init_paths_
@@ -105,8 +126,6 @@ src_install() {
 		java-pkg_dolauncher ${PN}-j --main ${PN}
 		dosym ${PN}-j /usr/bin/${PN}
 		dobin tools/jvm/eval-client.pl
-	else
-		emake DESTDIR="${ED}" install
 	fi
 
 	dodoc CREDITS README.pod

diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest
new file mode 100644
index 0000000..34951ea
--- /dev/null
+++ b/dev-lang/rakudo/Manifest
@@ -0,0 +1 @@
+DIST rakudo-2016.04.tar.gz 2706659 SHA256 207d723c9b2d524daf6008a3ed026ea06773d937e76e0fe79b89bfb7dcd0d92b SHA512 08e718643cfa89edbb8995ab9f350f69053e41cff97b33530dd2eb202d2ab2116d219ef1385717b48f5883665c73a181b1b054c1300db302fba31c6081e97532 WHIRLPOOL d49791b696114f57b685221be5cfe1873a88507810819b2a9aace07da2c2d7535eeaecc6c830df3265ecd1ff352effa509cbb3f24cba7e8afc0dc1468553cce6

diff --git a/dev-lang/rakudo/rakudo-2016.04-r3.ebuild b/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
index 5b8088c..7421cad 100644
--- a/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
+++ b/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
@@ -15,7 +15,7 @@ if [[ ${PV} == "9999" ]]; then
 	KEYWORDS=""
 else
 	SRC_URI="${HOMEPAGE}/downloads/${PN}/${P}.tar.gz"
-	KEYWORDS=""
+	KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="Artistic-2"


             reply	other threads:[~2016-05-25 20:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 20:45 M. B. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-28 12:29 [gentoo-commits] repo/user/tbc:master commit in: dev-lang/nqp/, dev-lang/rakudo/ M. B.
2016-05-28 12:04 M. B.
2016-05-28 11:30 M. B.
2016-05-27  4:11 M. B.
2016-05-26 15:44 M. B.
2016-05-26 15:44 M. B.
2016-05-25 16:17 M. B.

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=1464209040.b8c56dd73e1bf494ac469491b07c525e00bc4d3c.tomboy64@gentoo \
    --to=tomboy64@sina.cn \
    --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