blob: 9d88ee46c582cc1bf7e68bc524dde6c98ab6b9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit cmake-utils python-single-r1
DESCRIPTION="Emscripten LLVM backend - Fastcomp is the default compiler core for Emscripten"
HOMEPAGE="http://emscripten.org/"
SRC_URI="https://github.com/kripken/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/kripken/${PN}-clang/archive/${PV}.tar.gz -> ${PN}-clang-${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="UoI-NCSA"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
MY_DEPEND="${PYTHON_DEPS}
>=net-libs/nodejs-0.12.6"
DEPEND="${MY_DEPEND}
>=dev-util/cmake-3.4.3"
RDEPEND="${MY_DEPEND}
>=virtual/jre-1.5"
src_prepare() {
eapply "${FILESDIR}/${PV}/CMakeLists.txt.patch"
cd "${S}/../${PN}-clang-${PV}" || \
die "Could not change to directory '${S}/../${PN}-clang-${PV}'"
eapply "${FILESDIR}/${PV}/Version.cpp.patch"
cd "${S}" || die "Could not change to directory '${S}'"
eapply_user
}
src_configure() {
# create symlink to tools/clang
ln -s "${WORKDIR}/${PN}-clang-${PV}/" "${WORKDIR}/${P}/tools/clang" \
|| die "Could not create symlink to tools/clang"
local mycmakeargs=(
# avoid clashes with sys-devel/llvm
-DCMAKE_INSTALL_PREFIX="/usr/share/${P}"
-DLLVM_TARGETS_TO_BUILD="X86;JSBackend"
-DLLVM_INCLUDE_EXAMPLES=OFF
-DLLVM_INCLUDE_TESTS=OFF
-DCLANG_INCLUDE_EXAMPLES=OFF
-DCLANG_INCLUDE_TESTS=OFF
-DCLANG_INCLUDE_DOCS=OFF
-DLLVM_INCLUDE_DOCS=OFF
)
cmake-utils_src_configure
}
|