1 |
commit: 97046e0d69dfeaeb568e0e8b4492e7b6ffb1b819 |
2 |
Author: Douglas Agbeve <douglas <AT> agbeve <DOT> com> |
3 |
AuthorDate: Fri Jun 25 15:58:25 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 16 09:39:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97046e0d |
7 |
|
8 |
dev-util/spirv-llvm-translator: bump to v12.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Douglas Agbeve <douglas <AT> agbeve.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-util/spirv-llvm-translator/Manifest | 1 + |
15 |
.../spirv-llvm-translator-12.0.0.ebuild | 54 ++++++++++++++++++++++ |
16 |
2 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest |
19 |
index ef6fb666c0d..829c1ccd44c 100644 |
20 |
--- a/dev-util/spirv-llvm-translator/Manifest |
21 |
+++ b/dev-util/spirv-llvm-translator/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST spirv-llvm-translator-10.0.0.tar.gz 535828 BLAKE2B 0bce2f663b2f70a2db2b1ef0 |
23 |
DIST spirv-llvm-translator-10.0.0_p20200909.tar.gz 599696 BLAKE2B 9407d0b3ea9f812a06d08b8fec6cecd73fcab5ebd8aaf10c38c7693207f161b4f1eb822e60b42521e3879cd34b95da7d37cec71fb891f8df13dc60783e655c49 SHA512 fe3e4a00d1ae3fd2324379bb92244399b18a4a31b1a2ec6b9bc60eec471a8ce2da7fbe2ea5a0d247590dd7ffb6e620072197a36631f384357e808fc9b96192f5 |
24 |
DIST spirv-llvm-translator-11.0.0.tar.gz 665804 BLAKE2B 826d13107efc28fc72e90761e3f4d5b718d4dda9376ce45a7db7a71494adfd293387ebd1fe473d177fb249ef7aca5b10394e200bf60b5de700ba6699e4199ce6 SHA512 e0f4c2f41d686cb574e1fc56fdebbbf4b40602219a9f941fab4c44cc86347e6f651d2fde2ea0fba81c871826f1e8ee92f07bdac5a7532f66fca25b9ed8354b05 |
25 |
DIST spirv-llvm-translator-11.1.0_pre20210212.tar.gz 702962 BLAKE2B 0c46b898e2d6c293b1db7b4aa65af7830869329cebc35e930b73f98dc038ae50d6adbdd9c6951e2ad427982d2a565c0925ecd056105cc37222b0d8ce7eb2e43b SHA512 3b8503be3ad65422f59ddbfd715a913dd6dab9416a14aea9e6a6793b2c959edaaab5433a3e253ee84c0b3644024a1f8a6b563af65e7aaad209c5f51e524cc96b |
26 |
+DIST spirv-llvm-translator-12.0.0.tar.gz 1378222 BLAKE2B 059409364403316f84521e231bc14cade2875c2b914acea95619b0920ae4f13babb26411b20fead1d7a028320fa3aea637d087d869759cb23e3266753b5b2f46 SHA512 c23ef81802d2bf743564762815d7375a804bdf8029efd7430faea0b48b5e30a9778c1175f52309b522a07aadf8ff77461b912c1fb3b95af9b09273a483eac82a |
27 |
|
28 |
diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-12.0.0.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-12.0.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..3d216931574 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-12.0.0.ebuild |
33 |
@@ -0,0 +1,54 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+CMAKE_ECLASS=cmake |
40 |
+ |
41 |
+inherit cmake-multilib flag-o-matic llvm |
42 |
+ |
43 |
+MY_PN="SPIRV-LLVM-Translator" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="Bi-directional translator between SPIR-V and LLVM IR" |
47 |
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" |
48 |
+SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="UoI-NCSA" |
51 |
+SLOT="12" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="test +tools" |
54 |
+ |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+S="${WORKDIR}/${MY_P}" |
58 |
+ |
59 |
+COMMON="sys-devel/clang:12=[${MULTILIB_USEDEP}]" |
60 |
+DEPEND="${COMMON}" |
61 |
+RDEPEND="${COMMON}" |
62 |
+BDEPEND="test? ( dev-python/lit )" |
63 |
+ |
64 |
+REQUIRED_USE="test? ( tools )" |
65 |
+ |
66 |
+LLVM_MAX_SLOT=12 |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ append-flags -fPIC |
70 |
+ cmake_src_prepare |
71 |
+} |
72 |
+ |
73 |
+multilib_src_configure() { |
74 |
+ local mycmakeargs=( |
75 |
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" |
76 |
+ -DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF") |
77 |
+ $(usex test "-DLLVM_INCLUDE_TESTS=ON" "") |
78 |
+ ) |
79 |
+ cmake_src_configure |
80 |
+} |
81 |
+ |
82 |
+multilib_src_test() { |
83 |
+ # Some tests fail on amd64 when ABI==x86 |
84 |
+ if multilib_is_native_abi; then |
85 |
+ lit "${BUILD_DIR}/test" || die "Error running tests for ABI ${ABI}" |
86 |
+ fi |
87 |
+} |