summaryrefslogtreecommitdiff
path: root/dev-lang/rakudo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-30 09:41:01 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-10-30 09:41:01 +0000
commit310615add7b4be144ba0a7d7a156fe2c7949116d (patch)
tree17b4ae4b556105d8db614b4a529b1fc8cb61affb /dev-lang/rakudo
parente6a2fd03865862c81d79bd32249728f20ce99354 (diff)
gentoo auto-resync : 30:10:2023 - 09:41:01
Diffstat (limited to 'dev-lang/rakudo')
-rw-r--r--dev-lang/rakudo/Manifest2
-rw-r--r--dev-lang/rakudo/rakudo-2023.10.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest
index da69af397049..4f5a1095b049 100644
--- a/dev-lang/rakudo/Manifest
+++ b/dev-lang/rakudo/Manifest
@@ -1,3 +1,5 @@
DIST rakudo-2023.02.tar.gz 6692654 BLAKE2B 9a63e92d278235aac75fd15e2de90d2de55af2d92a650b8f0ccf61e12b41942ec47b8ecaf1f4e7bd9c55d98d09667f3ea916a79d9b3161fede264e47a3eecadc SHA512 bb631cb23e981d7bb269888d8302f95b5356a443abb93dc0ae8ca9a0e03b3da9b3ff0c03dabda405107498a36f589333001b81ebd971a0dc225f03406438f74e
+DIST rakudo-2023.10.tar.gz 6883145 BLAKE2B 158967b4af119854bc7c1fd9b95a2320727b3f2b4586ebbe30bc3ebc1c49ed412b2abcad24b30aeb54739d2944a13b9f905eadc34304b9aba024a95b2bf843ee SHA512 14368dda40c3d7340d158834b2bb3b6bf4086a3c08e7f58318e1bb47282c3f5d19ef6aaf75aa66f5b10b603b17f62e295c24f04b6d8ced80b4f9e8c593e32711
EBUILD rakudo-2023.02.ebuild 1598 BLAKE2B d6fa28c5a822e27dfd8e1c9194b54d533d522490e1d0f64e5f20c7e1996fa24f0b1c1a2bb3beda3a695d5b88aec5f4079bfd2dfa9b591a70dee50037c44d02bc SHA512 f68a082deaf7262a914b01ae252f722bfd3c1f4acffba31306faa333923a48cd66c31403d88ad2aa18ce29f822c275a667359c8934f53f53d20fe6c9b9d7c5af
+EBUILD rakudo-2023.10.ebuild 1598 BLAKE2B d6fa28c5a822e27dfd8e1c9194b54d533d522490e1d0f64e5f20c7e1996fa24f0b1c1a2bb3beda3a695d5b88aec5f4079bfd2dfa9b591a70dee50037c44d02bc SHA512 f68a082deaf7262a914b01ae252f722bfd3c1f4acffba31306faa333923a48cd66c31403d88ad2aa18ce29f822c275a667359c8934f53f53d20fe6c9b9d7c5af
MISC metadata.xml 396 BLAKE2B 43b55c331967d55e0a5c8d2dad7399c20b4104494cf3310b5a95dbef537d07908135c7f9c7829c737f64466660056de8c5656637b54079fef0f90ea4cfef5f1e SHA512 163828a65041f6d74931e32b6edf8c58ddb59151f8c68519165e81003886ce67ff4bcd21e69dc8a1fb96e4b8189fb611dcf8b9d73a52b257ccc24de516185fae
diff --git a/dev-lang/rakudo/rakudo-2023.10.ebuild b/dev-lang/rakudo/rakudo-2023.10.ebuild
new file mode 100644
index 000000000000..a8a18519d240
--- /dev/null
+++ b/dev-lang/rakudo/rakudo-2023.10.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 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
+}