parent
cacb616063
commit
c80efb78b8
@ -1 +1,2 @@
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Vim support files for LLVM"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!sys-devel/llvm:0"
|
||||
|
||||
S=${WORKDIR}/llvm-${PV/_/}.src/utils/vim
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r */
|
||||
# some users may find it useful
|
||||
dodoc README vimrc
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,130 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils llvm python-any-r1
|
||||
|
||||
MY_P=llvm-${PV/_/}
|
||||
DESCRIPTION="OCaml bindings for LLVM"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${MY_P/_/}.src.tar.xz"
|
||||
|
||||
# Keep in sync with sys-devel/llvm
|
||||
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
|
||||
NVPTX PowerPC RISCV Sparc SystemZ X86 XCore )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="test ${ALL_LLVM_TARGETS[*]}"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4.00.0:0=
|
||||
dev-ml/ocaml-ctypes:=
|
||||
~sys-devel/llvm-${PV}:=[${LLVM_TARGET_USEDEPS// /,}]
|
||||
!sys-devel/llvm[ocaml(-)]"
|
||||
# configparser-3.2 breaks the build (3.3 or none at all are fine)
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
dev-ml/findlib
|
||||
test? ( dev-ml/ounit
|
||||
$(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )
|
||||
!!<dev-python/configparser-3.3.0.2
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
|| ( ${ALL_LLVM_TARGETS[*]} )"
|
||||
|
||||
S=${WORKDIR}/${MY_P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
! use test \
|
||||
|| has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Python is needed to run tests using lit
|
||||
python_setup
|
||||
|
||||
# User patches
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLLVM_OCAML_OUT_OF_TREE=ON
|
||||
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
|
||||
# disable various irrelevant deps and settings
|
||||
-DLLVM_ENABLE_FFI=OFF
|
||||
-DLLVM_ENABLE_TERMINFO=OFF
|
||||
-DHAVE_HISTEDIT_H=NO
|
||||
-DWITH_POLLY=OFF
|
||||
-DLLVM_ENABLE_ASSERTIONS=OFF
|
||||
-DLLVM_ENABLE_EH=ON
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
|
||||
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||
|
||||
# disable go bindings
|
||||
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
|
||||
|
||||
# TODO: ocamldoc
|
||||
)
|
||||
|
||||
use test && mycmakeargs+=(
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
|
||||
local llvm_libdir=$(llvm-config --libdir)
|
||||
# an ugly hack; TODO: figure out a way to pass -L to ocaml...
|
||||
cd "${BUILD_DIR}/${libdir}" || die
|
||||
ln -s "${llvm_libdir}"/*.so . || die
|
||||
|
||||
if use test; then
|
||||
local llvm_bindir=$(llvm-config --bindir)
|
||||
# Force using system-installed tools.
|
||||
sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \
|
||||
"${BUILD_DIR}"/test/lit.site.cfg || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile ocaml_all
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
cmake-utils_src_make check-llvm-bindings-ocaml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die
|
||||
|
||||
dodoc bindings/ocaml/README.txt
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_VERSION=2.011
|
||||
DIST_AUTHOR=ZOWIE
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Gnuplot-based plotting for PDL"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-outputfile.patch"
|
||||
)
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/Alien-Gnuplot
|
||||
virtual/perl-IO
|
||||
dev-perl/IPC-Run
|
||||
virtual/perl-Scalar-List-Utils
|
||||
dev-perl/PDL
|
||||
dev-perl/PDL-Transform-Color
|
||||
dev-perl/Safe-Isa
|
||||
virtual/perl-Storable
|
||||
virtual/perl-Time-HiRes
|
||||
|| ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=virtual/perl-ExtUtils-MakeMaker-6.480.0
|
||||
test? ( virtual/perl-Test-Simple )
|
||||
"
|
@ -0,0 +1,23 @@
|
||||
From b12c3f5de6340b997e5a2992710828f3e89308a0 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Reinhardt <simon.reinhardt@stud.uni-regensburg.de>
|
||||
Date: Mon, 26 Jun 2017 14:57:32 +0200
|
||||
Subject: [PATCH] Fix #65: No quoting for output filenames.
|
||||
|
||||
Insert missing call to quote_escape (escape backslashes and such for gnuplot
|
||||
double-quote strings).
|
||||
---
|
||||
lib/PDL/Graphics/Gnuplot.pm | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm
|
||||
index 0edf7ef..ff96cc9 100644
|
||||
--- a/lib/PDL/Graphics/Gnuplot.pm
|
||||
+++ b/lib/PDL/Graphics/Gnuplot.pm
|
||||
@@ -5188,6 +5188,7 @@ our $pOptionsTable =
|
||||
if($vv ne $v) {
|
||||
carp "INFO: Plotting to '$vv'\n";
|
||||
}
|
||||
+ $vv = quote_escape($vv);
|
||||
return "set $k \"$vv\"\n";
|
||||
},
|
||||
undef,3,
|
@ -1 +1,2 @@
|
||||
DIST cfe-4.0.0.src.tar.xz 10900916 SHA256 cea5f88ebddb30e296ca89130c83b9d46c2d833685e2912303c828054c4dc98a SHA512 a0d9972ec337a5c105fcbe7abc4076ba1e580f28908a3318f43bbfe59143f446ed5b78dad210f624145d7e5a3d56c15bfead78826c068422b60120fa1cfa482a WHIRLPOOL fe04b6955b82915bba09726947fceff92e67ffaac97de4b8c32c18546262f60a4307fdaccd3c9540710392658ed47f3bcfe44791de8d7d30786d56576f339aee
|
||||
DIST cfe-4.0.1.src.tar.xz 10933628 SHA256 61738a735852c23c3bdbe52d035488cdb2083013f384d67c1ba36fabebd8769b SHA512 936c9e1626b27e63a4fb11f3c0cb998eeaf9a520ad6e2bcd67cb4352e59e7781ecc700df79794f3fd70473d90b7e2ba418a39038eb0146b68e843f0705c1f964 WHIRLPOOL 1cb56b36e21eab8004eec43d9c0f7377588cdbcd1d654cd0e6d836d43bc68dc0759993215439c1607e09ed3fa1f68b80504a222f73c1b76d3841cdf638dcbef2
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="Python bindings for sys-devel/clang"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/cfe-${PV/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# The module is opening libclang.so directly, and doing some blasphemy
|
||||
# on top of it.
|
||||
RDEPEND="
|
||||
>=sys-devel/clang-${PV}:*
|
||||
!sys-devel/llvm:0[clang(-),python(-)]
|
||||
!sys-devel/clang:0[python(-)]
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S=${WORKDIR}/cfe-${PV/_/}.src/bindings/python
|
||||
|
||||
src_test() {
|
||||
python_foreach_impl nosetests -v
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_domodule clang
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST llvm-3.9.0.src.tar.xz 18235716 SHA256 66c73179da42cee1386371641241f79ded250e117a79f571bbd69e56daa48948 SHA512 f18ae32531218ab156c3e56c11826be0fd05f0799c82eaf2e6a043b38e1277560b4d921987513b88b11d97ea2619feaf277eec72181dd2ae4f4108c2836bf7b2 WHIRLPOOL a36c1bcee6e7995067a9a7a51e3fdb0f10d51d0239250eefab92ed2e46b024a203fa10a17a25a5aca69046bcb413628e288427f1a6690d0862e07cd95694c8a8
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=llvm-${PV/_/}
|
||||
DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${MY_P}.src.tar.xz"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
S=${WORKDIR}/${MY_P}.src/utils/lit
|
||||
|
||||
# Tests require 'FileCheck' and 'not' utilities (from llvm)
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
sys-devel/llvm )"
|
||||
|
||||
# TODO: move the manpage generation here (from sys-devel/llvm)
|
||||
|
||||
python_test() {
|
||||
./lit.py -sv tests || die
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST lldb-4.0.0.src.tar.xz 19122324 SHA256 2dbd8f05c662c1c9f11270fc9d0c63b419ddc988095e0ad107ed911cf882033d SHA512 931e8c6e74b66c4ac1c56c9d067309a319aa9a9f4c72d4ed9703be3decefeb8730084ad8c3581e4e31d61cdd4074518d2ed72bacce1e689e087b2f62ad4bb2e8 WHIRLPOOL db05202570e7fa3cba58155f6b181f55e5866cf3c71721d5ef398f22e8e3caca554767b1876c47e9de93edd4337148c514c91723b4833fc8e4c0eafa61b037c4
|
||||
DIST lldb-4.0.1.src.tar.xz 19088212 SHA256 8432d2dfd86044a0fc21713e0b5c1d98e1d8aad863cf67562879f47f841ac47b SHA512 1d94d7dfcc0614b16d0ef83436bbe814b39e34ba18394361bb9f13ad408ae9b29affa9a5d58c50c8dcd83765a39ae4d59ffabb7d8cd1358fd2fbd198b2de2ab6 WHIRLPOOL d7897416b89c683702bec9bd244caa911e24e5801270b64b119caf0e617f4bdc714d10bcea3963f229273d040ffdebcb8c5737a71ca17fc92e2bbbf93af002bb
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,121 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils llvm python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="The LLVM debugger"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
|
||||
test? ( http://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="libedit ncurses python test"
|
||||
|
||||
RDEPEND="
|
||||
libedit? ( dev-libs/libedit:0= )
|
||||
ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
|
||||
python? ( dev-python/six[${PYTHON_USEDEP}]
|
||||
${PYTHON_DEPS} )
|
||||
~sys-devel/clang-${PV}[xml]
|
||||
~sys-devel/llvm-${PV}
|
||||
!<sys-devel/llvm-4.0"
|
||||
# swig-3.0.9+ generates invalid wrappers, #598708
|
||||
# upstream: https://github.com/swig/swig/issues/769
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( <dev-lang/swig-3.0.9 )
|
||||
test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if use test; then
|
||||
mv llvm-* llvm || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix tests in stand-alone build
|
||||
eapply "${FILESDIR}"/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch
|
||||
# fix compatibility with new libedit
|
||||
eapply "${FILESDIR}"/4.0.1/0002-Fix-bug-28898.patch
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DLLDB_DISABLE_CURSES=$(usex !ncurses)
|
||||
-DLLDB_DISABLE_LIBEDIT=$(usex !libedit)
|
||||
-DLLDB_DISABLE_PYTHON=$(usex !python)
|
||||
-DLLVM_ENABLE_TERMINFO=$(usex ncurses)
|
||||
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
# compilers for lit tests
|
||||
-DLLDB_TEST_C_COMPILER="$(type -P clang)"
|
||||
-DLLDB_TEST_CXX_COMPILER="$(type -P clang++)"
|
||||
# compiler for ole' python tests
|
||||
-DLLDB_TEST_COMPILER="$(type -P clang)"
|
||||
|
||||
# TODO: fix upstream to detect this properly
|
||||
-DHAVE_LIBDL=ON
|
||||
-DHAVE_LIBPTHREAD=ON
|
||||
|
||||
# normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
|
||||
# and TERMINFO_LIBS... so just force FindCurses.cmake to use
|
||||
# ncurses with complete library set (including autodetection
|
||||
# of -ltinfo)
|
||||
-DCURSES_NEED_NCURSES=ON
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake-utils_src_make check-lldb-lit
|
||||
use python && cmake-utils_src_make check-lldb
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# oh my...
|
||||
if use python; then
|
||||
# remove bundled six module
|
||||
rm "${D}$(python_get_sitedir)/six.py" || die
|
||||
|
||||
# remove custom readline.so for now
|
||||
# TODO: figure out how to deal with it
|
||||
# upstream is basically building a custom readline.so with -ledit
|
||||
# to avoid symbol collisions between readline and libedit...
|
||||
rm "${D}$(python_get_sitedir)/readline.so" || die
|
||||
|
||||
# byte-compile the modules
|
||||
python_optimize
|
||||
fi
|
||||
}
|
@ -1 +1 @@
|
||||
Tue, 27 Jun 2017 19:08:56 +0000
|
||||
Tue, 27 Jun 2017 19:38:59 +0000
|
||||
|
@ -1 +1 @@
|
||||
Tue, 27 Jun 2017 19:08:56 +0000
|
||||
Tue, 27 Jun 2017 19:39:00 +0000
|
||||
|
@ -0,0 +1,10 @@
|
||||
DEFINED_PHASES=install
|
||||
DESCRIPTION=Vim support files for LLVM
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
KEYWORDS=~amd64 ~arm ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=!sys-devel/llvm:0
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz
|
||||
_md5_=cbc3a7a4dde9c821d35e72193efeedff
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=>=dev-lang/ocaml-4.00.0:0= dev-ml/ocaml-ctypes:= ~sys-devel/llvm-4.0.1:=[llvm_targets_AArch64?,llvm_targets_AMDGPU?,llvm_targets_ARM?,llvm_targets_BPF?,llvm_targets_Hexagon?,llvm_targets_Lanai?,llvm_targets_Mips?,llvm_targets_MSP430?,llvm_targets_NVPTX?,llvm_targets_PowerPC?,llvm_targets_RISCV?,llvm_targets_Sparc?,llvm_targets_SystemZ?,llvm_targets_X86?,llvm_targets_XCore?] !sys-devel/llvm[ocaml(-)] dev-lang/perl dev-ml/findlib test? ( dev-ml/ounit || ( ( >=dev-lang/python-2.7.5-r2:2.7 ~dev-python/lit-4.0.1[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) ) !!<dev-python/configparser-3.3.0.2 || ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=OCaml bindings for LLVM
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=test llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore
|
||||
KEYWORDS=~amd64 ~arm ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=>=dev-lang/ocaml-4.00.0:0= dev-ml/ocaml-ctypes:= ~sys-devel/llvm-4.0.1:=[llvm_targets_AArch64?,llvm_targets_AMDGPU?,llvm_targets_ARM?,llvm_targets_BPF?,llvm_targets_Hexagon?,llvm_targets_Lanai?,llvm_targets_Mips?,llvm_targets_MSP430?,llvm_targets_NVPTX?,llvm_targets_PowerPC?,llvm_targets_RISCV?,llvm_targets_Sparc?,llvm_targets_SystemZ?,llvm_targets_X86?,llvm_targets_XCore?] !sys-devel/llvm[ocaml(-)]
|
||||
REQUIRED_USE=|| ( llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore )
|
||||
SLOT=0/4.0.1
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=7c70c8c73b98fa9fc2ff6fb83864e4d6
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=dev-perl/Alien-Gnuplot virtual/perl-IO dev-perl/IPC-Run virtual/perl-Scalar-List-Utils dev-perl/PDL dev-perl/PDL-Transform-Color dev-perl/Safe-Isa virtual/perl-Storable virtual/perl-Time-HiRes || ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] ) >=virtual/perl-ExtUtils-MakeMaker-6.480.0 test? ( virtual/perl-Test-Simple ) dev-lang/perl:=
|
||||
DESCRIPTION=Gnuplot-based plotting for PDL
|
||||
EAPI=6
|
||||
HOMEPAGE=http://search.cpan.org/dist/PDL-Graphics-Gnuplot/
|
||||
IUSE=test
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=|| ( Artistic GPL-1+ )
|
||||
RDEPEND=dev-perl/Alien-Gnuplot virtual/perl-IO dev-perl/IPC-Run virtual/perl-Scalar-List-Utils dev-perl/PDL dev-perl/PDL-Transform-Color dev-perl/Safe-Isa virtual/perl-Storable virtual/perl-Time-HiRes || ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] ) dev-lang/perl:=
|
||||
SLOT=0
|
||||
SRC_URI=mirror://cpan/authors/id/Z/ZO/ZOWIE/PDL-Graphics-Gnuplot-2.011.tar.gz
|
||||
_eclasses_=multiprocessing 284a473719153462f3e974d86c8cb81c perl-functions 01e8c68d5a528bbcda4d3c60205983df perl-module 863b35d127db98823d439f8d73c2d011
|
||||
_md5_=d8067099316c8317bf9036b8d562b269
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=install test
|
||||
DEPEND=>=sys-devel/clang-4.0.1:* !sys-devel/llvm:0[clang(-),python(-)] !sys-devel/clang:0[python(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] test? ( dev-python/nose[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] )
|
||||
DESCRIPTION=Python bindings for sys-devel/clang
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=test python_targets_python2_7
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=>=sys-devel/clang-4.0.1:* !sys-devel/llvm:0[clang(-),python(-)] !sys-devel/clang:0[python(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python2_7 )
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/cfe-4.0.1.src.tar.xz
|
||||
_eclasses_=multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e python-r1 e9350ec46bb5c9f3504b4fbe8b8d8987 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7
|
||||
_md5_=59c96711ea51b87a0634d8cedb47d442
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=dev-python/setuptools[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] test? ( dev-python/psutil[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] sys-devel/llvm ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
DESCRIPTION=A stand-alone install of the LLVM suite testing tool
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=test python_targets_python2_7
|
||||
KEYWORDS=~amd64 ~arm ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python2_7 )
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz
|
||||
_eclasses_=distutils-r1 372bbe39047c0a2550319a3a82f3e063 multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c python-r1 e9350ec46bb5c9f3504b4fbe8b8d8987 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 xdg-utils b9389dfad0ee8f8e0b2a41b79fcf7120
|
||||
_md5_=8b4dd3580e669f462cb6c065d6467c4e
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test unpack
|
||||
DEPEND=libedit? ( dev-libs/libedit:0= ) ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) python? ( dev-python/six[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] ) ~sys-devel/clang-4.0.1[xml] ~sys-devel/llvm-4.0.1 !<sys-devel/llvm-4.0 python? ( <dev-lang/swig-3.0.9 ) test? ( ~dev-python/lit-4.0.1[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=The LLVM debugger
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=libedit ncurses python test python_targets_python2_7
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=libedit? ( dev-libs/libedit:0= ) ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) python? ( dev-python/six[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] ) ~sys-devel/clang-4.0.1[xml] ~sys-devel/llvm-4.0.1 !<sys-devel/llvm-4.0
|
||||
REQUIRED_USE=python_targets_python2_7
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/lldb-4.0.1.src.tar.xz test? ( http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz )
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-single-r1 317a2557b4d7319a7418225f65accf77 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=d4ac4acc83aa0cbc5a303574fa709fd9
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test unpack
|
||||
DEPEND=~sys-devel/llvm-4.0.1:4=[debug=,llvm_targets_AArch64?,llvm_targets_AMDGPU?,llvm_targets_ARM?,llvm_targets_BPF?,llvm_targets_Hexagon?,llvm_targets_Lanai?,llvm_targets_Mips?,llvm_targets_MSP430?,llvm_targets_NVPTX?,llvm_targets_PowerPC?,llvm_targets_RISCV?,llvm_targets_Sparc?,llvm_targets_SystemZ?,llvm_targets_X86?,llvm_targets_XCore?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] static-analyzer? ( dev-lang/perl:* ) xml? ( dev-libs/libxml2:2=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] doc? ( dev-python/sphinx ) test? ( ~dev-python/lit-4.0.1[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] ) xml? ( virtual/pkgconfig ) !!<dev-python/configparser-3.3.0.2 python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=C language family frontend for LLVM
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=debug default-compiler-rt default-libcxx +doc multitarget +static-analyzer test xml elibc_musl kernel_FreeBSD llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 python_targets_python2_7
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
PDEPEND=~sys-devel/clang-runtime-4.0.1 default-compiler-rt? ( =sys-libs/compiler-rt-4.0.1* ) default-libcxx? ( sys-libs/libcxx )
|
||||
RDEPEND=~sys-devel/llvm-4.0.1:4=[debug=,llvm_targets_AArch64?,llvm_targets_AMDGPU?,llvm_targets_ARM?,llvm_targets_BPF?,llvm_targets_Hexagon?,llvm_targets_Lanai?,llvm_targets_Mips?,llvm_targets_MSP430?,llvm_targets_NVPTX?,llvm_targets_PowerPC?,llvm_targets_RISCV?,llvm_targets_Sparc?,llvm_targets_SystemZ?,llvm_targets_X86?,llvm_targets_XCore?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] static-analyzer? ( dev-lang/perl:* ) xml? ( dev-libs/libxml2:2=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)] !<sys-devel/llvm-4.0.0_rc:0 !sys-devel/clang:0
|
||||
REQUIRED_USE=python_targets_python2_7 || ( llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore ) multitarget? ( llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore )
|
||||
SLOT=4
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/cfe-4.0.1.src.tar.xz http://releases.llvm.org/4.0.1/clang-tools-extra-4.0.1.src.tar.xz !doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/llvm-manpages-4.0.1.tar.bz2 ) test? ( http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz )
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 pax-utils 4f95120230a315c8caaabeb2307b7eee python-single-r1 317a2557b4d7319a7418225f65accf77 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=2de1d897334e22a8a42eb4ce9dddc06e
|
@ -0,0 +1,12 @@
|
||||
DEFINED_PHASES=-
|
||||
DESCRIPTION=Meta-ebuild for clang runtime libraries
|
||||
EAPI=6
|
||||
HOMEPAGE=http://clang.llvm.org/
|
||||
IUSE=+compiler-rt libcxx openmp +sanitize abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=metapackage
|
||||
RDEPEND=compiler-rt? ( ~sys-libs/compiler-rt-4.0.1:4.0.1 sanitize? ( ~sys-libs/compiler-rt-sanitizers-4.0.1:4.0.1 ) ) libcxx? ( >=sys-libs/libcxx-4.0.1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) openmp? ( >=sys-libs/libomp-4.0.1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||
REQUIRED_USE=sanitize? ( compiler-rt )
|
||||
SLOT=4.0.1
|
||||
_eclasses_=multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7
|
||||
_md5_=11f8dc0232b5715dd5f37628ba83fce6
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test unpack
|
||||
DEPEND=~sys-devel/llvm-4.0.1 test? ( || ( ( >=dev-lang/python-2.7.5-r2:2.7 ~dev-python/lit-4.0.1[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=The LLVM linker (link editor)
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=test
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA
|
||||
RDEPEND=~sys-devel/llvm-4.0.1
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/lld-4.0.1.src.tar.xz test? ( http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz )
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=ccf1c889bb5c79f2852d953cf5bf4c3c
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=sys-libs/zlib:0= gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libffi? ( >=virtual/libffi-3.0.13-r1:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) dev-lang/perl || ( >=sys-devel/gcc-3.0 >=sys-devel/llvm-3.5 ( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx ) ) || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 ) kernel_Darwin? ( <sys-libs/libcxx-4.0.1.9999 ) doc? ( dev-python/sphinx ) gold? ( sys-libs/binutils-libs ) libffi? ( virtual/pkgconfig ) test? ( || ( ( >=dev-lang/python-2.7.5-r2:2.7 ~dev-python/lit-4.0.1[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) ) !!<dev-python/configparser-3.3.0.2 || ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=Low Level Virtual Machine
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=debug +doc gold libedit +libffi ncurses test elibc_musl kernel_Darwin llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm ~arm64 ~x86
|
||||
LICENSE=UoI-NCSA rc BSD public-domain llvm_targets_ARM? ( LLVM-Grant )
|
||||
PDEPEND=app-vim/llvm-vim gold? ( sys-devel/llvmgold )
|
||||
RDEPEND=sys-libs/zlib:0= gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libffi? ( >=virtual/libffi-3.0.13-r1:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !sys-devel/llvm:0
|
||||
REQUIRED_USE=|| ( llvm_targets_AArch64 llvm_targets_AMDGPU llvm_targets_ARM llvm_targets_BPF llvm_targets_Hexagon llvm_targets_Lanai llvm_targets_Mips llvm_targets_MSP430 llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_X86 llvm_targets_XCore )
|
||||
SLOT=4
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz !doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/llvm-manpages-4.0.1.tar.bz2 )
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 pax-utils 4f95120230a315c8caaabeb2307b7eee python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=b2525acc8071bc692d8bbdfe74130afe
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=>=sys-devel/llvm-4 clang? ( sys-devel/clang ) test? ( =sys-devel/clang-4.0.1*:4 ) || ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=Compiler runtime library for clang (built-in part)
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=+clang test
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT )
|
||||
RDEPEND=!=sys-libs/compiler-rt-4.0.1*:0
|
||||
SLOT=4.0.1
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/compiler-rt-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=d1408df090eb71d624e8f4a9119a231d
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare pretend setup test unpack
|
||||
DEPEND=>=sys-devel/llvm-4 test? ( app-portage/unsandbox || ( ( >=dev-lang/python-2.7.5-r2:2.7 ~dev-python/lit-4.0.1[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) =sys-devel/clang-4.0.1*:4 sys-libs/compiler-rt:4.0.1 ) || ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=Compiler runtime libraries for clang (sanitizers & xray)
|
||||
EAPI=6
|
||||
HOMEPAGE=http://llvm.org/
|
||||
IUSE=test
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT )
|
||||
RDEPEND=!=sys-libs/compiler-rt-sanitizers-4.0.1*:0
|
||||
SLOT=4.0.1
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/compiler-rt-4.0.1.src.tar.xz test? ( http://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz )
|
||||
_eclasses_=check-reqs bd050ce908e4637604ee604ed4b78e8f cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=fe9b39e8b4396cae55fc1869c24c3d62
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=libcxxabi? ( ~sys-libs/libcxxabi-4.0.1[libunwind=,static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libcxxrt? ( sys-libs/libcxxrt[libunwind=,static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !libcxxabi? ( !libcxxrt? ( >=sys-devel/gcc-4.7:=[cxx] ) ) test? ( >=sys-devel/clang-3.9.0 || ( ( >=dev-lang/python-2.7.5-r2:2.7 dev-python/lit[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) ) app-arch/xz-utils >=sys-devel/llvm-4 dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=New implementation of the C++ standard library, targeting C++11
|
||||
EAPI=6
|
||||
HOMEPAGE=http://libcxx.llvm.org/
|
||||
IUSE=elibc_glibc elibc_musl +libcxxabi libcxxrt +libunwind +static-libs test abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT )
|
||||
RDEPEND=libcxxabi? ( ~sys-libs/libcxxabi-4.0.1[libunwind=,static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) libcxxrt? ( sys-libs/libcxxrt[libunwind=,static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) !libcxxabi? ( !libcxxrt? ( >=sys-devel/gcc-4.7:=[cxx] ) )
|
||||
REQUIRED_USE=libunwind? ( || ( libcxxabi libcxxrt ) ) ?? ( libcxxabi libcxxrt )
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/libcxx-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-multilib 7bc2cc09a4a5082b915541d447be8e5e cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=cb2bf1bf4992576ba7bf594a6b6fa0ec
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test unpack
|
||||
DEPEND=libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) ) >=sys-devel/llvm-4 test? ( >=sys-devel/clang-3.9.0 ~sys-libs/libcxx-4.0.1[libcxxabi(-)] || ( ( >=dev-lang/python-2.7.5-r2:2.7 dev-python/lit[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=Low level support for a standard C++ library
|
||||
EAPI=6
|
||||
HOMEPAGE=http://libcxxabi.llvm.org/
|
||||
IUSE=+libunwind +static-libs test abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT )
|
||||
RDEPEND=libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) )
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/libcxxabi-4.0.1.src.tar.xz http://releases.llvm.org/4.0.1/libcxx-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-multilib 7bc2cc09a4a5082b915541d447be8e5e cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=b96b64ebebe7c301191a88082e4b6daf
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=hwloc? ( sys-apps/hwloc:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) dev-lang/perl test? ( || ( ( >=dev-lang/python-2.7.5-r2:2.7 dev-python/lit[python_targets_python2_7(-),python_single_target_python2_7(+)] ) ) sys-devel/llvm >=sys-devel/clang-3.9.0 ) dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=OpenMP runtime library for LLVM/clang compiler
|
||||
EAPI=6
|
||||
HOMEPAGE=http://openmp.llvm.org
|
||||
IUSE=hwloc ompt test abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT ) MIT LLVM-Grant
|
||||
RDEPEND=hwloc? ( sys-apps/hwloc:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/openmp-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-multilib 7bc2cc09a4a5082b915541d447be8e5e cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 python-any-r1 27d7f9da7187d283b7f3eae8390b7b09 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=4f073ebb91919d83c43dc5de6a687b6d
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=>=sys-devel/llvm-4 dev-util/ninja >=dev-util/cmake-3.7.0-r1
|
||||
DESCRIPTION=C++ runtime stack unwinder from LLVM
|
||||
EAPI=6
|
||||
HOMEPAGE=https://github.com/llvm-mirror/libunwind
|
||||
IUSE=debug +static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=|| ( UoI-NCSA MIT )
|
||||
RDEPEND=!sys-libs/libunwind
|
||||
SLOT=0
|
||||
SRC_URI=http://releases.llvm.org/4.0.1/libunwind-4.0.1.src.tar.xz
|
||||
_eclasses_=cmake-multilib 7bc2cc09a4a5082b915541d447be8e5e cmake-utils 026933aff3889190eeb565b642cfe252 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b llvm 45ef89988bfb458ac81bb566c1eaa437 ltprune 2770eed66a9b8ef944714cd0e968182e multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build eed53a6313267c9fbcd35fc384bd0087 multilib-minimal 9139c3a57e077cb8e0d0f73ceb080b89 multiprocessing 284a473719153462f3e974d86c8cb81c ninja-utils ebb2eaddc6331c4fa000b8eb8f6fe074 toolchain-funcs 772b26a6baefb4c8c5e0c1fc724508b7 versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=ab6dd352d7ebe3376228d67961eeb3c8
|
@ -1 +1 @@
|
||||
Tue, 27 Jun 2017 19:08:56 +0000
|
||||
Tue, 27 Jun 2017 19:39:00 +0000
|
||||
|
@ -1 +1 @@
|
||||
Tue Jun 27 19:08:56 UTC 2017
|
||||
Tue Jun 27 19:38:59 UTC 2017
|
||||
|
@ -1 +1 @@
|
||||
Tue, 27 Jun 2017 19:30:01 +0000
|
||||
Tue, 27 Jun 2017 20:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
e0b532fc99180e3dba24b8da3b061b981c3cf424 1498588449 2017-06-27T18:34:09+00:00
|
||||
99a50ed232c8970b7ff71d04dfab43ba841cd4af 1498591331 2017-06-27T19:22:11+00:00
|
||||
|
@ -1 +1 @@
|
||||
1498590301 Tue 27 Jun 2017 07:05:01 PM UTC
|
||||
1498592101 Tue 27 Jun 2017 07:35:01 PM UTC
|
||||
|
@ -1 +1 @@
|
||||
Tue, 27 Jun 2017 19:08:56 +0000
|
||||
Tue, 27 Jun 2017 19:39:00 +0000
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-build
|
||||
|
||||
DESCRIPTION="Meta-ebuild for clang runtime libraries"
|
||||
HOMEPAGE="http://clang.llvm.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="metapackage"
|
||||
SLOT="${PV%_*}"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+compiler-rt libcxx openmp +sanitize"
|
||||
|
||||
RDEPEND="
|
||||
compiler-rt? (
|
||||
~sys-libs/compiler-rt-${PV}:${SLOT}
|
||||
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
|
||||
)
|
||||
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
|
||||
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
|
||||
|
||||
REQUIRED_USE="sanitize? ( compiler-rt )"
|
@ -1,4 +1,8 @@
|
||||
DIST cfe-4.0.0.src.tar.xz 10900916 SHA256 cea5f88ebddb30e296ca89130c83b9d46c2d833685e2912303c828054c4dc98a SHA512 a0d9972ec337a5c105fcbe7abc4076ba1e580f28908a3318f43bbfe59143f446ed5b78dad210f624145d7e5a3d56c15bfead78826c068422b60120fa1cfa482a WHIRLPOOL fe04b6955b82915bba09726947fceff92e67ffaac97de4b8c32c18546262f60a4307fdaccd3c9540710392658ed47f3bcfe44791de8d7d30786d56576f339aee
|
||||
DIST cfe-4.0.1.src.tar.xz 10933628 SHA256 61738a735852c23c3bdbe52d035488cdb2083013f384d67c1ba36fabebd8769b SHA512 936c9e1626b27e63a4fb11f3c0cb998eeaf9a520ad6e2bcd67cb4352e59e7781ecc700df79794f3fd70473d90b7e2ba418a39038eb0146b68e843f0705c1f964 WHIRLPOOL 1cb56b36e21eab8004eec43d9c0f7377588cdbcd1d654cd0e6d836d43bc68dc0759993215439c1607e09ed3fa1f68b80504a222f73c1b76d3841cdf638dcbef2
|
||||
DIST clang-tools-extra-4.0.0.src.tar.xz 583088 SHA256 41b7d37eb128fd362ab3431be5244cf50325bb3bb153895735c5bacede647c99 SHA512 2f9aed5ff7e175b730802961f9ce0aa6376ce78d905839e60536b6d166f68dc31d4420a668ed1e08f3601a5fefa8f7514172daaf77eb325fecd00e55f56e5af4 WHIRLPOOL 76dfa2854eabccfa93357b56d65a993d1a2fe3f4beb2c513369efabb78f6d4be583781c06d60ab0d2898df202fbf391d00818ec618c413dadea52b443c6026d6
|
||||
DIST clang-tools-extra-4.0.1.src.tar.xz 581788 SHA256 35d1e64efc108076acbe7392566a52c35df9ec19778eb9eb12245fc7d8b915b6 SHA512 ea26d926f428e62e76cf8a073e63ffe05645f6592e05d7717d5c257908870ae9217727d3e1578227b14eda5937085872463f1a8e99970256179c68b8a92e69e0 WHIRLPOOL 7db97e7164657af786ec49975e730e8731bece87cfeb1e45894be6d5e3455530c17461ce894b263a0cdfee917d97566db49225374112a543f6355419f15c1d8f
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
DIST llvm-manpages-4.0.0.tar.bz2 84861 SHA256 4676b3a18e95ddba19e868bfac0753154be2b57bc0d557f90270e4d2b0913d37 SHA512 7a04ffb607203aca099c816fe6e143779062610935f501786bd64bad6001741fb7a55adebe4e52e0611aa70fa04b22e1a7cab7b3da9dc2ed996fd0baf1ae8916 WHIRLPOOL e2ce15c26008995d71b830d74c5e6ca7dd862ed8208168facc0be6e7f855e5f59b143057ec2bbbaa70ed54dc77ad31279239886d25fe67c0853a9dee7baff31b
|
||||
DIST llvm-manpages-4.0.1.tar.bz2 87981 SHA256 28fa1dcd4774156247ba253d2d79c81796ef0f0763b4f37c9c5ae27af93f4320 SHA512 d5b3213567c25db58ef364d272314a79c311a80fc21d98c09a5540af45a8190a38f489228663fe9a9b63bf0f2b952c460c4196a8fc8d6f221619f6e7ed2fc415 WHIRLPOOL da897ea8d3713a5c4c10a6320f0e7dd13e0125e942e3444b0e8a2a062b83a8e86e3754be025b89ae00f63f557ec0518ab62d8cd21237962e93c708ca72c8e3f5
|
||||
|
@ -0,0 +1,279 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils flag-o-matic llvm multilib-minimal \
|
||||
python-single-r1 toolchain-funcs pax-utils versionator
|
||||
|
||||
DESCRIPTION="C language family frontend for LLVM"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/cfe-${PV/_/}.src.tar.xz
|
||||
http://releases.llvm.org/${PV/_//}/clang-tools-extra-${PV/_/}.src.tar.xz
|
||||
!doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/llvm-manpages-${PV}.tar.bz2 )
|
||||
test? ( http://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
|
||||
|
||||
# Keep in sync with sys-devel/llvm
|
||||
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
|
||||
NVPTX PowerPC RISCV Sparc SystemZ X86 XCore )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="$(get_major_version)"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="debug default-compiler-rt default-libcxx +doc multitarget
|
||||
+static-analyzer test xml elibc_musl kernel_FreeBSD ${ALL_LLVM_TARGETS[*]}"
|
||||
|
||||
RDEPEND="
|
||||
~sys-devel/llvm-${PV}:${SLOT}=[debug=,${LLVM_TARGET_USEDEPS// /,},${MULTILIB_USEDEP}]
|
||||
static-analyzer? ( dev-lang/perl:* )
|
||||
xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
|
||||
${PYTHON_DEPS}"
|
||||
# configparser-3.2 breaks the build (3.3 or none at all are fine)
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
|
||||
xml? ( virtual/pkgconfig )
|
||||
!!<dev-python/configparser-3.3.0.2
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${RDEPEND}
|
||||
!<sys-devel/llvm-4.0.0_rc:0
|
||||
!sys-devel/clang:0"
|
||||
PDEPEND="
|
||||
~sys-devel/clang-runtime-${PV}
|
||||
default-compiler-rt? ( =sys-libs/compiler-rt-${PV%_*}* )
|
||||
default-libcxx? ( sys-libs/libcxx )"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
|| ( ${ALL_LLVM_TARGETS[*]} )
|
||||
multitarget? ( ${ALL_LLVM_TARGETS[*]} )"
|
||||
|
||||
# We need extra level of indirection for CLANG_RESOURCE_DIR
|
||||
S=${WORKDIR}/x/y/cfe-${PV/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
# Multilib notes:
|
||||
# 1. ABI_* flags control ABIs libclang* is built for only.
|
||||
# 2. clang is always capable of compiling code for all ABIs for enabled
|
||||
# target. However, you will need appropriate crt* files (installed
|
||||
# e.g. by sys-devel/gcc and sys-libs/glibc).
|
||||
# 3. ${CHOST}-clang wrappers are always installed for all ABIs included
|
||||
# in the current profile (i.e. alike supported by sys-devel/gcc).
|
||||
#
|
||||
# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need
|
||||
# multilib clang* libraries (not runtime, not wrappers).
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${SLOT} llvm_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# create extra parent dirs for CLANG_RESOURCE_DIR
|
||||
mkdir -p x/y || die
|
||||
cd x/y || die
|
||||
|
||||
default
|
||||
|
||||
mv clang-tools-extra-* "${S}"/tools/extra || die
|
||||
if use test; then
|
||||
mv llvm-* "${WORKDIR}"/llvm || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix finding compiler-rt libs
|
||||
eapply "${FILESDIR}"/9999/0001-Driver-Use-arch-type-to-find-compiler-rt-libraries-o.patch
|
||||
|
||||
# fix stand-alone doc build
|
||||
eapply "${FILESDIR}"/9999/0007-cmake-Support-stand-alone-Sphinx-doxygen-doc-build.patch
|
||||
|
||||
# fix value of ATOMIC_*_LOCK_FREE
|
||||
# (backport, temporary reverted upstream because of FreeBSD issues)
|
||||
eapply "${FILESDIR}"/4.0.1/0001-Frontend-Correct-values-of-ATOMIC_-_LOCK_FREE-to-mat.patch
|
||||
|
||||
cd tools/extra || die
|
||||
# fix stand-alone test build for extra tools
|
||||
eapply "${FILESDIR}"/4.0.1/extra/0001-test-Fix-test-dependencies-when-using-installed-tool.patch
|
||||
eapply "${FILESDIR}"/4.0.1/extra/0002-test-Fix-clang-library-dir-in-LD_LIBRARY_PATH-For-st.patch
|
||||
cd - >/dev/null || die
|
||||
|
||||
# User patches
|
||||
eapply_user
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local llvm_version=$(llvm-config --version) || die
|
||||
local clang_version=$(get_version_component_range 1-3 "${llvm_version}")
|
||||
|
||||
local mycmakeargs=(
|
||||
# ensure that the correct llvm-config is used
|
||||
-DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
|
||||
# relative to bindir
|
||||
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${clang_version}"
|
||||
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
|
||||
# these are not propagated reliably, so redefine them
|
||||
-DLLVM_ENABLE_EH=ON
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
|
||||
# libgomp support fails to find headers without explicit -I
|
||||
# furthermore, it provides only syntax checking
|
||||
-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp
|
||||
|
||||
# override default stdlib and rtlib
|
||||
-DCLANG_DEFAULT_CXX_STDLIB=$(usex default-libcxx libc++ "")
|
||||
-DCLANG_DEFAULT_RTLIB=$(usex default-compiler-rt compiler-rt "")
|
||||
|
||||
-DCLANG_ENABLE_ARCMT=$(usex static-analyzer)
|
||||
-DCLANG_ENABLE_STATIC_ANALYZER=$(usex static-analyzer)
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
mycmakeargs+=(
|
||||
-DLLVM_BUILD_DOCS=$(usex doc)
|
||||
-DLLVM_ENABLE_SPHINX=$(usex doc)
|
||||
-DLLVM_ENABLE_DOXYGEN=OFF
|
||||
|
||||
# workaround pthread
|
||||
-DPTHREAD_LIB=-pthread
|
||||
)
|
||||
use doc && mycmakeargs+=(
|
||||
-DCLANG_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/html"
|
||||
-DCLANG-TOOLS_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/tools-extra"
|
||||
-DSPHINX_WARNINGS_AS_ERRORS=OFF
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=OFF
|
||||
)
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
[[ -x "/usr/bin/clang-tblgen" ]] \
|
||||
|| die "/usr/bin/clang-tblgen not found or usable"
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_CROSSCOMPILING=ON
|
||||
-DCLANG_TABLEGEN=/usr/bin/clang-tblgen
|
||||
)
|
||||
fi
|
||||
|
||||
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
|
||||
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
# provide a symlink for tests
|
||||
if [[ ! -L ${WORKDIR}/lib/clang ]]; then
|
||||
mkdir -p "${WORKDIR}"/lib || die
|
||||
ln -s "${BUILD_DIR}/$(get_libdir)/clang" "${WORKDIR}"/lib/clang || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
cmake-utils_src_make check-clang
|
||||
multilib_is_native_abi && cmake-utils_src_make check-clang-tools
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/clang/Config/config.h
|
||||
)
|
||||
|
||||
multilib-minimal_src_install
|
||||
|
||||
# Move runtime headers to /usr/lib/clang, where they belong
|
||||
mv "${ED%/}"/usr/include/clangrt "${ED%/}"/usr/lib/clang || die
|
||||
# move (remaining) wrapped headers back
|
||||
mv "${ED%/}"/usr/include "${ED%/}"/usr/lib/llvm/${SLOT}/include || die
|
||||
|
||||
# Apply CHOST and version suffix to clang tools
|
||||
# note: we use two version components here (vs 3 in runtime path)
|
||||
local llvm_version=$(llvm-config --version) || die
|
||||
local clang_version=$(get_version_component_range 1-2 "${llvm_version}")
|
||||
local clang_full_version=$(get_version_component_range 1-3 "${llvm_version}")
|
||||
local clang_tools=( clang clang++ clang-cl clang-cpp )
|
||||
local abi i
|
||||
|
||||
# cmake gives us:
|
||||
# - clang-X.Y
|
||||
# - clang -> clang-X.Y
|
||||
# - clang++, clang-cl, clang-cpp -> clang
|
||||
# we want to have:
|
||||
# - clang-X.Y
|
||||
# - clang++-X.Y, clang-cl-X.Y, clang-cpp-X.Y -> clang-X.Y
|
||||
# - clang, clang++, clang-cl, clang-cpp -> clang*-X.Y
|
||||
# also in CHOST variant
|
||||
for i in "${clang_tools[@]:1}"; do
|
||||
rm "${ED%/}/usr/lib/llvm/${SLOT}/bin/${i}" || die
|
||||
dosym "clang-${clang_version}" "/usr/lib/llvm/${SLOT}/bin/${i}-${clang_version}"
|
||||
dosym "${i}-${clang_version}" "/usr/lib/llvm/${SLOT}/bin/${i}"
|
||||
done
|
||||
|
||||
# now create target symlinks for all supported ABIs
|
||||
for abi in $(get_all_abis); do
|
||||
local abi_chost=$(get_abi_CHOST "${abi}")
|
||||
for i in "${clang_tools[@]}"; do
|
||||
dosym "${i}-${clang_version}" \
|
||||
"/usr/lib/llvm/${SLOT}/bin/${abi_chost}-${i}-${clang_version}"
|
||||
dosym "${abi_chost}-${i}-${clang_version}" \
|
||||
"/usr/lib/llvm/${SLOT}/bin/${abi_chost}-${i}"
|
||||
done
|
||||
done
|
||||
|
||||
# Remove unnecessary headers on FreeBSD, bug #417171
|
||||
if use kernel_FreeBSD; then
|
||||
rm "${ED}"usr/lib/clang/${clang_full_version}/include/{std,float,iso,limits,tgmath,varargs}*.h || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# move headers to /usr/include for wrapping & ABI mismatch checks
|
||||
# (also drop the version suffix from runtime headers)
|
||||
rm -rf "${ED%/}"/usr/include || die
|
||||
mv "${ED%/}"/usr/lib/llvm/${SLOT}/include "${ED%/}"/usr/include || die
|
||||
mv "${ED%/}"/usr/lib/llvm/${SLOT}/$(get_libdir)/clang "${ED%/}"/usr/include/clangrt || die
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
python_fix_shebang "${ED}"
|
||||
if use static-analyzer; then
|
||||
python_optimize "${ED}"usr/lib/llvm/${SLOT}/share/scan-view
|
||||
fi
|
||||
|
||||
# install pre-generated manpages
|
||||
if ! use doc; then
|
||||
insinto "/usr/lib/llvm/${SLOT}/share/man/man1"
|
||||
doins "${WORKDIR}/x/y/llvm-manpages-${PV}/clang"/*.1
|
||||
fi
|
||||
|
||||
docompress "/usr/lib/llvm/${SLOT}/share/man"
|
||||
# match 'html' non-compression
|
||||
use doc && docompress -x "/usr/share/doc/${PF}/tools-extra"
|
||||
# +x for some reason; TODO: investigate
|
||||
use static-analyzer && fperms a-x "/usr/lib/llvm/${SLOT}/share/man/man1/scan-build.1"
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST lld-4.0.0.src.tar.xz 592728 SHA256 33e06457b9ce0563c89b11ccc7ccabf9cff71b83571985a5bf8684c9150e7502 SHA512 66b2c9cc57f5e94ad7e7da1b1bcc08cbbaee1b55c6efa64b2424b9d8776c70b842c2a31c188a99b447be6a8621ad1b1e70573bbfcf5d6b1aa986b03b3b3350f3 WHIRLPOOL 5bc86e7aa67a519939780e0d3792f4bebc69f1748b919c1919f1afc1715e21bbf7be2a0f771948dd551861186c3171589a1843f817de7cb9d8bac81b077e8844
|
||||
DIST lld-4.0.1.src.tar.xz 593796 SHA256 63ce10e533276ca353941ce5ab5cc8e8dcd99dbdd9c4fa49f344a212f29d36ed SHA512 63bd0813094dc7fa9a95fdee93eb7b97026882a15548f819b5c67f3f0f9fa2a582d968af27ad8f802dbff1f6cd1b8c2fb26b3c7c80379488d05c4a4984d7af68 WHIRLPOOL e7adca75f7f5fbb6136d01544798e969cba69b86c5b76a7fdcf7918564aa13eb868f4fa41102d7a4c501f741664ae309d6842c821ac974503431722ae963f93f
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils llvm python-any-r1
|
||||
|
||||
DESCRIPTION="The LLVM linker (link editor)"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
|
||||
test? ( http://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="~sys-devel/llvm-${PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( $(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if use test; then
|
||||
mv llvm-* llvm || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# backport stand-alone build test fixes from master
|
||||
eapply "${FILESDIR}/4.0.1/0002-test-Use-LLD-specific-binary-library-dirs-when-build.patch"
|
||||
eapply "${FILESDIR}/4.0.1/0003-test-Fix-zlib-cond-when-building-stand-alone-clean-u.patch"
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
-DLLVM_INCLUDE_TESTS=$(usex test)
|
||||
# TODO: fix detecting pthread upstream in stand-alone build
|
||||
-DPTHREAD_LIB='-lpthread'
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_BUILD_TESTS=ON
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake-utils_src_make check-lld
|
||||
}
|
@ -0,0 +1,237 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils flag-o-matic multilib-minimal pax-utils \
|
||||
python-any-r1 toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Low Level Virtual Machine"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
|
||||
!doc? ( https://dev.gentoo.org/~mgorny/dist/llvm/llvm-manpages-${PV}.tar.bz2 )"
|
||||
|
||||
# Keep in sync with CMakeLists.txt
|
||||
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
|
||||
NVPTX PowerPC RISCV Sparc SystemZ X86 XCore )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
|
||||
# Additional licenses:
|
||||
# 1. OpenBSD regex: Henry Spencer's license ('rc' in Gentoo) + BSD.
|
||||
# 2. ARM backend: LLVM Software Grant by ARM.
|
||||
# 3. MD5 code: public-domain.
|
||||
# 4. Tests (not installed):
|
||||
# a. gtest: BSD.
|
||||
# b. YAML tests: MIT.
|
||||
|
||||
LICENSE="UoI-NCSA rc BSD public-domain
|
||||
llvm_targets_ARM? ( LLVM-Grant )"
|
||||
SLOT="$(get_major_version)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="debug +doc gold libedit +libffi ncurses test
|
||||
elibc_musl kernel_Darwin ${ALL_LLVM_TARGETS[*]}"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib:0=
|
||||
gold? ( >=sys-devel/binutils-2.22:*[cxx] )
|
||||
libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] )
|
||||
libffi? ( >=virtual/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )"
|
||||
# configparser-3.2 breaks the build (3.3 or none at all are fine)
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
|| ( >=sys-devel/gcc-3.0 >=sys-devel/llvm-3.5
|
||||
( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx )
|
||||
)
|
||||
|| ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 )
|
||||
kernel_Darwin? ( <sys-libs/libcxx-$(get_version_component_range 1-3).9999 )
|
||||
doc? ( dev-python/sphinx )
|
||||
gold? ( sys-libs/binutils-libs )
|
||||
libffi? ( virtual/pkgconfig )
|
||||
test? ( $(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )
|
||||
!!<dev-python/configparser-3.3.0.2
|
||||
${PYTHON_DEPS}"
|
||||
# There are no file collisions between these versions but having :0
|
||||
# installed means llvm-config there will take precedence.
|
||||
RDEPEND="${RDEPEND}
|
||||
!sys-devel/llvm:0"
|
||||
PDEPEND="app-vim/llvm-vim
|
||||
gold? ( sys-devel/llvmgold )"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
|| ( ${ALL_LLVM_TARGETS[*]} )"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
! use test \
|
||||
|| has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix llvm-config for shared linking and sane flags
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=565358
|
||||
eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch
|
||||
|
||||
# support building llvm against musl-libc
|
||||
use elibc_musl && eapply "${FILESDIR}"/9999/musl-fixes.patch
|
||||
|
||||
# disable use of SDK on OSX, bug #568758
|
||||
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
|
||||
|
||||
# User patches
|
||||
eapply_user
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local ffi_cflags ffi_ldflags
|
||||
if use libffi; then
|
||||
ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi)
|
||||
ffi_ldflags=$($(tc-getPKG_CONFIG) --libs-only-L libffi)
|
||||
fi
|
||||
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
|
||||
-DLLVM_ENABLE_FFI=$(usex libffi)
|
||||
-DLLVM_ENABLE_LIBEDIT=$(usex libedit)
|
||||
-DLLVM_ENABLE_TERMINFO=$(usex ncurses)
|
||||
-DLLVM_ENABLE_ASSERTIONS=$(usex debug)
|
||||
-DLLVM_ENABLE_EH=ON
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
|
||||
-DWITH_POLLY=OFF # TODO
|
||||
|
||||
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||
|
||||
-DFFI_INCLUDE_DIR="${ffi_cflags#-I}"
|
||||
-DFFI_LIBRARY_DIR="${ffi_ldflags#-L}"
|
||||
|
||||
# disable OCaml bindings (now in dev-ml/llvm-ocaml)
|
||||
-DOCAMLFIND=NO
|
||||
)
|
||||
|
||||
# Note: go bindings have no CMake rules at the moment
|
||||
# but let's kill the check in case they are introduced
|
||||
# if ! multilib_is_native_abi || ! use go; then
|
||||
mycmakeargs+=(
|
||||
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
|
||||
)
|
||||
# fi
|
||||
|
||||
use test && mycmakeargs+=(
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
mycmakeargs+=(
|
||||
-DLLVM_BUILD_DOCS=$(usex doc)
|
||||
-DLLVM_ENABLE_OCAMLDOC=OFF
|
||||
-DLLVM_ENABLE_SPHINX=$(usex doc)
|
||||
-DLLVM_ENABLE_DOXYGEN=OFF
|
||||
-DLLVM_INSTALL_UTILS=ON
|
||||
)
|
||||
use doc && mycmakeargs+=(
|
||||
-DLLVM_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/html"
|
||||
-DSPHINX_WARNINGS_AS_ERRORS=OFF
|
||||
)
|
||||
use gold && mycmakeargs+=(
|
||||
-DLLVM_BINUTILS_INCDIR="${EPREFIX}"/usr/include
|
||||
)
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
local tblgen="${EPREFIX}/usr/lib/llvm/${SLOT}/bin/llvm-tblgen"
|
||||
[[ -x "${tblgen}" ]] \
|
||||
|| die "${tblgen} not found or usable"
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_CROSSCOMPILING=ON
|
||||
-DLLVM_TABLEGEN="${tblgen}"
|
||||
)
|
||||
fi
|
||||
|
||||
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
|
||||
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
pax-mark m "${BUILD_DIR}"/bin/llvm-rtdyld
|
||||
pax-mark m "${BUILD_DIR}"/bin/lli
|
||||
pax-mark m "${BUILD_DIR}"/bin/lli-child-target
|
||||
|
||||
if use test; then
|
||||
pax-mark m "${BUILD_DIR}"/unittests/ExecutionEngine/Orc/OrcJITTests
|
||||
pax-mark m "${BUILD_DIR}"/unittests/ExecutionEngine/MCJIT/MCJITTests
|
||||
pax-mark m "${BUILD_DIR}"/unittests/Support/SupportTests
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
cmake-utils_src_make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local MULTILIB_CHOST_TOOLS=(
|
||||
/usr/lib/llvm/${SLOT}/bin/llvm-config
|
||||
)
|
||||
|
||||
local MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/llvm/Config/llvm-config.h
|
||||
)
|
||||
|
||||
local LLVM_LDPATHS=()
|
||||
multilib-minimal_src_install
|
||||
|
||||
# move wrapped headers back
|
||||
mv "${ED%/}"/usr/include "${ED%/}"/usr/lib/llvm/${SLOT}/include || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# move headers to /usr/include for wrapping
|
||||
rm -rf "${ED%/}"/usr/include || die
|
||||
mv "${ED%/}"/usr/lib/llvm/${SLOT}/include "${ED%/}"/usr/include || die
|
||||
|
||||
LLVM_LDPATHS+=( "${EPREFIX}/usr/lib/llvm/${SLOT}/$(get_libdir)" )
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local revord=$(( 9999 - ${SLOT} ))
|
||||
cat <<-_EOF_ > "${T}/10llvm-${revord}" || die
|
||||
PATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
|
||||
# we need to duplicate it in ROOTPATH for Portage to respect...
|
||||
ROOTPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
|
||||
MANPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
|
||||
LDPATH="$( IFS=:; echo "${LLVM_LDPATHS[*]}" )"
|
||||
_EOF_
|
||||
doenvd "${T}/10llvm-${revord}"
|
||||
|
||||
# install pre-generated manpages
|
||||
if ! use doc; then
|
||||
# (doman does not support custom paths)
|
||||
insinto "/usr/lib/llvm/${SLOT}/share/man/man1"
|
||||
doins "${WORKDIR}/llvm-manpages-${PV}/llvm"/*.1
|
||||
fi
|
||||
|
||||
docompress "/usr/lib/llvm/${SLOT}/share/man"
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST compiler-rt-4.0.0.src.tar.xz 1435104 SHA256 d3f25b23bef24c305137e6b44f7e81c51bbec764c119e01512a9bd2330be3115 SHA512 ed52436a2399ca82c1af46a523e89e88c23367f74cd110f0267af49a72aa4912ae8f48c6093e6b01c9ea68c48354a12201d26baf721d254fb017ddb98af2e3dd WHIRLPOOL ea5d6fbb34809067825306b1158979946c43c8aec458d946f8c853f3c0e0cd72a6c92a8e4ad8d1b35e10f9bd079a73dd26fde368f919937ad413bdfd83ab4018
|
||||
DIST compiler-rt-4.0.1.src.tar.xz 1434100 SHA256 a3c87794334887b93b7a766c507244a7cdcce1d48b2e9249fc9a94f2c3beb440 SHA512 cfeb625884b273f7c0e6767b81a8d3e5f24e0b96a510d5764d9d47a0e215fc841b4cb9d1843c8fb428cd21def720cfbfe8d3593ff5bb390548ebc8c32a902649 WHIRLPOOL 8b33c6841cacefe98da92435418b13b8f8ed97a982903be827e5c37f937dc9001975d6a709d60423b21509dd5670ee2e90cb34c96473fb4a66c2ab6f47af09e5
|
||||
DIST llvm-4.0.0.src.tar.xz 21016340 SHA256 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be SHA512 cf681f0626ef6d568d951cdc3e143471a1d7715a0ba11e52aa273cf5d8d421e1357ef2645cc85879eaefcd577e99e74d07b01566825b3d0461171ef2cbfc7704 WHIRLPOOL 9783e8f47306c1deb2e114d4b46a7db9b0260b4965076345c88765413c5fc8e73fab5f88ae4903adbdea31406022948b16d32ae47d98f5def074509d5d794579
|
||||
DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
|
||||
|
@ -0,0 +1,127 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit check-reqs cmake-utils flag-o-matic llvm python-any-r1 versionator
|
||||
|
||||
DESCRIPTION="Compiler runtime libraries for clang (sanitizers & xray)"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/compiler-rt-${PV/_/}.src.tar.xz
|
||||
test? ( http://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="${PV%_*}"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
LLVM_SLOT=${SLOT%%.*}
|
||||
RDEPEND="!=sys-libs/compiler-rt-sanitizers-${SLOT}*:0"
|
||||
# llvm-4 needed for --cmakedir
|
||||
DEPEND="
|
||||
>=sys-devel/llvm-4
|
||||
test? (
|
||||
app-portage/unsandbox
|
||||
$(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]")
|
||||
=sys-devel/clang-${PV%_*}*:${LLVM_SLOT}
|
||||
sys-libs/compiler-rt:${SLOT} )
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
S=${WORKDIR}/compiler-rt-${PV/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
check_space() {
|
||||
if use test; then
|
||||
local CHECKREQS_DISK_BUILD=11G
|
||||
check-reqs_pkg_pretend
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
check_space
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
check_space
|
||||
llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if use test; then
|
||||
mv llvm-* llvm || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# pre-set since we need to pass it to cmake
|
||||
BUILD_DIR=${WORKDIR}/${P}_build
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}"
|
||||
# use a build dir structure consistent with install
|
||||
# this makes it possible to easily deploy test-friendly clang
|
||||
-DCOMPILER_RT_OUTPUT_DIR="${BUILD_DIR}/lib/clang/${SLOT}"
|
||||
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
|
||||
# built-ins installed by sys-libs/compiler-rt
|
||||
-DCOMPILER_RT_BUILD_BUILTINS=OFF
|
||||
-DCOMPILER_RT_BUILD_SANITIZERS=ON
|
||||
-DCOMPILER_RT_BUILD_XRAY=ON
|
||||
)
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/unsandbox;${EPREFIX}/usr/bin/lit"
|
||||
|
||||
# they are created during src_test()
|
||||
-DCOMPILER_RT_TEST_COMPILER="${BUILD_DIR}/lib/llvm/${LLVM_SLOT}/bin/clang"
|
||||
-DCOMPILER_RT_TEST_CXX_COMPILER="${BUILD_DIR}/lib/llvm/${LLVM_SLOT}/bin/clang++"
|
||||
)
|
||||
|
||||
# same flags are passed for build & tests, so we need to strip
|
||||
# them down to a subset supported by clang
|
||||
CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \
|
||||
CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
|
||||
if use test; then
|
||||
local sys_dir=( "${EPREFIX}"/usr/lib/clang/${SLOT}/lib/* )
|
||||
[[ -e ${sys_dir} ]] || die "Unable to find ${sys_dir}"
|
||||
[[ ${#sys_dir[@]} -eq 1 ]] || die "Non-deterministic compiler-rt install: ${sys_dir[*]}"
|
||||
|
||||
# copy clang over since resource_dir is located relatively to binary
|
||||
# therefore, we can put our new libraries in it
|
||||
mkdir -p "${BUILD_DIR}"/lib/{llvm/${LLVM_SLOT}/{bin,$(get_libdir)},clang/${SLOT}/include} || die
|
||||
cp "${EPREFIX}"/usr/lib/llvm/${LLVM_SLOT}/bin/clang{,++} \
|
||||
"${BUILD_DIR}"/lib/llvm/${LLVM_SLOT}/bin/ || die
|
||||
cp "${EPREFIX}"/usr/lib/clang/${SLOT}/include/*.h \
|
||||
"${BUILD_DIR}"/lib/clang/${SLOT}/include/ || die
|
||||
cp "${sys_dir}"/*builtins*.a \
|
||||
"${BUILD_DIR}/lib/clang/${SLOT}/lib/${sys_dir##*/}/" || die
|
||||
# we also need LLVMgold.so for gold-based tests
|
||||
if [[ -f ${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/$(get_libdir)/LLVMgold.so ]]; then
|
||||
ln -s "${EPREFIX}"/usr/lib/llvm/${LLVM_SLOT}/$(get_libdir)/LLVMgold.so \
|
||||
"${BUILD_DIR}"/lib/llvm/${LLVM_SLOT}/$(get_libdir)/ || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
|
||||
cmake-utils_src_make check-all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST compiler-rt-4.0.0.src.tar.xz 1435104 SHA256 d3f25b23bef24c305137e6b44f7e81c51bbec764c119e01512a9bd2330be3115 SHA512 ed52436a2399ca82c1af46a523e89e88c23367f74cd110f0267af49a72aa4912ae8f48c6093e6b01c9ea68c48354a12201d26baf721d254fb017ddb98af2e3dd WHIRLPOOL ea5d6fbb34809067825306b1158979946c43c8aec458d946f8c853f3c0e0cd72a6c92a8e4ad8d1b35e10f9bd079a73dd26fde368f919937ad413bdfd83ab4018
|
||||
DIST compiler-rt-4.0.1.src.tar.xz 1434100 SHA256 a3c87794334887b93b7a766c507244a7cdcce1d48b2e9249fc9a94f2c3beb440 SHA512 cfeb625884b273f7c0e6767b81a8d3e5f24e0b96a510d5764d9d47a0e215fc841b4cb9d1843c8fb428cd21def720cfbfe8d3593ff5bb390548ebc8c32a902649 WHIRLPOOL 8b33c6841cacefe98da92435418b13b8f8ed97a982903be827e5c37f937dc9001975d6a709d60423b21509dd5670ee2e90cb34c96473fb4a66c2ab6f47af09e5
|
||||
|
@ -0,0 +1,137 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
# TODO: fix unnecessary dep on Python upstream
|
||||
inherit cmake-utils flag-o-matic llvm python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Compiler runtime library for clang (built-in part)"
|
||||
HOMEPAGE="http://llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="${PV%_*}"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+clang test"
|
||||
|
||||
LLVM_SLOT=${SLOT%%.*}
|
||||
RDEPEND="!=sys-libs/compiler-rt-${SLOT}*:0"
|
||||
# llvm-4 needed for --cmakedir
|
||||
DEPEND="
|
||||
>=sys-devel/llvm-4
|
||||
clang? ( sys-devel/clang )
|
||||
test? ( =sys-devel/clang-${PV%_*}*:${LLVM_SLOT} )
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
test_compiler() {
|
||||
$(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
|
||||
<<<'int main() { return 0; }' &>/dev/null
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# pre-set since we need to pass it to cmake
|
||||
BUILD_DIR=${WORKDIR}/${P}_build
|
||||
|
||||
if use clang; then
|
||||
local -x CC=${CHOST}-clang
|
||||
local -x CXX=${CHOST}-clang++
|
||||
# ensure we can use clang before installing compiler-rt
|
||||
local -x LDFLAGS="${LDFLAGS} -nodefaultlibs -lc"
|
||||
strip-unsupported-flags
|
||||
elif ! test_compiler; then
|
||||
local extra_flags=( -nodefaultlibs -lc )
|
||||
if test_compiler "${extra_flags[@]}"; then
|
||||
local -x LDFLAGS="${LDFLAGS} ${extra_flags[*]}"
|
||||
ewarn "${CC} seems to lack runtime, trying with ${extra_flags[*]}"
|
||||
fi
|
||||
fi
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}"
|
||||
# use a build dir structure consistent with install
|
||||
# this makes it possible to easily deploy test-friendly clang
|
||||
-DCOMPILER_RT_OUTPUT_DIR="${BUILD_DIR}/lib/clang/${SLOT}"
|
||||
|
||||
# currently lit covers only sanitizer tests
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF
|
||||
-DCOMPILER_RT_BUILD_SANITIZERS=OFF
|
||||
-DCOMPILER_RT_BUILD_XRAY=OFF
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# prepare a test compiler
|
||||
# copy clang over since resource_dir is located relatively to binary
|
||||
# therefore, we can put our new libraries in it
|
||||
mkdir -p "${BUILD_DIR}"/lib/{llvm/${LLVM_SLOT}{/bin,$(get_libdir)},clang/${SLOT}/include} || die
|
||||
cp "${EPREFIX}"/usr/lib/llvm/${LLVM_SLOT}/bin/clang{,++} \
|
||||
"${BUILD_DIR}"/lib/llvm/${LLVM_SLOT}/bin/ || die
|
||||
cp "${EPREFIX}/usr/lib/clang/${SLOT}/include"/*.h \
|
||||
"${BUILD_DIR}/lib/clang/${SLOT}/include/" || die
|
||||
|
||||
# builtins are not converted to lit yet, so run them manually
|
||||
local tests=() f
|
||||
cd "${S}"/test/builtins/Unit || die
|
||||
while read -r -d '' f; do
|
||||
# ppc subdir is unmaintained and lacks proper guards
|
||||
# (and ppc builtins do not seem to be used anyway)
|
||||
[[ ${f} == ./ppc/* ]] && continue
|
||||
# these are special
|
||||
[[ ${f} == ./cpu_model_test.c ]] && continue
|
||||
[[ ${f} == ./gcc_personality_test.c ]] && continue
|
||||
# unsupported
|
||||
[[ ${f} == ./trampoline_setup_test.c ]] && continue
|
||||
tests+=( "${f%.c}" )
|
||||
done < <(find -name '*.c' -print0)
|
||||
|
||||
{
|
||||
echo "check: ${tests[*]/#/check-}" &&
|
||||
echo ".PHONY: check ${tests[*]/#/check-}" &&
|
||||
for f in "${tests[@]}"; do
|
||||
echo "check-${f}: ${f}" &&
|
||||
echo " ${f}"
|
||||
done
|
||||
} > Makefile || die
|
||||
|
||||
local ABI
|
||||
for ABI in $(get_all_abis); do
|
||||
# not supported at all at the moment
|
||||
[[ ${ABI} == x32 ]] && continue
|
||||
|
||||
rm -f "${tests[@]}" || die
|
||||
|
||||
einfo "Running tests for ABI=${ABI}"
|
||||
# use -k to run all tests even if some fail
|
||||
emake -k \
|
||||
CC="${BUILD_DIR}/lib/llvm/${LLVM_SLOT}/bin/clang" \
|
||||
CFLAGS="$(get_abi_CFLAGS)" \
|
||||
CPPFLAGS='-I../../../lib/builtins' \
|
||||
LDFLAGS='-rtlib=compiler-rt' \
|
||||
LDLIBS='-lm'
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# includes are mistakenly installed for all sanitizers and xray
|
||||
rm -rf "${ED}"usr/lib/clang/*/include || die
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Ninja provides better scalability and cleaner verbose output, and is used
|
||||
# throughout all LLVM projects.
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-multilib llvm python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="New implementation of the C++ standard library, targeting C++11"
|
||||
HOMEPAGE="http://libcxx.llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="elibc_glibc elibc_musl +libcxxabi libcxxrt +libunwind +static-libs test"
|
||||
REQUIRED_USE="libunwind? ( || ( libcxxabi libcxxrt ) )
|
||||
?? ( libcxxabi libcxxrt )"
|
||||
|
||||
RDEPEND="
|
||||
libcxxabi? ( ~sys-libs/libcxxabi-${PV}[libunwind=,static-libs?,${MULTILIB_USEDEP}] )
|
||||
libcxxrt? ( sys-libs/libcxxrt[libunwind=,static-libs?,${MULTILIB_USEDEP}] )
|
||||
!libcxxabi? ( !libcxxrt? ( >=sys-devel/gcc-4.7:=[cxx] ) )"
|
||||
# LLVM 4 required for llvm-config --cmakedir
|
||||
# clang-3.9.0 installs necessary target symlinks unconditionally
|
||||
# which removes the need for MULTILIB_USEDEP
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=sys-devel/clang-3.9.0
|
||||
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )
|
||||
app-arch/xz-utils
|
||||
>=sys-devel/llvm-4"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
DOCS=( CREDITS.TXT )
|
||||
|
||||
PATCHES=(
|
||||
# Add link flag "-Wl,-z,defs" to avoid underlinking; this is needed in a
|
||||
# out-of-tree build.
|
||||
"${FILESDIR}/${PN}-3.9-cmake-link-flags.patch"
|
||||
)
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
|
||||
if ! use libcxxabi && ! use libcxxrt && ! tc-is-gcc ; then
|
||||
eerror "To build ${PN} against libsupc++, you have to use gcc. Other"
|
||||
eerror "compilers are not supported. Please set CC=gcc and CXX=g++"
|
||||
eerror "and try again."
|
||||
die
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-version) < 4.7 ]] ; then
|
||||
eerror "${PN} needs to be built with gcc-4.7 or later (or other"
|
||||
eerror "conformant compilers). Please use gcc-config to switch to"
|
||||
eerror "gcc-4.7 or later version."
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local cxxabi cxxabi_incs
|
||||
if use libcxxabi; then
|
||||
cxxabi=libcxxabi
|
||||
cxxabi_incs="${EPREFIX}/usr/include/libcxxabi"
|
||||
elif use libcxxrt; then
|
||||
cxxabi=libcxxrt
|
||||
cxxabi_incs="${EPREFIX}/usr/include/libcxxrt"
|
||||
else
|
||||
local gcc_inc="${EPREFIX}/usr/lib/gcc/${CHOST}/$(gcc-fullversion)/include/g++-v$(gcc-major-version)"
|
||||
cxxabi=libsupc++
|
||||
cxxabi_incs="${gcc_inc};${gcc_inc}/${CHOST}"
|
||||
fi
|
||||
|
||||
# we want -lgcc_s for unwinder, and for compiler runtime when using
|
||||
# gcc, clang with gcc runtime (or any unknown compiler)
|
||||
local extra_libs=() want_gcc_s=ON
|
||||
if use libunwind; then
|
||||
# work-around missing -lunwind upstream
|
||||
extra_libs+=( -lunwind )
|
||||
# if we're using libunwind and clang with compiler-rt, we want
|
||||
# to link to compiler-rt instead of -lgcc_s
|
||||
if tc-is-clang; then
|
||||
# get the full library list out of 'pretend mode'
|
||||
# and grep it for libclang_rt references
|
||||
local args=( $($(tc-getCC) -### -x c - 2>&1 | tail -n 1) )
|
||||
local i
|
||||
for i in "${args[@]}"; do
|
||||
if [[ ${i} == *libclang_rt* ]]; then
|
||||
want_gcc_s=OFF
|
||||
extra_libs+=( "${i}" )
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLIBCXX_LIBDIR_SUFFIX=${libdir#lib}
|
||||
-DLIBCXX_ENABLE_SHARED=ON
|
||||
-DLIBCXX_ENABLE_STATIC=$(usex static-libs)
|
||||
-DLIBCXX_CXX_ABI=${cxxabi}
|
||||
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=${cxxabi_incs}
|
||||
# we're using our own mechanism for generating linker scripts
|
||||
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF
|
||||
-DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl)
|
||||
-DLIBCXX_HAS_GCC_S_LIB=${want_gcc_s}
|
||||
-DLIBCXX_INCLUDE_TESTS=$(usex test)
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="${extra_libs[*]} ${LDFLAGS}"
|
||||
)
|
||||
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
# this can be any directory, it just needs to exist...
|
||||
# FIXME: remove this once https://reviews.llvm.org/D25093 is merged
|
||||
-DLLVM_MAIN_SRC_DIR="${T}"
|
||||
-DLIT_COMMAND="${EPREFIX}"/usr/bin/lit
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
|
||||
|
||||
[[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
|
||||
sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die
|
||||
|
||||
cmake-utils_src_make check-libcxx
|
||||
}
|
||||
|
||||
# Usage: deps
|
||||
gen_ldscript() {
|
||||
local output_format
|
||||
output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
|
||||
[[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
|
||||
|
||||
cat <<-END_LDSCRIPT
|
||||
/* GNU ld script
|
||||
Include missing dependencies
|
||||
*/
|
||||
${output_format}
|
||||
GROUP ( $@ )
|
||||
END_LDSCRIPT
|
||||
}
|
||||
|
||||
gen_static_ldscript() {
|
||||
local libdir=$(get_libdir)
|
||||
local cxxabi_lib=$(usex libcxxabi "libc++abi.a" "$(usex libcxxrt "libcxxrt.a" "libsupc++.a")")
|
||||
|
||||
# Move it first.
|
||||
mv "${ED}/usr/${libdir}/libc++.a" "${ED}/usr/${libdir}/libc++_static.a" || die
|
||||
# Generate libc++.a ldscript for inclusion of its dependencies so that
|
||||
# clang++ -stdlib=libc++ -static works out of the box.
|
||||
local deps="libc++_static.a ${cxxabi_lib} $(usex libunwind libunwind.a libgcc_eh.a)"
|
||||
# On Linux/glibc it does not link without libpthread or libdl. It is
|
||||
# fine on FreeBSD.
|
||||
use elibc_glibc && deps+=" libpthread.a libdl.a"
|
||||
|
||||
gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.a" || die
|
||||
}
|
||||
|
||||
gen_shared_ldscript() {
|
||||
local libdir=$(get_libdir)
|
||||
# libsupc++ doesn't have a shared version
|
||||
local cxxabi_lib=$(usex libcxxabi "libc++abi.so" "$(usex libcxxrt "libcxxrt.so" "libsupc++.a")")
|
||||
|
||||
mv "${ED}/usr/${libdir}/libc++.so" "${ED}/usr/${libdir}/libc++_shared.so" || die
|
||||
local deps="libc++_shared.so ${cxxabi_lib} $(usex libunwind libunwind.so libgcc_s.so)"
|
||||
|
||||
gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.so" || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
gen_shared_ldscript
|
||||
use static-libs && gen_static_ldscript
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This package (${PN}) is mainly intended as a replacement for the C++"
|
||||
elog "standard library when using clang."
|
||||
elog "To use it, instead of libstdc++, use:"
|
||||
elog " clang++ -stdlib=libc++"
|
||||
elog "to compile your C++ programs."
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
DIST libcxx-3.9.0.src.tar.xz 1198308 SHA256 d0b38d51365c6322f5666a2a8105785f2e114430858de4c25a86b49f227f5b06 SHA512 55d5c4adff378ee02b0b99d732bc9f326910f9e49ab8c320a588eccdd0362fe009bc9a6a4337d29faf6338420c91b10d0d7d67f66128268f01258d30502c4f4a WHIRLPOOL 3ee3519acfe95287a862a6c44e30ed52ced1204332913007797da4e4da40dfdc5991ae120f5686827cc208b559936da5bc5485dab75617bdd5cbbd9e95a6032a
|
||||
DIST libcxx-3.9.1.src.tar.xz 1209020 SHA256 25e615e428f60e651ed09ffd79e563864e3f4bc69a9e93ee41505c419d1a7461 SHA512 a5976e4096624a7307b3e43f4a22ac2dc74572226e0f57af9f3ef537a14c3cff1601b7042aef9dc40a0ee53ca76b08d72eb9c253dcf34f115d3153c302db7070 WHIRLPOOL cad439979570192b195338d752a24fb0ad8704c0c8efed3b6d7724437763eab7bc3b8baaf2f0e6fff55c6d9be211dff6f7baf18dec55e3a29ad3b8a423cefb1e
|
||||
DIST libcxx-4.0.0.src.tar.xz 1450376 SHA256 4f4d33c4ad69bf9e360eebe6b29b7b19486948b1a41decf89d4adec12473cf96 SHA512 6dad794c00919955e14710def169cdcde8a1743431479e993c4a6a3c87c2fd9f5dbd6e17542e524981eed0783dce70384c356b74ef3c6d70598c6ff03454b1dd WHIRLPOOL 2c5074087e306d100c96ae5b7175e1e1792f0317c7be6231692c80423ec716732c08293fe14fe6da5cd52d8709d6ce0a240009df24e717ab0eb9093ac7679af7
|
||||
DIST libcxx-4.0.1.src.tar.xz 1446380 SHA256 520a1171f272c9ff82f324d5d89accadcec9bc9f3c78de11f5575cdb99accc4c SHA512 91f3f397be606989be99865d0b279557f9afb93f7a74ed10c3a74f4440e38b5694ddf452bbf2f487cacd4391606dd5c7edfe5130f2de19e2acfd6cce619d028a WHIRLPOOL fe7c71e8dc2d17d14e94896837229c5ed872e7c04aea79a207e8fa98aa4539a7445e402b848d0c0d009f154f00d970159ad009d16bfdb9ae012ce5c7c6d9ba51
|
||||
DIST libcxxabi-3.9.0.src.tar.xz 511324 SHA256 b037a92717856882e05df57221e087d7d595a2ae9f170f7bc1a23ec7a92c8019 SHA512 500207bfd59664bd42d920741d6b467c4b88569453742db6470af081c77be04894e097a14b8419e333b51abce484566366e35cbc3ed2607cd86dfc0ec0ddd0c5 WHIRLPOOL 7b2d3b022c4c539596ce7be0afac724df929f19fb80e6f5b14074e240fb252b04389fe121f987ceaf6f3567d59735238b2940546475e4107f3c32eb55a5f8a80
|
||||
DIST libcxxabi-3.9.1.src.tar.xz 510964 SHA256 920d8be32e6f5574a3fb293f93a31225eeba15086820fcb942155bf50dc029e2 SHA512 4f5603f1476b759c86d4784728fbdd212c59b30dc56d787c1834bf68a9cd83071fa22658d24e5a58beb94c0c656b0e4457d7da6e3048715dd36bd68380fc336e WHIRLPOOL 8ff9d0a2d5657e384f3b624fe514ae4074552c34672e8b7caeb4870d700e71913447af75d56021d393c6eebd45018e5e80b706747b1433d9ec608a1d5b0b3051
|
||||
DIST libcxxabi-4.0.0.src.tar.xz 515560 SHA256 dca9cb619662ad2d3a0d685c4366078345247218c3702dd35bcaaa23f63481d8 SHA512 b69933a0bde00321323e98962cd54b78a48bc5e93448d7a5124cb5ef844497ba7648cd92fcbe476186c60c7742e3121841f150c142c2a14c1bf2aa26a8b93d64 WHIRLPOOL 1ec297df8fd7d2e8910f2db006cc5ae53abcca37cfab3f03c5371156f69fff39c1f9193eafa0cd907bb881c35948381b85cd86710e17c83e5b90be90e3841256
|
||||
DIST libcxxabi-4.0.1.src.tar.xz 515820 SHA256 8f08178989a06c66cd19e771ff9d8ca526dd4a23d1382d63e416c04ea9fa1b33 SHA512 e94315ba8a507d8481d70c33e7ab2d724d51726edb8412c70a1b5f59e3f15d5825f1502dc2db138b20e5293fb90a184050be94d5ac270fd7ce78b502efb9f86a WHIRLPOOL 8771bb1f5ac8cb1d22a4606bfd3b448e1e3b942be0d5639a7c8c36abcc550a59cf2e530558aeb486294b642fdcd10c56695b59d094bed41e0115980cb587c8af
|
||||
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-multilib llvm python-any-r1
|
||||
|
||||
DESCRIPTION="Low level support for a standard C++ library"
|
||||
HOMEPAGE="http://libcxxabi.llvm.org/"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
|
||||
http://releases.llvm.org/${PV/_//}/libcxx-${PV/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+libunwind +static-libs test"
|
||||
|
||||
RDEPEND="
|
||||
libunwind? (
|
||||
|| (
|
||||
>=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
|
||||
>=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}]
|
||||
)
|
||||
)"
|
||||
# LLVM 4 required for llvm-config --cmakedir
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/llvm-4
|
||||
test? ( >=sys-devel/clang-3.9.0
|
||||
~sys-libs/libcxx-${PV}[libcxxabi(-)]
|
||||
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
|
||||
|
||||
S=${WORKDIR}/${P/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
mv libcxx-* libcxx || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib}
|
||||
-DLIBCXXABI_ENABLE_SHARED=ON
|
||||
-DLIBCXXABI_ENABLE_STATIC=$(usex static-libs)
|
||||
-DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind)
|
||||
-DLIBCXXABI_INCLUDE_TESTS=$(usex test)
|
||||
|
||||
-DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include
|
||||
# upstream is omitting standard search path for this
|
||||
# probably because gcc & clang are bundling their own unwind.h
|
||||
-DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include
|
||||
# this only needs to exist, it does not have to make sense
|
||||
# FIXME: remove this once https://reviews.llvm.org/D25314 is merged
|
||||
-DLIBCXXABI_LIBUNWIND_SOURCES="${T}"
|
||||
)
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
-DLIT_COMMAND="${EPREFIX}"/usr/bin/lit
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
|
||||
|
||||
[[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
|
||||
sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die
|
||||
|
||||
cmake-utils_src_make check-libcxxabi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
insinto /usr/include/libcxxabi
|
||||
doins -r include/.
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-multilib python-any-r1
|
||||
|
||||
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
|
||||
HOMEPAGE="http://openmp.llvm.org"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/openmp-${PV/_/}.src.tar.xz"
|
||||
|
||||
# Additional licenses:
|
||||
# - MIT-licensed Intel code,
|
||||
# - LLVM Software Grant from Intel.
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT ) MIT LLVM-Grant"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="hwloc ompt test"
|
||||
|
||||
RDEPEND="hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )"
|
||||
# tests:
|
||||
# - dev-python/lit provides the test runner
|
||||
# - sys-devel/llvm provide test utils (e.g. FileCheck)
|
||||
# - sys-devel/clang provides the compiler to run tests
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
test? (
|
||||
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
|
||||
sys-devel/llvm
|
||||
>=sys-devel/clang-3.9.0
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/openmp-${PV/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix atomic tests with gcc
|
||||
eapply "${FILESDIR}"/4.0.1/0001-test-Try-to-link-latomic-to-provide-atomics-when-ava.patch
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local libdir="$(get_libdir)"
|
||||
local mycmakeargs=(
|
||||
-DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
|
||||
-DLIBOMP_USE_HWLOC=$(usex hwloc)
|
||||
-DLIBOMP_OMPT_SUPPORT=$(usex ompt)
|
||||
# do not install libgomp.so & libiomp5.so aliases
|
||||
-DLIBOMP_INSTALL_ALIASES=OFF
|
||||
# disable unnecessary hack copying stuff back to srcdir
|
||||
-DLIBOMP_COPY_EXPORTS=OFF
|
||||
-DLIBOMP_TEST_COMPILER="$(type -P "${CHOST}-clang")"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
|
||||
cmake-utils_src_make check-libomp
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
inherit cmake-multilib llvm
|
||||
|
||||
DESCRIPTION="C++ runtime stack unwinder from LLVM"
|
||||
HOMEPAGE="https://github.com/llvm-mirror/libunwind"
|
||||
SRC_URI="http://releases.llvm.org/${PV/_//}/libunwind-${PV/_/}.src.tar.xz"
|
||||
|
||||
LICENSE="|| ( UoI-NCSA MIT )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="debug +static-libs"
|
||||
|
||||
RDEPEND="!sys-libs/libunwind"
|
||||
# LLVM 4 required for llvm-config --cmakedir
|
||||
DEPEND=">=sys-devel/llvm-4"
|
||||
|
||||
S=${WORKDIR}/libunwind-${PV/_/}.src
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
multilib_src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
-DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug)
|
||||
-DLIBUNWIND_ENABLE_STATIC=$(usex static-libs)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# install headers like sys-libs/libunwind
|
||||
doheader "${S}"/include/*.h
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST xfce4-screenshooter-1.8.2.tar.bz2 492524 SHA256 9dce2ddfaa87f703e870e29bae13f3fc82a1b3f06b44f8386640e45a135f5f69 SHA512 e43dce108c7bacfeebdc39b0c9948b348c77faf358fb0ab5f26d59c96980f1c5473ef87895fe53387340202813935ddad6e200010e61aa27c2c56b662ee56b1e WHIRLPOOL 9a4b5553c0b55d5bd8458f6ff4ac85d5eb07541a940fe038d25b29f021ed4f74a89da7fc006ff06a53652fa630740b42ebc3542bc589f4766bf2401825cb6a8e
|
||||
DIST xfce4-screenshooter-1.9.0.tar.bz2 514276 SHA256 8fe41025096a5e0d54dfb5f1d2bc9645e9a4512ccd8d3bcc9f5ff1da4e8bd69e SHA512 f75f2a28853748915b525fa862329aae52473e52c63c1adcbd92a3875694621d8c73e253d024cb7c7ce8f5466c699ddf5145c8cffd4a42ba8e1d5ed555ef11d5 WHIRLPOOL 768616016820404fc9c7ef1571783c52052af04f5a340a988c6a5efc372c5ae40be59c8302556482d46e39b21054bef22c66f68ea7b5c3c25bd3ba7225a01d56
|
||||
DIST xfce4-screenshooter-1.9.1.tar.bz2 514979 SHA256 e62b31d9cf06a7414a26400c2ebe7a2ae7c2b22aa60f997f25145ea9ebe6e0db SHA512 e95385f65dfe5fdd1d7045a18c9404ab400db9ddd06a35de2b11c0a955b390a6d278903a3558c135ee9744c8062860f491339b5d035f53cac74a49c366bd8bb2 WHIRLPOOL 80982e12a17b195c23c7a51d53ee36843bc3ef798f247e49bb350e560f3d0243f924ab76e037d35e8e6b118dc351f7d44c736a628e67bc8a551c698432788c60
|
||||
|
Loading…
Reference in new issue