summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2023-10-30 06:56:05 +0000
committerPatrick Lauer <patrick@gentoo.org>2023-10-30 06:57:23 +0000
commit6850084c0163e979d04a0f87e02d221a4f2331b3 (patch)
tree4886c0c260e45f31409b0ac7ccf4698954f1b25c /dev-lang
parentdev-util/aruba: add 2.2.0 (diff)
downloadgentoo-6850084c0163e979d04a0f87e02d221a4f2331b3.tar.gz
gentoo-6850084c0163e979d04a0f87e02d221a4f2331b3.tar.bz2
gentoo-6850084c0163e979d04a0f87e02d221a4f2331b3.zip
dev-lang/moarvm: add 2023.10
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/moarvm/Manifest1
-rw-r--r--dev-lang/moarvm/moarvm-2023.10.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-lang/moarvm/Manifest b/dev-lang/moarvm/Manifest
index fa475e22b192..fa92b9cedd35 100644
--- a/dev-lang/moarvm/Manifest
+++ b/dev-lang/moarvm/Manifest
@@ -1 +1,2 @@
DIST MoarVM-2023.02.tar.gz 14917710 BLAKE2B 57ea0a3871f51f2cf2bf7f7d9d70f4d00052cf3ab255916fc73eb33fabd0e96e44155582e73158cf98042705817b5541f3fea0d557b09e38ad6e45cad14f172f SHA512 a3dd172a84aba72df4bb9228f50eea3c4d74d4db285b06f19dc4502523f3de09580ad8a5525cf181038928263e47f72b0187a5d57dba019f18b9783ba4247203
+DIST MoarVM-2023.10.tar.gz 14932372 BLAKE2B 2c6a12129d85d0deb85ea328c4cfbdf0f9df40cf2eba7e1ae96a453af9fdc71785d867ee6575eaebf0dabb9f56a856ce88073d01a6af3c0864a3d8cfd43c408b SHA512 1dbe4e0d29f665d95b96d7acd0954cf27c76872c78b66c7ec30e03789bfef0c36b658677be51be25cd5476c5ff278e15c0c610f8baa00a340b1c1725d0c2a5c3
diff --git a/dev-lang/moarvm/moarvm-2023.10.ebuild b/dev-lang/moarvm/moarvm-2023.10.ebuild
new file mode 100644
index 000000000000..f65ccaa21226
--- /dev/null
+++ b/dev-lang/moarvm/moarvm-2023.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="MoarVM"
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
+ inherit git-r3
+ S="${WORKDIR}/${P}"
+else
+ SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="A 6model-based VM for NQP and Raku"
+HOMEPAGE="http://moarvm.org"
+LICENSE="Artistic-2"
+SLOT="0"
+
+IUSE="asan clang debug doc +jit optimize static-libs ubsan"
+
+RDEPEND="dev-libs/libatomic_ops
+ >=dev-libs/libuv-1.26:=
+ dev-libs/libffi:=
+ dev-libs/mimalloc"
+DEPEND="${RDEPEND}
+ clang? ( >=sys-devel/clang-3.1 )
+ dev-lang/perl"
+
+DOCS=( CREDITS README.markdown )
+
+# Tests are conducted via nqp
+RESTRICT=test
+
+src_configure() {
+ MAKEOPTS+=" NOISY=1"
+ use doc && DOCS+=( docs/* )
+ local prefix="${EPREFIX}/usr"
+ local libdir="${EPREFIX}/usr/$(get_libdir)"
+ einfo "--prefix '${prefix}'"
+ einfo "--libdir '${libdir}'"
+ local myconfigargs=(
+ "--prefix" "${prefix}"
+ "--has-libuv"
+ "--has-libatomic_ops"
+ "--has-libffi"
+ "--has-mimalloc"
+ "--libdir" "${libdir}"
+ "--compiler" "$(usex clang clang gcc)"
+ "$(usex asan --asan)"
+ "$(usex debug --debug --no-debug)"
+ "$(usex optimize --optimize= --no-optimize)"
+ "$(usex static-libs --static)"
+ "$(usex ubsan --ubsan)"
+ )
+
+ perl Configure.pl "${myconfigargs[@]}" moarshared || die
+}