3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
|
6 |
inherit edo
|
|
7 |
|
6 |
8 |
MY_PN="MoarVM"
|
7 |
9 |
if [[ ${PV} == "9999" ]]; then
|
8 |
10 |
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
9 |
11 |
inherit git-r3
|
10 |
|
S="${WORKDIR}/${P}"
|
11 |
12 |
else
|
12 |
13 |
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
13 |
14 |
KEYWORDS="~amd64 ~x86"
|
... | ... | |
16 |
17 |
|
17 |
18 |
DESCRIPTION="A 6model-based VM for NQP and Raku"
|
18 |
19 |
HOMEPAGE="http://moarvm.org"
|
|
20 |
|
19 |
21 |
LICENSE="Artistic-2"
|
20 |
22 |
SLOT="0"
|
21 |
|
|
22 |
23 |
IUSE="asan clang debug doc +jit optimize static-libs ubsan"
|
|
24 |
# Tests are conducted via nqp
|
|
25 |
RESTRICT=test
|
23 |
26 |
|
24 |
|
RDEPEND="dev-libs/libatomic_ops
|
25 |
|
>=dev-libs/libuv-1.26:=
|
26 |
|
dev-libs/libffi:="
|
|
27 |
RDEPEND="
|
|
28 |
app-arch/zstd:=
|
|
29 |
dev-libs/libatomic_ops
|
|
30 |
>=dev-libs/libuv-1.26:=
|
|
31 |
dev-libs/libffi:=
|
|
32 |
"
|
27 |
33 |
DEPEND="${RDEPEND}
|
|
34 |
dev-lang/perl
|
28 |
35 |
clang? ( >=sys-devel/clang-3.1 )
|
29 |
|
dev-lang/perl"
|
|
36 |
"
|
30 |
37 |
|
31 |
38 |
DOCS=( CREDITS README.markdown )
|
32 |
39 |
|
33 |
|
# Tests are conducted via nqp
|
34 |
|
RESTRICT=test
|
|
40 |
PATCHES=(
|
|
41 |
"${FILESDIR}"/${PN}-2023.02-fix-build-clang16.patch
|
|
42 |
)
|
35 |
43 |
|
36 |
44 |
src_configure() {
|
37 |
45 |
MAKEOPTS+=" NOISY=1"
|
38 |
46 |
use doc && DOCS+=( docs/* )
|
39 |
|
local prefix="${EPREFIX}/usr"
|
40 |
|
local libdir="${EPREFIX}/usr/$(get_libdir)"
|
41 |
|
einfo "--prefix '${prefix}'"
|
42 |
|
einfo "--libdir '${libdir}'"
|
43 |
47 |
local myconfigargs=(
|
44 |
|
"--prefix" "${prefix}"
|
|
48 |
"--prefix" "${EPREFIX}/usr"
|
45 |
49 |
"--has-libuv"
|
46 |
50 |
"--has-libatomic_ops"
|
47 |
51 |
"--has-libffi"
|
48 |
|
"--libdir" "${libdir}"
|
|
52 |
"--libdir" "${EPREFIX}/usr/$(get_libdir)"
|
49 |
53 |
"--compiler" "$(usex clang clang gcc)"
|
50 |
|
"$(usex asan --asan)"
|
51 |
|
"$(usex debug --debug --no-debug)"
|
52 |
|
"$(usex optimize --optimize= --no-optimize)"
|
53 |
|
"$(usex static-libs --static)"
|
54 |
|
"$(usex ubsan --ubsan)"
|
|
54 |
"$(usex asan --asan "")"
|
|
55 |
"$(usex debug --debug --no-debug)"
|
|
56 |
"$(usex optimize --optimize= --no-optimize)"
|
|
57 |
"$(usex static-libs --static "")"
|
|
58 |
"$(usex ubsan --ubsan "")"
|
55 |
59 |
)
|
56 |
60 |
|
57 |
|
perl Configure.pl "${myconfigargs[@]}" moarshared || die
|
|
61 |
edo perl Configure.pl "${myconfigargs[@]}" moarshared
|
58 |
62 |
}
|