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