forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/moarvm: Bump to version 2019.07.1
- migrate to EAPI7 - Removes unused "jit" USE - USE="optimize" should work again - Configure patch seemingly no longer needed Upstream: - Fix various race conditions by bumping level after instrumentation instead of before - Avoid various races in profile/coverage/debug - Fix possible memory corruption in bindkey_* - Fix pointer arithmetic in inlined CArrays in CStruct/CPPStruct REPRs - Unbreak instrumentation in debug server - Init debug socket for windows debug server - Fix GC rooting in MVM_platform_uname - Don't return null from filename() in profiler - Add band_i, bor_i, bxor_i ops to profiler - Fix dealloc profile logging in profiler by following any forwarder - Put limits on local and inline counts for inlining (Spesh) - Only use -fno-ret-protector with Clang on OpenBSD if Jit is enabled - Fix Configure.pl failing when --prefix is "/usr" - MoarVM/MoarVM@2019.07...2019.07.1 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <[email protected]>
- Loading branch information
1 parent
a0d6a64
commit a5d8df8
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit flag-o-matic | ||
|
||
MY_PN="MoarVM" | ||
if [[ ${PV} == "9999" ]]; then | ||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" | ||
EGIT_SUBMODULES=( '*' '-3rdparty/libatomicops' '-3rdparty/libuv' ) | ||
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 static-libs optimize ubsan" | ||
|
||
RDEPEND="dev-libs/libatomic_ops | ||
>=dev-libs/libuv-1.26 | ||
dev-lang/lua:= | ||
virtual/libffi" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND="${RDEPEND} | ||
clang? ( >=sys-devel/clang-3.1 ) | ||
dev-lang/perl" | ||
|
||
DOCS=( CREDITS README.markdown ) | ||
|
||
# Tests are conducted via nqp | ||
RESTRICT=test | ||
|
||
src_prepare() { | ||
if [[ "${PV}" == "9999" ]]; then | ||
# Stupid upstream try to auto-fetch this themselves | ||
git rm -f 3rdparty/{libatomicops,libuv} || | ||
die "Can't strip unused submodules" | ||
fi | ||
default | ||
} | ||
|
||
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)" | ||
) | ||
|
||
perl Configure.pl "${myconfigargs[@]}" moarshared || die | ||
} |