blob: c9ff509ceca517a8a2b31cb3f80ad474861d5adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo
MY_PN="MoarVM"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
inherit git-r3
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"
# Tests are conducted via nqp
RESTRICT=test
RDEPEND="
app-arch/zstd:=
dev-libs/libatomic_ops
>=dev-libs/libuv-1.26:=
dev-libs/libffi:=
"
DEPEND="${RDEPEND}
dev-lang/perl
clang? ( >=sys-devel/clang-3.1 )
"
DOCS=( CREDITS README.markdown )
PATCHES=(
"${FILESDIR}"/${PN}-2023.02-fix-build-clang16.patch
)
src_configure() {
MAKEOPTS+=" NOISY=1"
use doc && DOCS+=( docs/* )
local myconfigargs=(
"--prefix" "${EPREFIX}/usr"
"--has-libuv"
"--has-libatomic_ops"
"--has-libffi"
"--libdir" "${EPREFIX}/usr/$(get_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 "")"
)
edo perl Configure.pl "${myconfigargs[@]}" moarshared
}
|