1 |
commit: c0dcd50189720c503d470db2d19ee64421784f0d |
2 |
Author: Khue Nguyen <Z5483Y <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 16 00:58:43 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 13:45:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0dcd501 |
7 |
|
8 |
dev-util/spirv-llvm-translator: bump to 11.0.0 |
9 |
|
10 |
Signed-off-by: Khue Nguyen <Z5483Y <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
dev-util/spirv-llvm-translator/Manifest | 1 + |
14 |
.../spirv-llvm-translator-11.0.0.ebuild | 62 ++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest |
18 |
index 48f54c7880a..b369b23a333 100644 |
19 |
--- a/dev-util/spirv-llvm-translator/Manifest |
20 |
+++ b/dev-util/spirv-llvm-translator/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST spirv-llvm-translator-10.0.0.tar.gz 535828 BLAKE2B 0bce2f663b2f70a2db2b1ef0665d627716d63baa6cb47ced532ac2e30e8b0424934d273135581655445ea87f5c84c9df876da0490d7a302a6d00c86b78e05c22 SHA512 d6400bb3e4df780358b5d6d0af889e7654b7dfd472c8d41b77ff98e7ff1bd017c289ecacb59a3dd7bfddb1a5108e21028aa770bf645e06178610bb322de905be |
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 |
|
26 |
diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..473d07748b2 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0.ebuild |
31 |
@@ -0,0 +1,62 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_ECLASS=cmake |
38 |
+ |
39 |
+inherit cmake-multilib flag-o-matic llvm |
40 |
+ |
41 |
+EGIT_COMMIT="d6dc999eee381158a26f048a333467c9ce7e77f2" |
42 |
+MY_PN="SPIRV-LLVM-Translator" |
43 |
+MY_P="${MY_PN}-${EGIT_COMMIT}" |
44 |
+ |
45 |
+DESCRIPTION="Bi-directional translator between SPIR-V and LLVM IR" |
46 |
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" |
47 |
+SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="UoI-NCSA" |
50 |
+SLOT="11" |
51 |
+KEYWORDS="~amd64" |
52 |
+IUSE="test tools" |
53 |
+ |
54 |
+# I have yet to see a non-release spirv-llvm-translator ebuild pass ANY tests. |
55 |
+# This is probably something silly like the test suite expecting different |
56 |
+# directory names but I really can't be bothered to debug VCS snapshots. |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}" |
60 |
+ |
61 |
+COMMON="sys-devel/clang:11=[${MULTILIB_USEDEP}]" |
62 |
+DEPEND="${COMMON}" |
63 |
+RDEPEND="${COMMON}" |
64 |
+BDEPEND="test? ( dev-python/lit )" |
65 |
+ |
66 |
+REQUIRED_USE="test? ( tools )" |
67 |
+ |
68 |
+LLVM_MAX_SLOT=11 |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}"/${PN}-8.0.0.1-no_pkgconfig_files.patch |
72 |
+) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ append-flags -fPIC |
76 |
+ cmake_src_prepare |
77 |
+} |
78 |
+ |
79 |
+multilib_src_configure() { |
80 |
+ local mycmakeargs=( |
81 |
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" |
82 |
+ -DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF") |
83 |
+ $(usex test "-DLLVM_INCLUDE_TESTS=ON" "") |
84 |
+ ) |
85 |
+ cmake_src_configure |
86 |
+} |
87 |
+ |
88 |
+multilib_src_test() { |
89 |
+ # Some tests fail on amd64 when ABI==x86 |
90 |
+ if multilib_is_native_abi; then |
91 |
+ lit "${BUILD_DIR}/test" || die "Error running tests for ABI ${ABI}" |
92 |
+ fi |
93 |
+} |