Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 ) |
7 |
PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 ) |
8 |
|
8 |
|
9 |
inherit eutils flag-o-matic multilib multilib-minimal \ |
9 |
inherit cmake-utils eutils flag-o-matic multilib multilib-minimal \ |
10 |
python-r1 toolchain-funcs pax-utils check-reqs |
10 |
python-r1 toolchain-funcs pax-utils check-reqs |
11 |
|
11 |
|
12 |
DESCRIPTION="Low Level Virtual Machine" |
12 |
DESCRIPTION="Low Level Virtual Machine" |
Lines 251-256
Link Here
|
251 |
|
251 |
|
252 |
ECONF_SOURCE=${S} \ |
252 |
ECONF_SOURCE=${S} \ |
253 |
econf ${CONF_FLAGS} |
253 |
econf ${CONF_FLAGS} |
|
|
254 |
|
255 |
multilib_build_binaries && cmake_configure |
256 |
} |
257 |
|
258 |
cmake_configure() { |
259 |
# sadly, cmake doesn't seem to have host autodetection |
260 |
# but it's fairly easy to steal this from configured autotools |
261 |
local targets=$(sed -n -e 's/^TARGETS_TO_BUILD=//p' Makefile.config || die) |
262 |
local libdir=$(get_libdir) |
263 |
local mycmakeargs=( |
264 |
-DLLVM_TARGETS_TO_BUILD="${targets// /;}" |
265 |
-DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
266 |
) |
267 |
|
268 |
BUILD_DIR=${S%/}_cmake \ |
269 |
cmake-utils_src_configure |
254 |
} |
270 |
} |
255 |
|
271 |
|
256 |
multilib_src_compile() { |
272 |
multilib_src_compile() { |
Lines 299-304
Link Here
|
299 |
|
315 |
|
300 |
multilib_src_install() { |
316 |
multilib_src_install() { |
301 |
emake DESTDIR="${D}" GENTOO_LIBDIR=$(get_libdir) install |
317 |
emake DESTDIR="${D}" GENTOO_LIBDIR=$(get_libdir) install |
|
|
318 |
emake -C "${S%/}"_cmake/cmake/modules DESTDIR="${D}" install |
302 |
|
319 |
|
303 |
# Fix rpaths. |
320 |
# Fix rpaths. |
304 |
if use !kernel_Darwin ; then |
321 |
if use !kernel_Darwin ; then |