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-libs/opencl-clang/, dev-libs/opencl-clang/files/
Date: Sat, 27 Feb 2021 14:42:49
Message-Id: 1614436954.395c374cc45a22367320c704400fb649d532492d.conikost@gentoo
1 commit: 395c374cc45a22367320c704400fb649d532492d
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 14:41:41 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 14:42:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=395c374c
7
8 Revert "dev-libs/opencl-clang: Add support for llvm 11.1"
9
10 This reverts commit 0d4f19d02396b2449a59b1fd57201fcdaa44a7ad.
11
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 dev-libs/opencl-clang/files/llvm-11.1.0.patch | 11 ------
15 .../opencl-clang/opencl-clang-11.0.0-r1.ebuild | 44 ----------------------
16 2 files changed, 55 deletions(-)
17
18 diff --git a/dev-libs/opencl-clang/files/llvm-11.1.0.patch b/dev-libs/opencl-clang/files/llvm-11.1.0.patch
19 deleted file mode 100644
20 index cd9cb0c2813..00000000000
21 --- a/dev-libs/opencl-clang/files/llvm-11.1.0.patch
22 +++ /dev/null
23 @@ -1,11 +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 -@@ -20,7 +20,7 @@
27 - add_definitions(-DUSE_PREBUILT_LLVM)
28 -
29 - if(NOT PREFERRED_LLVM_VERSION)
30 -- set(PREFERRED_LLVM_VERSION "11.0.0")
31 -+ set(PREFERRED_LLVM_VERSION "11.1.0")
32 - endif(NOT PREFERRED_LLVM_VERSION)
33 - message(STATUS "Looking for LLVM version ${PREFERRED_LLVM_VERSION}")
34 - find_package(LLVM ${PREFERRED_LLVM_VERSION} REQUIRED)
35
36 diff --git a/dev-libs/opencl-clang/opencl-clang-11.0.0-r1.ebuild b/dev-libs/opencl-clang/opencl-clang-11.0.0-r1.ebuild
37 deleted file mode 100644
38 index 7b4a21d88d1..00000000000
39 --- a/dev-libs/opencl-clang/opencl-clang-11.0.0-r1.ebuild
40 +++ /dev/null
41 @@ -1,44 +0,0 @@
42 -# Copyright 1999-2021 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=7
46 -
47 -CMAKE_ECLASS=cmake
48 -
49 -inherit cmake-multilib llvm
50 -
51 -MY_PV="$(ver_rs 3 -)"
52 -MY_P="${PN}-${MY_PV}"
53 -
54 -DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
55 -HOMEPAGE="https://github.com/intel/opencl-clang"
56 -SRC_URI="https://github.com/intel/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
57 -
58 -LICENSE="UoI-NCSA"
59 -SLOT="11"
60 -KEYWORDS="~amd64"
61 -
62 -S="${WORKDIR}/${MY_P}"
63 -
64 -# Force a rebuild of this package once clang has been updated from 10.0.0 to 10.0.1
65 -# in order to work around Bug #743992. Hopefully a one-time thing.
66 -DEPEND="~sys-devel/clang-11.1.0:11=[static-analyzer,${MULTILIB_USEDEP}]
67 - ~sys-devel/llvm-11.1.0:11=[${MULTILIB_USEDEP}]
68 - >=dev-util/spirv-llvm-translator-11.0.0:11=[${MULTILIB_USEDEP}]"
69 -RDEPEND="${DEPEND}"
70 -
71 -LLVM_MAX_SLOT=11
72 -
73 -PATCHES=(
74 - "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
75 - "${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.patch
76 - "${FILESDIR}"/llvm-11.1.0.patch
77 -)
78 -
79 -multilib_src_configure() {
80 - local mycmakeargs=(
81 - -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
82 - -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang
83 - )
84 - cmake_src_configure
85 -}