From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52D90158030 for ; Mon, 27 Feb 2023 16:43:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FC6FE07C5; Mon, 27 Feb 2023 16:43:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8BCCE07C5 for ; Mon, 27 Feb 2023 16:43:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D26D9340DE2 for ; Mon, 27 Feb 2023 16:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5BF918C1 for ; Mon, 27 Feb 2023 16:43:49 +0000 (UTC) From: "罗百科" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" Message-ID: <1677516226.e9343f30341e4f8de05ac6ab7862dadb974005d5.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rakudo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rakudo/Manifest dev-lang/rakudo/rakudo-2023.02.ebuild X-VCS-Directories: dev-lang/rakudo/ X-VCS-Committer: patrick X-VCS-Committer-Name: 罗百科 X-VCS-Revision: e9343f30341e4f8de05ac6ab7862dadb974005d5 X-VCS-Branch: master Date: Mon, 27 Feb 2023 16:43:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 147cda6d-289c-494a-ba1c-cb775e7cbe30 X-Archives-Hash: e11b2b14f62ffd831caf576ad64ee446 commit: e9343f30341e4f8de05ac6ab7862dadb974005d5 Author: Patrick Lauer gentoo org> AuthorDate: Mon Feb 27 16:33:50 2023 +0000 Commit: 罗百科 gentoo org> CommitDate: Mon Feb 27 16:43:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9343f30 dev-lang/rakudo: add 2023.02 Signed-off-by: Patrick Lauer gentoo.org> dev-lang/rakudo/Manifest | 1 + dev-lang/rakudo/rakudo-2023.02.ebuild | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest index fe0df5862b9b..05a33b800702 100644 --- a/dev-lang/rakudo/Manifest +++ b/dev-lang/rakudo/Manifest @@ -3,3 +3,4 @@ DIST rakudo-2021.08.tar.gz 5906537 BLAKE2B 73a70ac0524ef41355e835173bccca743db5a DIST rakudo-2021.10.tar.gz 6093348 BLAKE2B b2a49c7ee5561cabaae20a573d93b2510b117697ac7c56819a776a890e12a50f8efd726329d69d1f1cbe194114a715db6253d7ce47b5ca9f817254b7eb517ba8 SHA512 6792d77f566c77f23371b2445b67f72ba3c74da9f3b3fa75bbb7db3c1f59f1aa4b8d964af4889caa82b19404304cf4d27ecd562e86b8fc0194f202ba5d7aceff DIST rakudo-2022.02.tar.gz 6140289 BLAKE2B 213f2b0384bbf5d92c19ac78cc13cdb9a0a886c926a2cad27827c993e4fcf1dc88ac0390ca351f063db65c7b56e44ea2b79f5330b22fe23692c03a7d690bf77b SHA512 b02cab995700d82e3c100e24d8d4b1497030def568ad674085f3231750c69d42d8847c3a85cdfcbbaadb9c42fd0c44b36774abee4db131851e229ed076710588 DIST rakudo-2022.06.tar.gz 6011585 BLAKE2B b1d7b46082b790e42e6c0491c1df7e3edc9b477105aeefee6e942226a69bc1ae7868227d03295fe33436419049e6dd1db7ffb5be005fa69e2e23b8df6a41a34d SHA512 e6dec83de464f87180057324bbbef5ac6487a70c101b6f5bc97a28dfe5c4fc782d39af376b08147d64b6336c4e239ebaf5a610cf49f36773fdb53960ebf7ef30 +DIST rakudo-2023.02.tar.gz 6692654 BLAKE2B 9a63e92d278235aac75fd15e2de90d2de55af2d92a650b8f0ccf61e12b41942ec47b8ecaf1f4e7bd9c55d98d09667f3ea916a79d9b3161fede264e47a3eecadc SHA512 bb631cb23e981d7bb269888d8302f95b5356a443abb93dc0ae8ca9a0e03b3da9b3ff0c03dabda405107498a36f589333001b81ebd971a0dc225f03406438f74e diff --git a/dev-lang/rakudo/rakudo-2023.02.ebuild b/dev-lang/rakudo/rakudo-2023.02.ebuild new file mode 100644 index 000000000000..29f2fa9e98a9 --- /dev/null +++ b/dev-lang/rakudo/rakudo-2023.02.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 +}