Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/, dev-util/spirv-llvm-translator/files/
Date: Sat, 27 Feb 2021 14:42:49
Message-Id: 1614436943.277c66f920fd6a0e4aa8ddc8696d950b3a102b79.conikost@gentoo
1 commit: 277c66f920fd6a0e4aa8ddc8696d950b3a102b79
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 14:41:30 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 14:42:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=277c66f9
7
8 Revert "dev-util/spirv-llvm-translator: Add support for llvm 11.1"
9
10 This reverts commit 0d6c49e059fcb04e8ee11031e5177927f8a53609.
11
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 .../spirv-llvm-translator/files/llvm-11.1.0.patch | 10 ----
15 .../spirv-llvm-translator-11.0.0-r1.ebuild | 63 ----------------------
16 2 files changed, 73 deletions(-)
17
18 diff --git a/dev-util/spirv-llvm-translator/files/llvm-11.1.0.patch b/dev-util/spirv-llvm-translator/files/llvm-11.1.0.patch
19 deleted file mode 100644
20 index f4d243acc5e..00000000000
21 --- a/dev-util/spirv-llvm-translator/files/llvm-11.1.0.patch
22 +++ /dev/null
23 @@ -1,10 +0,0 @@
24 ---- a/CMakeLists.txt 2021-02-18 14:52:20.079691789 +0000
25 -+++ b/CMakeLists.txt 2021-02-18 14:47:43.773873042 +0000
26 -@@ -1,6 +1,6 @@
27 - cmake_minimum_required(VERSION 3.3)
28 -
29 --set (BASE_LLVM_VERSION 11.0.0)
30 -+set (BASE_LLVM_VERSION 11.1.0)
31 - set(LLVM_SPIRV_VERSION ${BASE_LLVM_VERSION}.0)
32 -
33 - option(LLVM_SPIRV_INCLUDE_TESTS
34
35 diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0-r1.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0-r1.ebuild
36 deleted file mode 100644
37 index 94dee02866a..00000000000
38 --- a/dev-util/spirv-llvm-translator/spirv-llvm-translator-11.0.0-r1.ebuild
39 +++ /dev/null
40 @@ -1,63 +0,0 @@
41 -# Copyright 1999-2021 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=7
45 -
46 -CMAKE_ECLASS=cmake
47 -
48 -inherit cmake-multilib flag-o-matic llvm
49 -
50 -EGIT_COMMIT="d6dc999eee381158a26f048a333467c9ce7e77f2"
51 -MY_PN="SPIRV-LLVM-Translator"
52 -MY_P="${MY_PN}-${EGIT_COMMIT}"
53 -
54 -DESCRIPTION="Bi-directional translator between SPIR-V and LLVM IR"
55 -HOMEPAGE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
56 -SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
57 -
58 -LICENSE="UoI-NCSA"
59 -SLOT="11"
60 -KEYWORDS="~amd64"
61 -IUSE="test tools"
62 -
63 -# I have yet to see a non-release spirv-llvm-translator ebuild pass ANY tests.
64 -# This is probably something silly like the test suite expecting different
65 -# directory names but I really can't be bothered to debug VCS snapshots.
66 -RESTRICT="test"
67 -
68 -S="${WORKDIR}/${MY_P}"
69 -
70 -COMMON="~sys-devel/clang-11.1.0:11=[${MULTILIB_USEDEP}]"
71 -DEPEND="${COMMON}"
72 -RDEPEND="${COMMON}"
73 -BDEPEND="test? ( dev-python/lit )"
74 -
75 -REQUIRED_USE="test? ( tools )"
76 -
77 -LLVM_MAX_SLOT=11
78 -
79 -PATCHES=(
80 - "${FILESDIR}"/${PN}-8.0.0.1-no_pkgconfig_files.patch
81 - "${FILESDIR}"/llvm-11.1.0.patch
82 -)
83 -
84 -src_prepare() {
85 - append-flags -fPIC
86 - cmake_src_prepare
87 -}
88 -
89 -multilib_src_configure() {
90 - local mycmakeargs=(
91 - -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
92 - -DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF")
93 - $(usex test "-DLLVM_INCLUDE_TESTS=ON" "")
94 - )
95 - cmake_src_configure
96 -}
97 -
98 -multilib_src_test() {
99 - # Some tests fail on amd64 when ABI==x86
100 - if multilib_is_native_abi; then
101 - lit "${BUILD_DIR}/test" || die "Error running tests for ABI ${ABI}"
102 - fi
103 -}