1 |
commit: feeb7fb577c8f90704acda2a5368e551c01ecbb2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 08:47:02 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 07:34:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feeb7fb5 |
7 |
|
8 |
sys-libs/libcxxabi: Bump to 14.0.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcxxabi/Manifest | 1 + |
13 |
sys-libs/libcxxabi/libcxxabi-14.0.3.ebuild | 130 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 131 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest |
17 |
index 4dfb61c584a9..bf3dff4f0680 100644 |
18 |
--- a/sys-libs/libcxxabi/Manifest |
19 |
+++ b/sys-libs/libcxxabi/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f65f37dd9e4c8888533cfa8c3ccdcf4f108aaab9de23ab0ab987966eb160f2a553a0bdff99461e71ddd5bfcd086090d SHA512 6eb0dc18e2c25935fabfdfc48b0114be0939158dfdef7b85b395fe2e71042672446af0e68750aae003c9847d10d1f63316fe95d3df738d18f249174292b1b9e1 |
22 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
23 |
DIST llvmorg-14.0.1.tar.gz 158074615 BLAKE2B bf80366461580058494eb101646efcd1a8b55a66818a710c2eb8c649bf88c02fe4552cecf4c1c8637a64e7cee8d644bca31aafc804765ed18f2b5e2975dd6c92 SHA512 0a15aa9cfc978a7b03a1659a2affad65ede66d280f5c12bf0beaaf194cd7bdd57ff438b5f40e64c1e1b88f368de99be349e9d30b544d2bbe4a50f0ebed3307f2 |
24 |
+DIST llvmorg-14.0.3.tar.gz 158092596 BLAKE2B ef901df510ec6bc1242595ec330e9c9ee76e696b077d67a8d62b53608c3d18b2f2d7ea3150864e13d9b37a8ce899ebca946ebe72cbc4538700176e20859ddec2 SHA512 511e93fd9b1c414c38fe9e2649679ac0b16cb04f7f7838569d187b04c542a185e364d6db73e96465026e3b2533649eb75ac95507d12514af32b28bdfb66f2646 |
25 |
|
26 |
diff --git a/sys-libs/libcxxabi/libcxxabi-14.0.3.ebuild b/sys-libs/libcxxabi/libcxxabi-14.0.3.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..7d864cba3621 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libcxxabi/libcxxabi-14.0.3.ebuild |
31 |
@@ -0,0 +1,130 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+CMAKE_ECLASS=cmake |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Low level support for a standard C++ library" |
42 |
+HOMEPAGE="https://libcxxabi.llvm.org/" |
43 |
+ |
44 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos" |
47 |
+IUSE="+libunwind static-libs test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ libunwind? ( |
52 |
+ || ( |
53 |
+ >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] |
54 |
+ >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] |
55 |
+ ) |
56 |
+ ) |
57 |
+" |
58 |
+# llvm-6 for new lit options |
59 |
+DEPEND=" |
60 |
+ ${RDEPEND} |
61 |
+ >=sys-devel/llvm-6 |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ !test? ( |
65 |
+ ${PYTHON_DEPS} |
66 |
+ ) |
67 |
+ test? ( |
68 |
+ >=sys-devel/clang-3.9.0 |
69 |
+ $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+LLVM_COMPONENTS=( runtimes libcxx{abi,} llvm/cmake cmake ) |
74 |
+LLVM_TEST_COMPONENTS=( llvm/utils/llvm-lit ) |
75 |
+llvm.org_set_globals |
76 |
+ |
77 |
+python_check_deps() { |
78 |
+ use test || return 0 |
79 |
+ has_version "dev-python/lit[${PYTHON_USEDEP}]" |
80 |
+} |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix |
84 |
+ # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. |
85 |
+ if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
86 |
+ llvm_pkg_setup |
87 |
+ fi |
88 |
+ python-any-r1_pkg_setup |
89 |
+} |
90 |
+ |
91 |
+multilib_src_configure() { |
92 |
+ # link against compiler-rt instead of libgcc if we are using clang with libunwind |
93 |
+ local want_compiler_rt=OFF |
94 |
+ if use libunwind && tc-is-clang; then |
95 |
+ local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
96 |
+ ${LDFLAGS} -print-libgcc-file-name) |
97 |
+ if [[ ${compiler_rt} == *libclang_rt* ]]; then |
98 |
+ want_compiler_rt=ON |
99 |
+ fi |
100 |
+ fi |
101 |
+ |
102 |
+ local libdir=$(get_libdir) |
103 |
+ local mycmakeargs=( |
104 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
105 |
+ -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" |
106 |
+ -DLLVM_INCLUDE_TESTS=OFF |
107 |
+ -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
108 |
+ -DLIBCXXABI_ENABLE_SHARED=ON |
109 |
+ -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) |
110 |
+ -DLIBCXXABI_INCLUDE_TESTS=$(usex test) |
111 |
+ -DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind) |
112 |
+ -DLIBCXXABI_USE_COMPILER_RT=${want_compiler_rt} |
113 |
+ |
114 |
+ # upstream is omitting standard search path for this |
115 |
+ # probably because gcc & clang are bundling their own unwind.h |
116 |
+ -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include |
117 |
+ -DLIBCXXABI_TARGET_TRIPLE="${CHOST}" |
118 |
+ |
119 |
+ -DLIBCXX_LIBDIR_SUFFIX= |
120 |
+ -DLIBCXX_ENABLE_SHARED=ON |
121 |
+ -DLIBCXX_ENABLE_STATIC=OFF |
122 |
+ -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
123 |
+ -DLIBCXX_CXX_ABI=libcxxabi |
124 |
+ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${WORKDIR}"/libcxxabi/include |
125 |
+ -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
126 |
+ -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
127 |
+ -DLIBCXX_HAS_GCC_S_LIB=OFF |
128 |
+ -DLIBCXX_INCLUDE_BENCHMARKS=OFF |
129 |
+ -DLIBCXX_INCLUDE_TESTS=OFF |
130 |
+ -DLIBCXX_TARGET_TRIPLE="${CHOST}" |
131 |
+ ) |
132 |
+ if use test; then |
133 |
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
134 |
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
135 |
+ |
136 |
+ mycmakeargs+=( |
137 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
138 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
139 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
140 |
+ ) |
141 |
+ fi |
142 |
+ cmake_src_configure |
143 |
+} |
144 |
+ |
145 |
+multilib_src_compile() { |
146 |
+ cmake_build cxxabi |
147 |
+} |
148 |
+ |
149 |
+multilib_src_test() { |
150 |
+ local -x LIT_PRESERVES_TMP=1 |
151 |
+ cmake_build check-cxxabi |
152 |
+} |
153 |
+ |
154 |
+multilib_src_install() { |
155 |
+ DESTDIR="${D}" cmake_build install-cxxabi |
156 |
+} |
157 |
+ |
158 |
+multilib_src_install_all() { |
159 |
+ insinto /usr/include/libcxxabi |
160 |
+ doins -r "${WORKDIR}"/libcxxabi/include/. |
161 |
+} |