1 |
commit: 01f630d52893d865d1fd3546a4a95007f43f4d80 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 14 08:57:03 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 14 09:55:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01f630d5 |
7 |
|
8 |
sys-libs/libcxxabi: Bump to 9.0.1_rc3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcxxabi/Manifest | 1 + |
13 |
sys-libs/libcxxabi/libcxxabi-9.0.1_rc3.ebuild | 119 ++++++++++++++++++++++++++ |
14 |
2 files changed, 120 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest |
17 |
index 3087b4afe82..123b1b6ac9a 100644 |
18 |
--- a/sys-libs/libcxxabi/Manifest |
19 |
+++ b/sys-libs/libcxxabi/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST libcxxabi-7.1.0.src.tar.xz 535180 BLAKE2B aa5952e3ca80f7ce2a0a79f3eaf385223 |
21 |
DIST libcxxabi-8.0.1.src.tar.xz 538356 BLAKE2B 52328c5890c9b9271877b953be30cc39be4758101e6b91ee45f06c81e960089523e80b83eb5c354336e4e0a140f7554640acf7b2d4fa619113f705108a314418 SHA512 577cfcb04ebb29ee84d35ed31aa8fecb28fc74b07ef7ff298f0fe2d440f823def73e092359c41d8d8600e6df18f55224ed89674d403c5ae56a7d7973487b8734 |
22 |
DIST libcxxabi-9.0.0.src.tar.xz 552088 BLAKE2B 1b8f2bab00437a223f613cbecd9171f1bc88d0ec2d6096776d0295333c0176ddbe13178d433bed2dc70821b905152fcd30b228ae1dbd3e8846f3b92e7630db7e SHA512 261f32f61814728ce61c830c80192a55e1ba03c50f49712e208052444ac3acc6d7efcbd7b76a505292f9233aad23b00180aca4e72326ae1244385b39f226e625 |
23 |
DIST llvmorg-9.0.1-rc2.tar.gz 113203311 BLAKE2B 6e426060853e1587febedb75189444a1451236b713f800a4f3401c54318e48b0f5e0c484e9e4ef261faceed9b43b445a4153b061d4dadcc617047f9320b4f56a SHA512 fececd9365645920b9afdad1e94d5e10553ad4a39d84b3ac811b86014c395d51f7e4dabe54bb095a99481400c408bee3c9a2044168724d5e094e3258587a5d2c |
24 |
+DIST llvmorg-9.0.1-rc3.tar.gz 113205740 BLAKE2B 3ca81e812833ecc2ac1bacfdeb86f54609ee125ba7390ce6af0113e949496149102360f35a9a0194dff93fb5cb6ade40a68382a03a7e55771a13198abb7ca9de SHA512 ea56a4ee57aacdd00a1d6551cdc768ecce3124a0eb6a9d09fe060bb147019a5119b2a9eaca576474be42e0296293daa923edd86dadb6759df0c2d7fc7a74f9f1 |
25 |
|
26 |
diff --git a/sys-libs/libcxxabi/libcxxabi-9.0.1_rc3.ebuild b/sys-libs/libcxxabi/libcxxabi-9.0.1_rc3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3d656a49cf7 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libcxxabi/libcxxabi-9.0.1_rc3.ebuild |
31 |
@@ -0,0 +1,119 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
38 |
+inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="Low level support for a standard C++ library" |
41 |
+HOMEPAGE="https://libcxxabi.llvm.org/" |
42 |
+# libcxx is needed uncondtionally for the headers |
43 |
+LLVM_COMPONENTS=( libcxx{abi,} ) |
44 |
+llvm.org_set_globals |
45 |
+ |
46 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
+IUSE="+libunwind +static-libs test elibc_musl" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ libunwind? ( |
54 |
+ || ( |
55 |
+ >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] |
56 |
+ >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] |
57 |
+ ) |
58 |
+ )" |
59 |
+# llvm-6 for new lit options |
60 |
+DEPEND="${RDEPEND} |
61 |
+ >=sys-devel/llvm-6" |
62 |
+BDEPEND=" |
63 |
+ test? ( >=sys-devel/clang-3.9.0 |
64 |
+ $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" |
65 |
+ |
66 |
+# least intrusive of all |
67 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
68 |
+ |
69 |
+python_check_deps() { |
70 |
+ has_version "dev-python/lit[${PYTHON_USEDEP}]" |
71 |
+} |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ llvm_pkg_setup |
75 |
+ use test && python-any-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+multilib_src_configure() { |
79 |
+ # link against compiler-rt instead of libgcc if we are using clang with libunwind |
80 |
+ local want_compiler_rt=OFF |
81 |
+ if use libunwind && tc-is-clang; then |
82 |
+ local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
83 |
+ ${LDFLAGS} -print-libgcc-file-name) |
84 |
+ if [[ ${compiler_rt} == *libclang_rt* ]]; then |
85 |
+ want_compiler_rt=ON |
86 |
+ fi |
87 |
+ fi |
88 |
+ |
89 |
+ local libdir=$(get_libdir) |
90 |
+ local mycmakeargs=( |
91 |
+ -DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib} |
92 |
+ -DLIBCXXABI_ENABLE_SHARED=ON |
93 |
+ -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) |
94 |
+ -DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind) |
95 |
+ -DLIBCXXABI_INCLUDE_TESTS=$(usex test) |
96 |
+ -DLIBCXXABI_USE_COMPILER_RT=${want_compiler_rt} |
97 |
+ |
98 |
+ -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include |
99 |
+ # upstream is omitting standard search path for this |
100 |
+ # probably because gcc & clang are bundling their own unwind.h |
101 |
+ -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include |
102 |
+ ) |
103 |
+ if use test; then |
104 |
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
105 |
+ local jobs=${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")} |
106 |
+ |
107 |
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
108 |
+ |
109 |
+ mycmakeargs+=( |
110 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
111 |
+ -DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}" |
112 |
+ ) |
113 |
+ fi |
114 |
+ cmake-utils_src_configure |
115 |
+} |
116 |
+ |
117 |
+build_libcxx() { |
118 |
+ local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/$(get_libdir)" |
119 |
+ local CMAKE_USE_DIR=${WORKDIR}/libcxx |
120 |
+ local BUILD_DIR=${BUILD_DIR}/libcxx |
121 |
+ local mycmakeargs=( |
122 |
+ -DLIBCXX_LIBDIR_SUFFIX= |
123 |
+ -DLIBCXX_ENABLE_SHARED=OFF |
124 |
+ -DLIBCXX_ENABLE_STATIC=ON |
125 |
+ -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
126 |
+ -DLIBCXX_CXX_ABI=libcxxabi |
127 |
+ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${S}"/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_TESTS=OFF |
132 |
+ ) |
133 |
+ |
134 |
+ cmake-utils_src_configure |
135 |
+ cmake-utils_src_compile |
136 |
+} |
137 |
+ |
138 |
+multilib_src_test() { |
139 |
+ # build a local copy of libc++ for testing to avoid circular dep |
140 |
+ build_libcxx |
141 |
+ mv "${BUILD_DIR}"/libcxx/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die |
142 |
+ |
143 |
+ local -x LIT_PRESERVES_TMP=1 |
144 |
+ cmake-utils_src_make check-libcxxabi |
145 |
+} |
146 |
+ |
147 |
+multilib_src_install_all() { |
148 |
+ insinto /usr/include/libcxxabi |
149 |
+ doins -r include/. |
150 |
+} |