1 |
commit: f4614d59df979fb2618c5fdd2d04ef4eae3e9126 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 11:07:09 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 11:07:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4614d59 |
7 |
|
8 |
sys-devel/clang: Remove 16.0.0_pre20221113 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-devel/clang/Manifest | 1 - |
13 |
sys-devel/clang/clang-16.0.0_pre20221113.ebuild | 455 ------------------------ |
14 |
2 files changed, 456 deletions(-) |
15 |
|
16 |
diff --git a/sys-devel/clang/Manifest b/sys-devel/clang/Manifest |
17 |
index 48e7ab4a58f9..ac17e9362b97 100644 |
18 |
--- a/sys-devel/clang/Manifest |
19 |
+++ b/sys-devel/clang/Manifest |
20 |
@@ -20,5 +20,4 @@ DIST llvm-project-15.0.5.src.tar.xz 110931004 BLAKE2B d751e3627ee26e60a1a037a4a6 |
21 |
DIST llvm-project-15.0.5.src.tar.xz.sig 566 BLAKE2B a6e7204abc912045346a36f2b349e0829a4d5b9efcb230fb0c97caa38d5159ca17ffb47ce0485cbab276a4938ff3a5c05ef9f8b0b75f4c2028d870ee33023431 SHA512 312bc09b54408a9265f8102241089b0f674be0832dd5cb1998ff13dbccbe19324d7060ba2680457118dee96a1ff390b16282677ad825d7230008014ecebe47d5 |
22 |
DIST llvm-project-7b91798a5d3a8432b296778da4efe169012fb7b4.tar.gz 170989337 BLAKE2B 1ab79554a05f8d7a74c0b4bab319c30375475d3fd089764733744fde55c65eb38967cdb19e5b0211a1543549c2bfc3c0f3d43facb7e041f51988e8a65e4448f3 SHA512 4c4d3a748b967cbc75372d0db87ac48d32271a54047ddeeb028d565fa6b7004b2ab3abd82d8ff4621e50c9410fce28c3044550cc94aaf0f6e4f672498f47aba8 |
23 |
DIST llvm-project-959c9cc7acf4d0aa433f2436e2a45b782e18022a.tar.gz 171575300 BLAKE2B 090d41a8913f8e061d297e66ca653d95e18b8da744464d7085d7a199c0a444753a82b6ff6503e142aec81be01b419323cdbe3709497738df74afa886d69fd63d SHA512 fc3b26e148ead7a07b4d1509909a42712a43b179da435b052c26a237b0d2ae88c3c8d76eaa93c415be1ed0f0b5fb55e0ad92f427a18d70bc9634a6e7d1b6a4d9 |
24 |
-DIST llvm-project-f6f1fd443f48f417de9dfe23353055f1b20d87ef.tar.gz 170625743 BLAKE2B 3add45d7e2f26659f9602b5ccc034033610921ebeb2d6d69d6f5a3d1e3af224d3f5fd42e411d1fe0d5f8249c2ad995d41a236a87eba5a72ea9b20c112faa4c2f SHA512 2b57132d156f3d6d96802f617fff3eec0df6a3b5077ddcc4f31c87829e617f3065074d80e9d26c8c1c64322e76a09321fdfc8ae1d7a84f5da9f8606125e3b635 |
25 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
26 |
|
27 |
diff --git a/sys-devel/clang/clang-16.0.0_pre20221113.ebuild b/sys-devel/clang/clang-16.0.0_pre20221113.ebuild |
28 |
deleted file mode 100644 |
29 |
index cff08610ab49..000000000000 |
30 |
--- a/sys-devel/clang/clang-16.0.0_pre20221113.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,455 +0,0 @@ |
33 |
-# Copyright 1999-2022 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=8 |
37 |
- |
38 |
-PYTHON_COMPAT=( python3_{8..11} ) |
39 |
-inherit cmake llvm llvm.org multilib multilib-minimal \ |
40 |
- prefix python-single-r1 toolchain-funcs |
41 |
- |
42 |
-DESCRIPTION="C language family frontend for LLVM" |
43 |
-HOMEPAGE="https://llvm.org/" |
44 |
- |
45 |
-# MSVCSetupApi.h: MIT |
46 |
-# sorttable.js: MIT |
47 |
- |
48 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA MIT" |
49 |
-SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" |
50 |
-KEYWORDS="" |
51 |
-IUSE="debug doc +extra +pie +static-analyzer test xml" |
52 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
53 |
-RESTRICT="!test? ( test )" |
54 |
- |
55 |
-DEPEND=" |
56 |
- ~sys-devel/llvm-${PV}:${LLVM_MAJOR}=[debug=,${MULTILIB_USEDEP}] |
57 |
- static-analyzer? ( dev-lang/perl:* ) |
58 |
- xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] ) |
59 |
-" |
60 |
- |
61 |
-RDEPEND=" |
62 |
- ${PYTHON_DEPS} |
63 |
- ${DEPEND} |
64 |
- >=sys-devel/clang-common-${PV} |
65 |
- ~sys-devel/clang-runtime-${PV} |
66 |
-" |
67 |
-BDEPEND=" |
68 |
- ${PYTHON_DEPS} |
69 |
- >=dev-util/cmake-3.16 |
70 |
- doc? ( $(python_gen_cond_dep ' |
71 |
- dev-python/recommonmark[${PYTHON_USEDEP}] |
72 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
73 |
- ') ) |
74 |
- xml? ( virtual/pkgconfig ) |
75 |
-" |
76 |
-PDEPEND=" |
77 |
- sys-devel/clang-toolchain-symlinks:${LLVM_MAJOR} |
78 |
-" |
79 |
- |
80 |
-LLVM_COMPONENTS=( |
81 |
- clang clang-tools-extra cmake |
82 |
- llvm/lib/Transforms/Hello |
83 |
-) |
84 |
-LLVM_MANPAGES=1 |
85 |
-LLVM_TEST_COMPONENTS=( |
86 |
- llvm/lib/Testing/Support |
87 |
- llvm/utils |
88 |
- third-party |
89 |
-) |
90 |
-LLVM_PATCHSET=9999-r4 |
91 |
-LLVM_USE_TARGETS=llvm |
92 |
-llvm.org_set_globals |
93 |
- |
94 |
-# Multilib notes: |
95 |
-# 1. ABI_* flags control ABIs libclang* is built for only. |
96 |
-# 2. clang is always capable of compiling code for all ABIs for enabled |
97 |
-# target. However, you will need appropriate crt* files (installed |
98 |
-# e.g. by sys-devel/gcc and sys-libs/glibc). |
99 |
-# 3. ${CHOST}-clang wrappers are always installed for all ABIs included |
100 |
-# in the current profile (i.e. alike supported by sys-devel/gcc). |
101 |
-# |
102 |
-# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need |
103 |
-# multilib clang* libraries (not runtime, not wrappers). |
104 |
- |
105 |
-pkg_setup() { |
106 |
- LLVM_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup |
107 |
- python-single-r1_pkg_setup |
108 |
-} |
109 |
- |
110 |
-src_prepare() { |
111 |
- # create extra parent dir for relative CLANG_RESOURCE_DIR access |
112 |
- mkdir -p x/y || die |
113 |
- BUILD_DIR=${WORKDIR}/x/y/clang |
114 |
- |
115 |
- llvm.org_src_prepare |
116 |
- |
117 |
- # add Gentoo Portage Prefix for Darwin (see prefix-dirs.patch) |
118 |
- eprefixify \ |
119 |
- lib/Lex/InitHeaderSearch.cpp \ |
120 |
- lib/Driver/ToolChains/Darwin.cpp || die |
121 |
-} |
122 |
- |
123 |
-check_distribution_components() { |
124 |
- if [[ ${CMAKE_MAKEFILE_GENERATOR} == ninja ]]; then |
125 |
- local all_targets=() my_targets=() l |
126 |
- cd "${BUILD_DIR}" || die |
127 |
- |
128 |
- while read -r l; do |
129 |
- if [[ ${l} == install-*-stripped:* ]]; then |
130 |
- l=${l#install-} |
131 |
- l=${l%%-stripped*} |
132 |
- |
133 |
- case ${l} in |
134 |
- # meta-targets |
135 |
- clang-libraries|distribution) |
136 |
- continue |
137 |
- ;; |
138 |
- # tools |
139 |
- clang|clangd|clang-*) |
140 |
- ;; |
141 |
- # static libraries |
142 |
- clang*|findAllSymbols) |
143 |
- continue |
144 |
- ;; |
145 |
- # conditional to USE=doc |
146 |
- docs-clang-html|docs-clang-tools-html) |
147 |
- use doc || continue |
148 |
- ;; |
149 |
- esac |
150 |
- |
151 |
- all_targets+=( "${l}" ) |
152 |
- fi |
153 |
- done < <(${NINJA} -t targets all) |
154 |
- |
155 |
- while read -r l; do |
156 |
- my_targets+=( "${l}" ) |
157 |
- done < <(get_distribution_components $"\n") |
158 |
- |
159 |
- local add=() remove=() |
160 |
- for l in "${all_targets[@]}"; do |
161 |
- if ! has "${l}" "${my_targets[@]}"; then |
162 |
- add+=( "${l}" ) |
163 |
- fi |
164 |
- done |
165 |
- for l in "${my_targets[@]}"; do |
166 |
- if ! has "${l}" "${all_targets[@]}"; then |
167 |
- remove+=( "${l}" ) |
168 |
- fi |
169 |
- done |
170 |
- |
171 |
- if [[ ${#add[@]} -gt 0 || ${#remove[@]} -gt 0 ]]; then |
172 |
- eqawarn "get_distribution_components() is outdated!" |
173 |
- eqawarn " Add: ${add[*]}" |
174 |
- eqawarn "Remove: ${remove[*]}" |
175 |
- fi |
176 |
- cd - >/dev/null || die |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-get_distribution_components() { |
181 |
- local sep=${1-;} |
182 |
- |
183 |
- local out=( |
184 |
- # common stuff |
185 |
- clang-cmake-exports |
186 |
- clang-headers |
187 |
- clang-resource-headers |
188 |
- libclang-headers |
189 |
- |
190 |
- aarch64-resource-headers |
191 |
- arm-common-resource-headers |
192 |
- arm-resource-headers |
193 |
- core-resource-headers |
194 |
- cuda-resource-headers |
195 |
- hexagon-resource-headers |
196 |
- hip-resource-headers |
197 |
- hlsl-resource-headers |
198 |
- mips-resource-headers |
199 |
- opencl-resource-headers |
200 |
- openmp-resource-headers |
201 |
- ppc-htm-resource-headers |
202 |
- ppc-resource-headers |
203 |
- riscv-resource-headers |
204 |
- systemz-resource-headers |
205 |
- utility-resource-headers |
206 |
- ve-resource-headers |
207 |
- webassembly-resource-headers |
208 |
- windows-resource-headers |
209 |
- x86-resource-headers |
210 |
- |
211 |
- # libs |
212 |
- clang-cpp |
213 |
- libclang |
214 |
- ) |
215 |
- |
216 |
- if multilib_is_native_abi; then |
217 |
- out+=( |
218 |
- # common stuff |
219 |
- bash-autocomplete |
220 |
- libclang-python-bindings |
221 |
- |
222 |
- # tools |
223 |
- c-index-test |
224 |
- clang |
225 |
- clang-format |
226 |
- clang-offload-bundler |
227 |
- clang-offload-packager |
228 |
- clang-refactor |
229 |
- clang-repl |
230 |
- clang-rename |
231 |
- clang-scan-deps |
232 |
- diagtool |
233 |
- hmaptool |
234 |
- ) |
235 |
- |
236 |
- if use extra; then |
237 |
- out+=( |
238 |
- # extra tools |
239 |
- clang-apply-replacements |
240 |
- clang-change-namespace |
241 |
- clang-doc |
242 |
- clang-include-cleaner |
243 |
- clang-include-fixer |
244 |
- clang-move |
245 |
- clang-pseudo |
246 |
- clang-query |
247 |
- clang-reorder-fields |
248 |
- clang-tidy |
249 |
- clang-tidy-headers |
250 |
- clangd |
251 |
- find-all-symbols |
252 |
- modularize |
253 |
- pp-trace |
254 |
- ) |
255 |
- fi |
256 |
- |
257 |
- if llvm_are_manpages_built; then |
258 |
- out+=( docs-clang-man ) |
259 |
- use extra && out+=( docs-clang-tools-man ) |
260 |
- fi |
261 |
- |
262 |
- if use doc; then |
263 |
- out+=( docs-clang-html ) |
264 |
- use extra && out+=( docs-clang-tools-html ) |
265 |
- fi |
266 |
- |
267 |
- use static-analyzer && out+=( |
268 |
- clang-check |
269 |
- clang-extdef-mapping |
270 |
- scan-build |
271 |
- scan-build-py |
272 |
- scan-view |
273 |
- ) |
274 |
- fi |
275 |
- |
276 |
- printf "%s${sep}" "${out[@]}" |
277 |
-} |
278 |
- |
279 |
-multilib_src_configure() { |
280 |
- local mycmakeargs=( |
281 |
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" |
282 |
- -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/share/man" |
283 |
- -DCLANG_CONFIG_FILE_SYSTEM_DIR="${EPREFIX}/etc/clang" |
284 |
- # relative to bindir |
285 |
- -DCLANG_RESOURCE_DIR="../../../../lib/clang/${LLVM_MAJOR}" |
286 |
- |
287 |
- -DBUILD_SHARED_LIBS=OFF |
288 |
- -DCLANG_LINK_CLANG_DYLIB=ON |
289 |
- -DLLVM_DISTRIBUTION_COMPONENTS=$(get_distribution_components) |
290 |
- -DCLANG_INCLUDE_TESTS=$(usex test) |
291 |
- |
292 |
- -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
293 |
- |
294 |
- -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml) |
295 |
- # libgomp support fails to find headers without explicit -I |
296 |
- # furthermore, it provides only syntax checking |
297 |
- -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp |
298 |
- |
299 |
- # disable using CUDA to autodetect GPU, just build for all |
300 |
- -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=ON |
301 |
- |
302 |
- -DCLANG_DEFAULT_PIE_ON_LINUX=$(usex pie) |
303 |
- |
304 |
- -DCLANG_ENABLE_ARCMT=$(usex static-analyzer) |
305 |
- -DCLANG_ENABLE_STATIC_ANALYZER=$(usex static-analyzer) |
306 |
- |
307 |
- -DPython3_EXECUTABLE="${PYTHON}" |
308 |
- ) |
309 |
- use test && mycmakeargs+=( |
310 |
- -DLLVM_BUILD_TESTS=ON |
311 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
312 |
- ) |
313 |
- |
314 |
- if multilib_is_native_abi; then |
315 |
- local build_docs=OFF |
316 |
- if llvm_are_manpages_built; then |
317 |
- build_docs=ON |
318 |
- mycmakeargs+=( |
319 |
- -DLLVM_BUILD_DOCS=ON |
320 |
- -DLLVM_ENABLE_SPHINX=ON |
321 |
- -DCLANG_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/html" |
322 |
- -DSPHINX_WARNINGS_AS_ERRORS=OFF |
323 |
- ) |
324 |
- if use extra; then |
325 |
- mycmakeargs+=( |
326 |
- -DCLANG-TOOLS_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/tools-extra" |
327 |
- ) |
328 |
- fi |
329 |
- fi |
330 |
- mycmakeargs+=( |
331 |
- -DCLANG_INCLUDE_DOCS=${build_docs} |
332 |
- ) |
333 |
- fi |
334 |
- if multilib_native_use extra; then |
335 |
- mycmakeargs+=( |
336 |
- -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR="${WORKDIR}"/clang-tools-extra |
337 |
- -DCLANG_TOOLS_EXTRA_INCLUDE_DOCS=${build_docs} |
338 |
- ) |
339 |
- else |
340 |
- mycmakeargs+=( |
341 |
- -DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=OFF |
342 |
- ) |
343 |
- fi |
344 |
- |
345 |
- if [[ -n ${EPREFIX} ]]; then |
346 |
- mycmakeargs+=( |
347 |
- -DGCC_INSTALL_PREFIX="${EPREFIX}/usr" |
348 |
- ) |
349 |
- fi |
350 |
- |
351 |
- if tc-is-cross-compiler; then |
352 |
- [[ -x "/usr/bin/clang-tblgen" ]] \ |
353 |
- || die "/usr/bin/clang-tblgen not found or usable" |
354 |
- mycmakeargs+=( |
355 |
- -DCMAKE_CROSSCOMPILING=ON |
356 |
- -DCLANG_TABLEGEN=/usr/bin/clang-tblgen |
357 |
- ) |
358 |
- fi |
359 |
- |
360 |
- # LLVM can have very high memory consumption while linking, |
361 |
- # exhausting the limit on 32-bit linker executable |
362 |
- use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" |
363 |
- |
364 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
365 |
- use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
366 |
- cmake_src_configure |
367 |
- |
368 |
- multilib_is_native_abi && check_distribution_components |
369 |
-} |
370 |
- |
371 |
-multilib_src_compile() { |
372 |
- cmake_build distribution |
373 |
- |
374 |
- # provide a symlink for tests |
375 |
- if [[ ! -L ${WORKDIR}/lib/clang ]]; then |
376 |
- mkdir -p "${WORKDIR}"/lib || die |
377 |
- ln -s "${BUILD_DIR}/$(get_libdir)/clang" "${WORKDIR}"/lib/clang || die |
378 |
- fi |
379 |
-} |
380 |
- |
381 |
-multilib_src_test() { |
382 |
- # respect TMPDIR! |
383 |
- local -x LIT_PRESERVES_TMP=1 |
384 |
- local test_targets=( check-clang ) |
385 |
- if multilib_native_use extra; then |
386 |
- test_targets+=( |
387 |
- check-clang-tools |
388 |
- check-clangd |
389 |
- ) |
390 |
- fi |
391 |
- cmake_build "${test_targets[@]}" |
392 |
-} |
393 |
- |
394 |
-src_install() { |
395 |
- MULTILIB_WRAPPED_HEADERS=( |
396 |
- /usr/include/clang/Config/config.h |
397 |
- ) |
398 |
- |
399 |
- multilib-minimal_src_install |
400 |
- |
401 |
- # Move runtime headers to /usr/lib/clang, where they belong |
402 |
- mv "${ED}"/usr/include/clangrt "${ED}"/usr/lib/clang || die |
403 |
- # move (remaining) wrapped headers back |
404 |
- if use extra; then |
405 |
- mv "${T}"/clang-tidy "${ED}"/usr/include/ || die |
406 |
- fi |
407 |
- mv "${ED}"/usr/include "${ED}"/usr/lib/llvm/${LLVM_MAJOR}/include || die |
408 |
- |
409 |
- # Apply CHOST and version suffix to clang tools |
410 |
- local clang_tools=( clang clang++ clang-cl clang-cpp ) |
411 |
- local abi i |
412 |
- |
413 |
- # cmake gives us: |
414 |
- # - clang-X |
415 |
- # - clang -> clang-X |
416 |
- # - clang++, clang-cl, clang-cpp -> clang |
417 |
- # we want to have: |
418 |
- # - clang-X |
419 |
- # - clang++-X, clang-cl-X, clang-cpp-X -> clang-X |
420 |
- # - clang, clang++, clang-cl, clang-cpp -> clang*-X |
421 |
- # also in CHOST variant |
422 |
- for i in "${clang_tools[@]:1}"; do |
423 |
- rm "${ED}/usr/lib/llvm/${LLVM_MAJOR}/bin/${i}" || die |
424 |
- dosym "clang-${LLVM_MAJOR}" "/usr/lib/llvm/${LLVM_MAJOR}/bin/${i}-${LLVM_MAJOR}" |
425 |
- dosym "${i}-${LLVM_MAJOR}" "/usr/lib/llvm/${LLVM_MAJOR}/bin/${i}" |
426 |
- done |
427 |
- |
428 |
- # now create target symlinks for all supported ABIs |
429 |
- for abi in $(get_all_abis); do |
430 |
- local abi_chost=$(get_abi_CHOST "${abi}") |
431 |
- for i in "${clang_tools[@]}"; do |
432 |
- dosym "${i}-${LLVM_MAJOR}" \ |
433 |
- "/usr/lib/llvm/${LLVM_MAJOR}/bin/${abi_chost}-${i}-${LLVM_MAJOR}" |
434 |
- dosym "${abi_chost}-${i}-${LLVM_MAJOR}" \ |
435 |
- "/usr/lib/llvm/${LLVM_MAJOR}/bin/${abi_chost}-${i}" |
436 |
- done |
437 |
- done |
438 |
-} |
439 |
- |
440 |
-multilib_src_install() { |
441 |
- DESTDIR=${D} cmake_build install-distribution |
442 |
- |
443 |
- # move headers to /usr/include for wrapping & ABI mismatch checks |
444 |
- # (also drop the version suffix from runtime headers) |
445 |
- rm -rf "${ED}"/usr/include || die |
446 |
- mv "${ED}"/usr/lib/llvm/${LLVM_MAJOR}/include "${ED}"/usr/include || die |
447 |
- mv "${ED}"/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir)/clang "${ED}"/usr/include/clangrt || die |
448 |
- if multilib_native_use extra; then |
449 |
- # don't wrap clang-tidy headers, the list is too long |
450 |
- # (they're fine for non-native ABI but enabling the targets is problematic) |
451 |
- mv "${ED}"/usr/include/clang-tidy "${T}/" || die |
452 |
- fi |
453 |
-} |
454 |
- |
455 |
-multilib_src_install_all() { |
456 |
- python_fix_shebang "${ED}" |
457 |
- if use static-analyzer; then |
458 |
- python_optimize "${ED}"/usr/lib/llvm/${LLVM_MAJOR}/share/scan-view |
459 |
- fi |
460 |
- |
461 |
- docompress "/usr/lib/llvm/${LLVM_MAJOR}/share/man" |
462 |
- llvm_install_manpages |
463 |
- # match 'html' non-compression |
464 |
- use doc && docompress -x "/usr/share/doc/${PF}/tools-extra" |
465 |
- # +x for some reason; TODO: investigate |
466 |
- use static-analyzer && fperms a-x "/usr/lib/llvm/${LLVM_MAJOR}/share/man/man1/scan-build.1" |
467 |
-} |
468 |
- |
469 |
-pkg_postinst() { |
470 |
- if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then |
471 |
- eselect compiler-shadow update all |
472 |
- fi |
473 |
- |
474 |
- elog "You can find additional utility scripts in:" |
475 |
- elog " ${EROOT}/usr/lib/llvm/${LLVM_MAJOR}/share/clang" |
476 |
- if use extra; then |
477 |
- elog "Some of them are vim integration scripts (with instructions inside)." |
478 |
- elog "The run-clang-tidy.py script requires the following additional package:" |
479 |
- elog " dev-python/pyyaml" |
480 |
- fi |
481 |
-} |
482 |
- |
483 |
-pkg_postrm() { |
484 |
- if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then |
485 |
- eselect compiler-shadow clean all |
486 |
- fi |
487 |
-} |