diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-30 09:41:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-30 09:41:01 +0000 |
commit | 310615add7b4be144ba0a7d7a156fe2c7949116d (patch) | |
tree | 17b4ae4b556105d8db614b4a529b1fc8cb61affb /dev-lang/moarvm/moarvm-2023.10.ebuild | |
parent | e6a2fd03865862c81d79bd32249728f20ce99354 (diff) |
gentoo auto-resync : 30:10:2023 - 09:41:01
Diffstat (limited to 'dev-lang/moarvm/moarvm-2023.10.ebuild')
-rw-r--r-- | dev-lang/moarvm/moarvm-2023.10.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
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 +} |