diff options
author | Patrick Lauer <patrick@gentoo.org> | 2018-02-13 19:15:07 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2018-02-13 19:15:07 +0000 |
commit | a498da763624d4fe1b1c0f13e1ef50229ba49e66 (patch) | |
tree | ec22b80fe77a154490ea41b6b7e55c20b447142f /dev-lang/moarvm/moarvm-2018.01.ebuild | |
parent | app-admin/puppetserver: remove unused file (diff) | |
download | gentoo-a498da763624d4fe1b1c0f13e1ef50229ba49e66.tar.gz gentoo-a498da763624d4fe1b1c0f13e1ef50229ba49e66.tar.bz2 gentoo-a498da763624d4fe1b1c0f13e1ef50229ba49e66.zip |
dev-lang/moarvm: Bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-lang/moarvm/moarvm-2018.01.ebuild')
-rw-r--r-- | dev-lang/moarvm/moarvm-2018.01.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-lang/moarvm/moarvm-2018.01.ebuild b/dev-lang/moarvm/moarvm-2018.01.ebuild new file mode 100644 index 000000000000..405febb3308d --- /dev/null +++ b/dev-lang/moarvm/moarvm-2018.01.ebuild @@ -0,0 +1,58 @@ +# 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:0[deprecated] + dev-lua/LuaBitOp + 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 +} |