1 |
commit: 3e3781dea359e56b22e0b66a120006f5fb6a4cf7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 15 20:32:19 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 15 20:32:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e3781de |
7 |
|
8 |
sys-libs/libcxxabi: Drop 6.0.9999 |
9 |
|
10 |
sys-libs/libcxxabi/libcxxabi-6.0.9999.ebuild | 122 --------------------------- |
11 |
1 file changed, 122 deletions(-) |
12 |
|
13 |
diff --git a/sys-libs/libcxxabi/libcxxabi-6.0.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-6.0.9999.ebuild |
14 |
deleted file mode 100644 |
15 |
index 32451233234..00000000000 |
16 |
--- a/sys-libs/libcxxabi/libcxxabi-6.0.9999.ebuild |
17 |
+++ /dev/null |
18 |
@@ -1,122 +0,0 @@ |
19 |
-# Copyright 1999-2018 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
- |
22 |
-EAPI=6 |
23 |
- |
24 |
-: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
25 |
-# (needed due to CMAKE_BUILD_TYPE != Gentoo) |
26 |
-CMAKE_MIN_VERSION=3.7.0-r1 |
27 |
-PYTHON_COMPAT=( python2_7 ) |
28 |
- |
29 |
-inherit cmake-multilib git-r3 llvm multiprocessing python-any-r1 |
30 |
- |
31 |
-DESCRIPTION="Low level support for a standard C++ library" |
32 |
-HOMEPAGE="https://libcxxabi.llvm.org/" |
33 |
-SRC_URI="" |
34 |
-EGIT_REPO_URI="https://git.llvm.org/git/libcxxabi.git |
35 |
- https://github.com/llvm-mirror/libcxxabi.git" |
36 |
-EGIT_BRANCH="release_60" |
37 |
- |
38 |
-LICENSE="|| ( UoI-NCSA MIT )" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="" |
41 |
-IUSE="+libunwind +static-libs test elibc_musl" |
42 |
-RESTRICT="!test? ( test )" |
43 |
- |
44 |
-RDEPEND=" |
45 |
- libunwind? ( |
46 |
- || ( |
47 |
- >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] |
48 |
- >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] |
49 |
- ) |
50 |
- )" |
51 |
-# llvm-6 for new lit options |
52 |
-DEPEND="${RDEPEND} |
53 |
- >=sys-devel/llvm-6 |
54 |
- test? ( >=sys-devel/clang-3.9.0 |
55 |
- $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" |
56 |
- |
57 |
-# least intrusive of all |
58 |
-CMAKE_BUILD_TYPE=RelWithDebInfo |
59 |
- |
60 |
-python_check_deps() { |
61 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
62 |
-} |
63 |
- |
64 |
-pkg_setup() { |
65 |
- llvm_pkg_setup |
66 |
- use test && python-any-r1_pkg_setup |
67 |
-} |
68 |
- |
69 |
-src_unpack() { |
70 |
- # we need the headers |
71 |
- git-r3_fetch "https://git.llvm.org/git/libcxx.git |
72 |
- https://github.com/llvm-mirror/libcxx.git" |
73 |
- git-r3_fetch |
74 |
- |
75 |
- git-r3_checkout https://llvm.org/git/libcxx.git \ |
76 |
- "${WORKDIR}"/libcxx '' |
77 |
- git-r3_checkout |
78 |
-} |
79 |
- |
80 |
-multilib_src_configure() { |
81 |
- local libdir=$(get_libdir) |
82 |
- local mycmakeargs=( |
83 |
- -DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib} |
84 |
- -DLIBCXXABI_ENABLE_SHARED=ON |
85 |
- -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) |
86 |
- -DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind) |
87 |
- -DLIBCXXABI_INCLUDE_TESTS=$(usex test) |
88 |
- |
89 |
- -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include |
90 |
- # upstream is omitting standard search path for this |
91 |
- # probably because gcc & clang are bundling their own unwind.h |
92 |
- -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include |
93 |
- ) |
94 |
- if use test; then |
95 |
- local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
96 |
- local jobs=${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")} |
97 |
- |
98 |
- [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
99 |
- |
100 |
- mycmakeargs+=( |
101 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
102 |
- -DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}" |
103 |
- ) |
104 |
- fi |
105 |
- cmake-utils_src_configure |
106 |
-} |
107 |
- |
108 |
-build_libcxx() { |
109 |
- local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/$(get_libdir)" |
110 |
- local CMAKE_USE_DIR=${WORKDIR}/libcxx |
111 |
- local BUILD_DIR=${BUILD_DIR}/libcxx |
112 |
- local mycmakeargs=( |
113 |
- -DLIBCXX_LIBDIR_SUFFIX= |
114 |
- -DLIBCXX_ENABLE_SHARED=ON |
115 |
- -DLIBCXX_ENABLE_STATIC=OFF |
116 |
- -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
117 |
- -DLIBCXX_CXX_ABI=libcxxabi |
118 |
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${S}"/include |
119 |
- -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
120 |
- -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
121 |
- -DLIBCXX_HAS_GCC_S_LIB=OFF |
122 |
- -DLIBCXX_INCLUDE_TESTS=OFF |
123 |
- ) |
124 |
- |
125 |
- cmake-utils_src_configure |
126 |
- cmake-utils_src_compile |
127 |
-} |
128 |
- |
129 |
-multilib_src_test() { |
130 |
- # build a local copy of libc++ for testing to avoid circular dep |
131 |
- build_libcxx |
132 |
- mv "${BUILD_DIR}"/libcxx/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die |
133 |
- |
134 |
- cmake-utils_src_make check-libcxxabi |
135 |
-} |
136 |
- |
137 |
-multilib_src_install_all() { |
138 |
- insinto /usr/include/libcxxabi |
139 |
- doins -r include/. |
140 |
-} |