Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/emscripten-fastcomp/
Date: Thu, 29 Oct 2015 13:45:59
Message-Id: 1446060034.7c5ed15205eecd3605f9232388e1831550195e60.jlec@gentoo
1 commit: 7c5ed15205eecd3605f9232388e1831550195e60
2 Author: Harald Weiner <harald.weiner <AT> jku <DOT> at>
3 AuthorDate: Wed Oct 28 19:20:34 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 19:20:34 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7c5ed152
7
8 added emscripten-fastcomp-1.35.2
9
10 .../emscripten-fastcomp-1.35.2.ebuild | 40 ++++++++++++++++++++++
11 1 file changed, 40 insertions(+)
12
13 diff --git a/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.35.2.ebuild b/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.35.2.ebuild
14 new file mode 100644
15 index 0000000..9469880
16 --- /dev/null
17 +++ b/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.35.2.ebuild
18 @@ -0,0 +1,40 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=5
24 +
25 +PYTHON_COMPAT=( python2_7 )
26 +
27 +inherit cmake-utils python-single-r1
28 +
29 +DESCRIPTION="Emscripten LLVM backend - Fastcomp is the default compiler core for Emscripten"
30 +HOMEPAGE="http://emscripten.org/"
31 +SRC_URI="https://github.com/kripken/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
32 + https://github.com/kripken/${PN}-clang/archive/${PV}.tar.gz -> ${PN}-clang-${PV}.tar.gz"
33 +KEYWORDS="~amd64 ~x86"
34 +SLOT="0"
35 +LICENSE="UoI-NCSA"
36 +
37 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
38 +
39 +DEPEND="${PYTHON_DEPS}
40 + net-libs/nodejs"
41 +RDEPEND="${DEPEND}
42 + >=virtual/jre-1.5"
43 +
44 +src_configure() {
45 + # create symlink to tools/clang
46 + ln -s "${WORKDIR}/${PN}-clang-${PV}/" "${WORKDIR}/${P}/tools/clang" \
47 + || die "Could not create symlink to tools/clang"
48 + local mycmakeargs=(
49 + # avoid clashes with sys-devel/llvm
50 + -DCMAKE_INSTALL_PREFIX="/usr/share/${P}"
51 + -DLLVM_TARGETS_TO_BUILD="X86;JSBackend"
52 + -DLLVM_INCLUDE_EXAMPLES=OFF
53 + -DLLVM_INCLUDE_TESTS=OFF
54 + -DCLANG_INCLUDE_EXAMPLES=OFF
55 + -DCLANG_INCLUDE_TESTS=OFF
56 + )
57 + cmake-utils_src_configure
58 +}