Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 580732 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-lang/moarvm/metadata.xml (+10 lines)
Line 0 Link Here
1
diff -Naur a/Configure.pl b/Configure.pl
2
--- a/Configure.pl	2016-02-04 21:28:31.000000000 +0100
Lines 9-14 Link Here
9
    <email>perl@gentoo.org</email>
9
    <email>perl@gentoo.org</email>
10
    <name>Gentoo Perl Project</name>
10
    <name>Gentoo Perl Project</name>
11
  </maintainer>
11
  </maintainer>
12
  <use>
13
    <flag name="asan">Enable clang's Address Sanitizer functionality. Expect longer compile time.</flag>
14
    <flag name="clang">Use clang compiler instead of GCC</flag>
15
    <flag name="jit">Enable Just-In-Time-Compiler. Has no effect except on AMD64 and Darwin.</flag>
16
    <flag name="optimize">Enable optimization via CFLAGS</flag>
17
    <flag name="system-libs">Link against the system's shared libraries</flag>
18
    <flag name="ubsan">Enable clang's Undefined Behavior Sanitizer functionality. Expect longer compile time.</flag>
19
  </use>
12
  <upstream>
20
  <upstream>
13
    <remote-id type="github">MoarVM/MoarVM</remote-id>
21
    <remote-id type="github">MoarVM/MoarVM</remote-id>
14
  </upstream>
22
  </upstream>
(-)a/dev-lang/moarvm/moarvm-2016.03-r1.ebuild (+61 lines)
Line 0 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
5
EAPI=6
6
7
inherit eutils flag-o-matic multilib
8
9
MY_PN="MoarVM"
10
11
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
12
HOMEPAGE="http://moarvm.org"
13
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
14
LICENSE="Artistic-2"
15
SLOT="0"
16
KEYWORDS="~amd64 ~x86"
17
IUSE="asan clang debug doc +jit static-libs +system-libs optimize ubsan"
18
19
RDEPEND="system-libs? ( dev-libs/libatomic_ops
20
		dev-libs/libtommath
21
		dev-libs/libuv
22
		jit? ( dev-lang/lua[deprecated]
23
			dev-lua/LuaBitOp )
24
		virtual/libffi )
25
		"
26
DEPEND="${RDEPEND}
27
	clang? ( >=sys-devel/clang-3.1 )
28
	dev-lang/perl
29
	dev-perl/extutils-pkgconfig"
30
31
REQUIRED_USE="asan? ( clang )"
32
S="${WORKDIR}/MoarVM-${PV}"
33
PATCHES=( "${FILESDIR}/Configure-${PV}.patch" )
34
DOCS=( CREDITS README.markdown )
35
36
src_prepare() {
37
	eapply "${PATCHES[@]}"
38
	eapply_user
39
	use doc && DOCS+=( docs/* )
40
}
41
42
src_configure() {
43
	local myconfigargs=(
44
		"--prefix=/usr"
45
		"--libdir=$(get_libdir)"
46
		"--compiler=$(usex clang clang gcc)"
47
		"$(usex asan        --asan)"
48
		"$(usex debug       --debug            --no-debug)"
49
		"$(usex jit         --lua=/usr/bin/lua --no-jit)"
50
		"$(usex optimize    --optimize         --no-optimize)"
51
		"$(usex static-libs --static)"
52
		"$(usex system-libs --has-libtommath)"
53
		"$(usex system-libs --has-libuv)"
54
		"$(usex system-libs --has-libatomic_ops)"
55
		"$(usex system-libs --has-libffi)"
56
		"$(usex ubsan       --ubsan)"
57
	)
58
	use optimize && filter-flags '-O*'
59
60
	perl Configure.pl "${myconfigargs[@]}" || die
61
}
(-)a/profiles/base/package.use.mask (+5 lines)
Lines 5-10 Link Here
5
# This file requires >=portage-2.1.1
5
# This file requires >=portage-2.1.1
6
# New entries go on top.
6
# New entries go on top.
7
7
8
# Matthew Brewer <tomboy64@sina.cn> (21 Apr 2016)
9
# Upstream supports using Clang's address sanitizer, but apparently
10
# invokes it wrong.
11
dev-lang/moarvm asan
12
8
# Johannes Huber <johu@gentoo.org> (21 Apr 2016)
13
# Johannes Huber <johu@gentoo.org> (21 Apr 2016)
9
# Unreleased dependency.
14
# Unreleased dependency.
10
kde-apps/ktp-text-ui speech
15
kde-apps/ktp-text-ui speech

Return to bug 580732