summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2024-11-01 13:03:50 +0000
committerPatrick Lauer <patrick@gentoo.org>2024-11-01 13:04:52 +0000
commitcee8d99f602c6ee01f2d09f676a790da837d58be (patch)
tree33d3e17cc0ad151b62497c779f6f932712358621 /dev-lang
parentdev-lang/nqp: add 2024.10 (diff)
downloadgentoo-cee8d99f602c6ee01f2d09f676a790da837d58be.tar.gz
gentoo-cee8d99f602c6ee01f2d09f676a790da837d58be.tar.bz2
gentoo-cee8d99f602c6ee01f2d09f676a790da837d58be.zip
dev-lang/rakudo: add 2024.10
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rakudo/Manifest1
-rw-r--r--dev-lang/rakudo/rakudo-2024.10.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest
index 1671d1ad2f1c..c3d111b88d1b 100644
--- a/dev-lang/rakudo/Manifest
+++ b/dev-lang/rakudo/Manifest
@@ -1,3 +1,4 @@
DIST rakudo-2024.04.tar.gz 6908669 BLAKE2B 681a13e0fcefd8a0187f99a4bd92f72833a74870933497f6cb8de0b2ab3ddf07ee4c492760c53cd623f6d7afd3593194748882400ea94e703363c58fc4ea3d2c SHA512 98b4dd35456df1774a320dbd53ffecc72323d91c260ce1264b2056624e8cdf8a47cfcd89b775411f8bf3fb1f1b4725e2b75c7724c5891a4d366e5ba3f2a11cd4
DIST rakudo-2024.05.tar.gz 6923643 BLAKE2B 9ec3796a2638489dea1bea510e1fdb6b1877011944dd50e2a8211f5b2d564ae7767dac3dc6510ce281c0df840aea3c1888b1d13cac461ecf3c5b031e6d6d27da SHA512 12b0c61c3c13fbb80bc281c4fa2c9e2ecc2b9f24b11501ff05fe82f3208c8b2adec94f2181ca0926f40da4f27d611aa2420304c837d03a9f597925b78f837b82
DIST rakudo-2024.08.tar.gz 6956638 BLAKE2B e3d063589be0a39557f0cd3cfeceb3cb97a88db7906a64f5ba37dc6099faaff7f451fff34a9abac1b8c64fe2959eddfa62218423f7684c71b4d3ce7c3286d947 SHA512 302b232b469e7ea5a38afec900746876a01bf6efc9ca8957e2f6a9328dccad81ec988feb2d0bf2a50ecd4c654624a819d0721a6da4a02653054558f1533bf308
+DIST rakudo-2024.10.tar.gz 6977275 BLAKE2B 26f77510f1d653d5dd8f65dec62642898faa73ea2b7105b13c984a76a50db5c42d659f5466f2626ce74378180cac34cd7529fdb8b01d839785e9e8305cf1fb32 SHA512 01270b164d82d27729b15ce5386b82a243607599d5959703a24faf95976b5d2574146ecdfdb1515b2d631564135e2fb4949ae0893839c9b16564f024ecfd93cb
diff --git a/dev-lang/rakudo/rakudo-2024.10.ebuild b/dev-lang/rakudo/rakudo-2024.10.ebuild
new file mode 100644
index 000000000000..2af8fe10b2b6
--- /dev/null
+++ b/dev-lang/rakudo/rakudo-2024.10.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit java-pkg-opt-2
+
+DESCRIPTION="A compiler for the Raku programming language"
+HOMEPAGE="https://rakudo.org"
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://rakudo.org/dl/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Artistic-2"
+SLOT="0"
+# TODO: add USE="javascript" once that's usable in nqp
+IUSE="clang java +moar test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="|| ( java moar )"
+
+CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
+RDEPEND="${CDEPEND}
+ java? ( >=virtual/jre-1.9 )"
+DEPEND="${CDEPEND}
+ clang? ( sys-devel/clang )
+ java? ( >=virtual/jdk-1.9 )
+ >=dev-lang/perl-5.10"
+
+pkg_pretend() {
+ if has_version dev-lang/rakudo; then
+ ewarn "Rakudo is known to fail compilation/installation with Rakudo"
+ ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
+ ewarn "then do a new installation."
+ ewarn "(see Bug #584394)"
+ fi
+}
+
+src_configure() {
+ local backends
+ use moar && backends+="moar,"
+ use java && backends+="jvm"
+
+ local myargs=(
+ "--prefix=/usr"
+ "--sysroot=/"
+ "--sdkroot=/"
+ "--backends=${backends}"
+ )
+
+ perl Configure.pl "${myargs[@]}" || die
+
+ if use java; then
+ NQP=$(java-pkg_getjars --with-dependencies nqp)
+ fi
+}
+
+src_compile() {
+ emake NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
+}
+
+src_test() {
+ RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
+}