diff options
author | Patrick Lauer <patrick@gentoo.org> | 2024-03-16 12:59:33 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2024-03-16 13:02:25 +0000 |
commit | cd7fcb1204f708bc0864a718d5b2e55b9e0e8d2f (patch) | |
tree | 745267489d650b6768f2c23dbba3b297019481ef /dev-lang/rakudo | |
parent | dev-lang/nqp: add 2024.02 (diff) | |
download | gentoo-cd7fcb1204f708bc0864a718d5b2e55b9e0e8d2f.tar.gz gentoo-cd7fcb1204f708bc0864a718d5b2e55b9e0e8d2f.tar.bz2 gentoo-cd7fcb1204f708bc0864a718d5b2e55b9e0e8d2f.zip |
dev-lang/rakudo: add 2024.02
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'dev-lang/rakudo')
-rw-r--r-- | dev-lang/rakudo/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/rakudo/rakudo-2024.02.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest index 688a2e6072f7..8a2f59c7158b 100644 --- a/dev-lang/rakudo/Manifest +++ b/dev-lang/rakudo/Manifest @@ -1,3 +1,4 @@ DIST rakudo-2023.02.tar.gz 6692654 BLAKE2B 9a63e92d278235aac75fd15e2de90d2de55af2d92a650b8f0ccf61e12b41942ec47b8ecaf1f4e7bd9c55d98d09667f3ea916a79d9b3161fede264e47a3eecadc SHA512 bb631cb23e981d7bb269888d8302f95b5356a443abb93dc0ae8ca9a0e03b3da9b3ff0c03dabda405107498a36f589333001b81ebd971a0dc225f03406438f74e DIST rakudo-2023.10.tar.gz 6883145 BLAKE2B 158967b4af119854bc7c1fd9b95a2320727b3f2b4586ebbe30bc3ebc1c49ed412b2abcad24b30aeb54739d2944a13b9f905eadc34304b9aba024a95b2bf843ee SHA512 14368dda40c3d7340d158834b2bb3b6bf4086a3c08e7f58318e1bb47282c3f5d19ef6aaf75aa66f5b10b603b17f62e295c24f04b6d8ced80b4f9e8c593e32711 DIST rakudo-2023.12.tar.gz 6865345 BLAKE2B 0c2404b25d5316de7ef2bf332411898fc12f154c815434ae2f8202951eba8dfbe23c278bbbaf082dcb5e4782aa0348bec10cad97ffbe2b8d55e64a987d5fe69c SHA512 fa78ea3f5eea9947eae7ab3c130956acade849fbde1b926fefdb34f0a2a74cd0a4a8b62a088a41cf207ef80d06b2e5d42048a1a2071d10d68c3e388c57d5e78e +DIST rakudo-2024.02.tar.gz 6879828 BLAKE2B aa361c9e21c34cc5c737390ab6b1b8828afaa6aafaa604dbde273d68084cd0cebaf9c8bd796a394844f05b7bafc4f5d2db8a80a7bc1be8baab52b7a7f858bfa2 SHA512 b9bfdcbaf7daa80e6dfe1fb96e68482d2b110cca03067ef4e3e12270897ef0d53710d90fda97254c4cc012b3cdc4ec0c5d4a25facc5a0224a7579b96f9cd7aa3 diff --git a/dev-lang/rakudo/rakudo-2024.02.ebuild b/dev-lang/rakudo/rakudo-2024.02.ebuild new file mode 100644 index 000000000000..2af8fe10b2b6 --- /dev/null +++ b/dev-lang/rakudo/rakudo-2024.02.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 +} |