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