1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 if [[ ${PV} == "9999" ]]; then
10 EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
15 SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
17 S="${WORKDIR}/${MY_PN}-${PV}"
20 DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
21 HOMEPAGE="http://moarvm.org"
25 #USE=optimize triggers makefile bug
26 IUSE="asan clang debug doc +jit static-libs ubsan"
28 RDEPEND="dev-libs/libatomic_ops
33 clang? ( >=sys-devel/clang-3.1 )
36 DOCS=( CREDITS README.markdown )
38 # Tests are conducted via nqp
42 PATCHES="${FILESDIR}/fix-quoting.patch"
45 use doc && DOCS+=( docs/* )
46 local prefix="${EROOT%/}/usr"
47 local libdir="${EROOT%/}/usr/$(get_libdir)"
48 einfo "--prefix '${prefix}'"
49 einfo "--libdir '${libdir}'"
51 "--prefix" "${prefix}"
55 "--libdir" "${libdir}"
56 "--compiler" "$(usex clang clang gcc)"
58 "$(usex debug --debug --no-debug)"
59 "$(usex static-libs --static)"
60 "$(usex ubsan --ubsan)"
63 perl Configure.pl "${myconfigargs[@]}" moarshared || die