You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit flag-o-matic
|
|
|
|
MY_PN="MoarVM"
|
|
if [[ ${PV} == "9999" ]]; then
|
|
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
|
inherit git-r3
|
|
KEYWORDS=""
|
|
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 Rakudo Perl 6"
|
|
HOMEPAGE="http://moarvm.org"
|
|
LICENSE="Artistic-2"
|
|
SLOT="0"
|
|
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
|
|
|
RDEPEND="dev-libs/libatomic_ops
|
|
dev-libs/libuv
|
|
dev-lang/lua:=
|
|
virtual/libffi"
|
|
DEPEND="${RDEPEND}
|
|
clang? ( >=sys-devel/clang-3.1 )
|
|
dev-lang/perl"
|
|
|
|
DOCS=( CREDITS README.markdown )
|
|
|
|
# Tests are conducted via nqp
|
|
RESTRICT=test
|
|
|
|
src_configure() {
|
|
use doc && DOCS+=( docs/* )
|
|
local myconfigargs=(
|
|
"--prefix=/usr"
|
|
"--has-libuv"
|
|
"--has-libatomic_ops"
|
|
"--has-libffi"
|
|
"--libdir=$(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)"
|
|
)
|
|
use optimize && filter-flags '-O*'
|
|
|
|
perl Configure.pl "${myconfigargs[@]}" || die
|
|
}
|