1 |
commit: 437ad15e2471b5df79a1f237c1d5d05273872237 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 06:35:57 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 11:03:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=437ad15e |
7 |
|
8 |
sys-libs/libcxxabi: Add 16.0.0_pre20221126 snapshot |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcxxabi/Manifest | 1 + |
13 |
.../libcxxabi/libcxxabi-16.0.0_pre20221126.ebuild | 116 +++++++++++++++++++++ |
14 |
2 files changed, 117 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest |
17 |
index e12ba6016e6a..4c3b583f2fd3 100644 |
18 |
--- a/sys-libs/libcxxabi/Manifest |
19 |
+++ b/sys-libs/libcxxabi/Manifest |
20 |
@@ -7,5 +7,6 @@ DIST llvm-project-15.0.4.src.tar.xz.sig 566 BLAKE2B f1a7be65fcce932dc125ae2b498f |
21 |
DIST llvm-project-15.0.5.src.tar.xz 110931004 BLAKE2B d751e3627ee26e60a1a037a4a6cc574a31c4abe038331b86206348ac3ce93a243add2be3a0bbfc2ec5ec3f3562a5b5efea745cb1943c9c9153bc7b0fcf4de22e SHA512 cf2a89ebb6bc9d7e3f1fd09531c84ac9927cdbe5ee13a6fcb8ce4d08e5a9d6d480ad982f62126b9c757beafa283b34f2ba1fbc56223c641e70da2be4627f59a6 |
22 |
DIST llvm-project-15.0.5.src.tar.xz.sig 566 BLAKE2B a6e7204abc912045346a36f2b349e0829a4d5b9efcb230fb0c97caa38d5159ca17ffb47ce0485cbab276a4938ff3a5c05ef9f8b0b75f4c2028d870ee33023431 SHA512 312bc09b54408a9265f8102241089b0f674be0832dd5cb1998ff13dbccbe19324d7060ba2680457118dee96a1ff390b16282677ad825d7230008014ecebe47d5 |
23 |
DIST llvm-project-7b91798a5d3a8432b296778da4efe169012fb7b4.tar.gz 170989337 BLAKE2B 1ab79554a05f8d7a74c0b4bab319c30375475d3fd089764733744fde55c65eb38967cdb19e5b0211a1543549c2bfc3c0f3d43facb7e041f51988e8a65e4448f3 SHA512 4c4d3a748b967cbc75372d0db87ac48d32271a54047ddeeb028d565fa6b7004b2ab3abd82d8ff4621e50c9410fce28c3044550cc94aaf0f6e4f672498f47aba8 |
24 |
+DIST llvm-project-959c9cc7acf4d0aa433f2436e2a45b782e18022a.tar.gz 171575300 BLAKE2B 090d41a8913f8e061d297e66ca653d95e18b8da744464d7085d7a199c0a444753a82b6ff6503e142aec81be01b419323cdbe3709497738df74afa886d69fd63d SHA512 fc3b26e148ead7a07b4d1509909a42712a43b179da435b052c26a237b0d2ae88c3c8d76eaa93c415be1ed0f0b5fb55e0ad92f427a18d70bc9634a6e7d1b6a4d9 |
25 |
DIST llvm-project-f6f1fd443f48f417de9dfe23353055f1b20d87ef.tar.gz 170625743 BLAKE2B 3add45d7e2f26659f9602b5ccc034033610921ebeb2d6d69d6f5a3d1e3af224d3f5fd42e411d1fe0d5f8249c2ad995d41a236a87eba5a72ea9b20c112faa4c2f SHA512 2b57132d156f3d6d96802f617fff3eec0df6a3b5077ddcc4f31c87829e617f3065074d80e9d26c8c1c64322e76a09321fdfc8ae1d7a84f5da9f8606125e3b635 |
26 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
27 |
|
28 |
diff --git a/sys-libs/libcxxabi/libcxxabi-16.0.0_pre20221126.ebuild b/sys-libs/libcxxabi/libcxxabi-16.0.0_pre20221126.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..8d8f8212d31e |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/libcxxabi/libcxxabi-16.0.0_pre20221126.ebuild |
33 |
@@ -0,0 +1,116 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8..11} ) |
40 |
+inherit cmake-multilib flag-o-matic llvm llvm.org python-any-r1 \ |
41 |
+ toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Low level support for a standard C++ library" |
44 |
+HOMEPAGE="https://libcxxabi.llvm.org/" |
45 |
+ |
46 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="" |
49 |
+IUSE="+clang static-libs test" |
50 |
+REQUIRED_USE="test? ( clang )" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+# in 15.x, cxxabi.h is moving from libcxx to libcxxabi |
54 |
+RDEPEND+=" |
55 |
+ !<sys-libs/libcxx-15 |
56 |
+" |
57 |
+DEPEND=" |
58 |
+ ${RDEPEND} |
59 |
+ sys-devel/llvm:${LLVM_MAJOR} |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ clang? ( |
63 |
+ sys-devel/clang:${LLVM_MAJOR} |
64 |
+ ) |
65 |
+ !test? ( |
66 |
+ ${PYTHON_DEPS} |
67 |
+ ) |
68 |
+ test? ( |
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 |
+ python_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_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup |
87 |
+ fi |
88 |
+ python-any-r1_pkg_setup |
89 |
+} |
90 |
+ |
91 |
+multilib_src_configure() { |
92 |
+ if use clang; then |
93 |
+ local -x CC=${CHOST}-clang |
94 |
+ local -x CXX=${CHOST}-clang++ |
95 |
+ strip-unsupported-flags |
96 |
+ fi |
97 |
+ |
98 |
+ # link to compiler-rt |
99 |
+ local use_compiler_rt=OFF |
100 |
+ [[ $(tc-get-c-rtlib) == compiler-rt ]] && use_compiler_rt=ON |
101 |
+ |
102 |
+ local libdir=$(get_libdir) |
103 |
+ local mycmakeargs=( |
104 |
+ -DCMAKE_CXX_COMPILER_TARGET="${CHOST}" |
105 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
106 |
+ -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" |
107 |
+ -DLLVM_INCLUDE_TESTS=OFF |
108 |
+ -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
109 |
+ -DLIBCXXABI_ENABLE_SHARED=ON |
110 |
+ -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) |
111 |
+ -DLIBCXXABI_INCLUDE_TESTS=$(usex test) |
112 |
+ -DLIBCXXABI_USE_COMPILER_RT=${use_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 |
+ |
118 |
+ -DLIBCXX_LIBDIR_SUFFIX= |
119 |
+ -DLIBCXX_ENABLE_SHARED=ON |
120 |
+ -DLIBCXX_ENABLE_STATIC=OFF |
121 |
+ -DLIBCXX_CXX_ABI=libcxxabi |
122 |
+ -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
123 |
+ -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
124 |
+ -DLIBCXX_HAS_GCC_S_LIB=OFF |
125 |
+ -DLIBCXX_INCLUDE_BENCHMARKS=OFF |
126 |
+ -DLIBCXX_INCLUDE_TESTS=OFF |
127 |
+ ) |
128 |
+ if use test; then |
129 |
+ mycmakeargs+=( |
130 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
131 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
132 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
133 |
+ ) |
134 |
+ fi |
135 |
+ cmake_src_configure |
136 |
+} |
137 |
+ |
138 |
+multilib_src_compile() { |
139 |
+ cmake_build cxxabi |
140 |
+} |
141 |
+ |
142 |
+multilib_src_test() { |
143 |
+ local -x LIT_PRESERVES_TMP=1 |
144 |
+ cmake_build check-cxxabi |
145 |
+} |
146 |
+ |
147 |
+multilib_src_install() { |
148 |
+ DESTDIR="${D}" cmake_build install-cxxabi |
149 |
+} |