1 |
commit: 9e69f927a1f625693009b6b281ed3d2b57749375 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 19 19:48:44 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 19 20:10:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e69f927 |
7 |
|
8 |
sys-libs/llvm-libunwind: Remove 7.0.9999 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../llvm-libunwind/llvm-libunwind-7.0.9999.ebuild | 146 --------------------- |
13 |
1 file changed, 146 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-7.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-7.0.9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index 463589249ac..00000000000 |
18 |
--- a/sys-libs/llvm-libunwind/llvm-libunwind-7.0.9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,146 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
27 |
-# (needed due to CMAKE_BUILD_TYPE != Gentoo) |
28 |
-CMAKE_MIN_VERSION=3.7.0-r1 |
29 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
30 |
-inherit cmake-multilib git-r3 llvm multiprocessing python-any-r1 |
31 |
- |
32 |
-DESCRIPTION="C++ runtime stack unwinder from LLVM" |
33 |
-HOMEPAGE="https://github.com/llvm-mirror/libunwind" |
34 |
-SRC_URI="" |
35 |
-EGIT_REPO_URI="https://git.llvm.org/git/libunwind.git |
36 |
- https://github.com/llvm-mirror/libunwind.git" |
37 |
-EGIT_BRANCH="release_70" |
38 |
- |
39 |
-LICENSE="|| ( UoI-NCSA MIT )" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="" |
42 |
-IUSE="debug +static-libs test" |
43 |
-RESTRICT="!test? ( test )" |
44 |
- |
45 |
-RDEPEND="!sys-libs/libunwind" |
46 |
-# llvm-6 for new lit options |
47 |
-DEPEND=" |
48 |
- >=sys-devel/llvm-6 |
49 |
- test? ( >=sys-devel/clang-3.9.0 |
50 |
- $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" |
51 |
- |
52 |
-# least intrusive of all |
53 |
-CMAKE_BUILD_TYPE=RelWithDebInfo |
54 |
- |
55 |
-python_check_deps() { |
56 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
57 |
-} |
58 |
- |
59 |
-pkg_setup() { |
60 |
- use test && python-any-r1_pkg_setup |
61 |
-} |
62 |
- |
63 |
-src_unpack() { |
64 |
- if use test; then |
65 |
- git-r3_fetch "https://git.llvm.org/git/libcxx.git |
66 |
- https://github.com/llvm-mirror/libcxx.git" |
67 |
- git-r3_fetch "https://git.llvm.org/git/libcxxabi.git |
68 |
- https://github.com/llvm-mirror/libcxxabi.git" |
69 |
- fi |
70 |
- git-r3_fetch |
71 |
- |
72 |
- if use test; then |
73 |
- git-r3_checkout https://llvm.org/git/libcxx.git \ |
74 |
- "${WORKDIR}"/libcxx |
75 |
- git-r3_checkout https://llvm.org/git/libcxxabi.git \ |
76 |
- "${WORKDIR}"/libcxxabi |
77 |
- fi |
78 |
- git-r3_checkout |
79 |
-} |
80 |
- |
81 |
-multilib_src_configure() { |
82 |
- local libdir=$(get_libdir) |
83 |
- |
84 |
- local mycmakeargs=( |
85 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
86 |
- -DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug) |
87 |
- -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs) |
88 |
- -DLLVM_INCLUDE_TESTS=$(usex test) |
89 |
- |
90 |
- # support non-native unwinding; given it's small enough, |
91 |
- # enable it unconditionally |
92 |
- -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON |
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 |
- -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}"/libcxx |
104 |
- ) |
105 |
- fi |
106 |
- |
107 |
- cmake-utils_src_configure |
108 |
-} |
109 |
- |
110 |
-build_libcxxabi() { |
111 |
- local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/$(get_libdir)" |
112 |
- local CMAKE_USE_DIR=${WORKDIR}/libcxxabi |
113 |
- local BUILD_DIR=${BUILD_DIR}/libcxxabi |
114 |
- local mycmakeargs=( |
115 |
- -DLIBCXXABI_LIBDIR_SUFFIX= |
116 |
- -DLIBCXXABI_ENABLE_SHARED=ON |
117 |
- -DLIBCXXABI_ENABLE_STATIC=OFF |
118 |
- -DLIBCXXABI_USE_LLVM_UNWINDER=ON |
119 |
- -DLIBCXXABI_INCLUDE_TESTS=OFF |
120 |
- |
121 |
- -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include |
122 |
- -DLIBCXXABI_LIBUNWIND_INCLUDES="${S}"/include |
123 |
- ) |
124 |
- |
125 |
- cmake-utils_src_configure |
126 |
- cmake-utils_src_compile |
127 |
-} |
128 |
- |
129 |
-build_libcxx() { |
130 |
- local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/libcxxabi/lib -L${BUILD_DIR}/$(get_libdir)" |
131 |
- local CMAKE_USE_DIR=${WORKDIR}/libcxx |
132 |
- local BUILD_DIR=${BUILD_DIR}/libcxx |
133 |
- local mycmakeargs=( |
134 |
- -DLIBCXX_LIBDIR_SUFFIX= |
135 |
- -DLIBCXX_ENABLE_SHARED=ON |
136 |
- -DLIBCXX_ENABLE_STATIC=OFF |
137 |
- -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
138 |
- -DLIBCXXABI_USE_LLVM_UNWINDER=ON |
139 |
- -DLIBCXX_CXX_ABI=libcxxabi |
140 |
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${WORKDIR}"/libcxxabi/include |
141 |
- -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
142 |
- -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
143 |
- -DLIBCXX_HAS_GCC_S_LIB=OFF |
144 |
- -DLIBCXX_INCLUDE_TESTS=OFF |
145 |
- ) |
146 |
- |
147 |
- cmake-utils_src_configure |
148 |
- cmake-utils_src_compile |
149 |
-} |
150 |
- |
151 |
-multilib_src_test() { |
152 |
- # build local copies of libc++ & libc++abi for testing to avoid |
153 |
- # circular deps |
154 |
- build_libcxxabi |
155 |
- build_libcxx |
156 |
- mv "${BUILD_DIR}"/libcxx*/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die |
157 |
- |
158 |
- cmake-utils_src_make check-unwind |
159 |
-} |
160 |
- |
161 |
-multilib_src_install() { |
162 |
- cmake-utils_src_install |
163 |
- |
164 |
- # install headers like sys-libs/libunwind |
165 |
- doheader "${S}"/include/*.h |
166 |
-} |