Lines 30-36
Link Here
|
30 |
|
30 |
|
31 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA MIT" |
31 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA MIT" |
32 |
SLOT="$(ver_cut 1)" |
32 |
SLOT="$(ver_cut 1)" |
33 |
KEYWORDS="amd64 arm arm64 ppc64 x86 ~amd64-linux" |
33 |
KEYWORDS="amd64 arm arm64 ppc64 x86 ~amd64-linux ~x64-macos" |
34 |
IUSE="debug default-compiler-rt default-libcxx default-lld |
34 |
IUSE="debug default-compiler-rt default-libcxx default-lld |
35 |
doc +static-analyzer test xml kernel_FreeBSD ${ALL_LLVM_TARGETS[*]}" |
35 |
doc +static-analyzer test xml kernel_FreeBSD ${ALL_LLVM_TARGETS[*]}" |
36 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
36 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
Lines 75-80
Link Here
|
75 |
# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need |
75 |
# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need |
76 |
# multilib clang* libraries (not runtime, not wrappers). |
76 |
# multilib clang* libraries (not runtime, not wrappers). |
77 |
|
77 |
|
|
|
78 |
PATCHES=( |
79 |
"${FILESDIR}"/11.0.0/prefix-dirs.patch |
80 |
) |
81 |
|
78 |
pkg_setup() { |
82 |
pkg_setup() { |
79 |
LLVM_MAX_SLOT=${SLOT} llvm_pkg_setup |
83 |
LLVM_MAX_SLOT=${SLOT} llvm_pkg_setup |
80 |
python-single-r1_pkg_setup |
84 |
python-single-r1_pkg_setup |
Lines 88-93
Link Here
|
88 |
llvm.org_src_prepare |
92 |
llvm.org_src_prepare |
89 |
|
93 |
|
90 |
mv ../clang-tools-extra tools/extra || die |
94 |
mv ../clang-tools-extra tools/extra || die |
|
|
95 |
|
96 |
# add Gentoo Portage Prefix for Darwin (see prefix-dirs.patch) |
97 |
sed -i -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \ |
98 |
lib/Frontend/InitHeaderSearch.cpp \ |
99 |
lib/Driver/ToolChains/Darwin.cpp |
91 |
} |
100 |
} |
92 |
|
101 |
|
93 |
check_distribution_components() { |
102 |
check_distribution_components() { |