1 |
commit: 137617b94e60be877d9c0716c437f9d3ebf6c97f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 30 09:44:52 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 30 10:01:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137617b9 |
7 |
|
8 |
dev-libs/libclc: Bump to 13.0.1_rc1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libclc/Manifest | 1 + |
13 |
dev-libs/libclc/libclc-13.0.1_rc1.ebuild | 67 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest |
17 |
index 93eba739396c..3dff424f6e8f 100644 |
18 |
--- a/dev-libs/libclc/Manifest |
19 |
+++ b/dev-libs/libclc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST llvmorg-13.0.0.tar.gz 147270176 BLAKE2B 628f316b580e1edf3a58d4825b724df759e6ed2a4116802470c04562caefc392fa325c91f388036365a2e45a9595cca6d3557fab12984fc8bcfef29c9116d822 SHA512 8004c05d32b9720fb3391783621690c1df9bd1e97e72cbff9192ed88a84b0acd303b61432145fa917b5b5e548c8cee29b24ef8547dcc8677adf4816e7a8a0eb2 |
22 |
+DIST llvmorg-13.0.1-rc1.tar.gz 147284646 BLAKE2B 3a1d8d382de633b7f8fc998f8ad1e03c24b733aefc591615cbd34115d1d6d74962ae33bbf2224527b521a76930ffee425527225563a558a04173e9aa9487c781 SHA512 d487bfc9b898ad0046e0c94338d7757d8a05a1a84d683abfbc9ed4994c6d12caf88fd18575225e284070fc67b3ac0970ca6639e61b1a7cc2948b216a5364a22d |
23 |
|
24 |
diff --git a/dev-libs/libclc/libclc-13.0.1_rc1.ebuild b/dev-libs/libclc/libclc-13.0.1_rc1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..de9b38e9f826 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libclc/libclc-13.0.1_rc1.ebuild |
29 |
@@ -0,0 +1,67 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit cmake llvm llvm.org python-any-r1 |
37 |
+ |
38 |
+DESCRIPTION="OpenCL C library" |
39 |
+HOMEPAGE="https://libclc.llvm.org/" |
40 |
+ |
41 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( MIT BSD )" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="" |
44 |
+IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi" |
45 |
+IUSE="${IUSE_VIDEO_CARDS}" |
46 |
+REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )" |
47 |
+ |
48 |
+LLVM_MAX_SLOT=13 |
49 |
+BDEPEND=" |
50 |
+ || ( |
51 |
+ sys-devel/clang:13 |
52 |
+ sys-devel/clang:12 |
53 |
+ sys-devel/clang:11 |
54 |
+ sys-devel/clang:10 |
55 |
+ ) |
56 |
+ ${PYTHON_DEPS}" |
57 |
+ |
58 |
+LLVM_COMPONENTS=( libclc ) |
59 |
+llvm.org_set_globals |
60 |
+ |
61 |
+llvm_check_deps() { |
62 |
+ has_version -b "sys-devel/clang:${LLVM_SLOT}" |
63 |
+} |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ # we do not need llvm_pkg_setup |
67 |
+ python-any-r1_pkg_setup |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local libclc_targets=() |
72 |
+ |
73 |
+ use video_cards_nvidia && libclc_targets+=( |
74 |
+ "nvptx--" |
75 |
+ "nvptx64--" |
76 |
+ "nvptx--nvidiacl" |
77 |
+ "nvptx64--nvidiacl" |
78 |
+ ) |
79 |
+ use video_cards_r600 && libclc_targets+=( |
80 |
+ "r600--" |
81 |
+ ) |
82 |
+ use video_cards_radeonsi && libclc_targets+=( |
83 |
+ "amdgcn--" |
84 |
+ "amdgcn-mesa-mesa3d" |
85 |
+ "amdgcn--amdhsa" |
86 |
+ ) |
87 |
+ # TODO: spirv |
88 |
+ [[ ${#libclc_targets[@]} ]] || die "libclc target missing!" |
89 |
+ |
90 |
+ libclc_targets=${libclc_targets[*]} |
91 |
+ local mycmakeargs=( |
92 |
+ -DLIBCLC_TARGETS_TO_BUILD="${libclc_targets// /;}" |
93 |
+ -DLLVM_CONFIG="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" |
94 |
+ ) |
95 |
+ cmake_src_configure |
96 |
+} |