commit:     1cccac94e64c49061988bd9f1c62632389fbd03f
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 29 10:29:36 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Apr 29 20:17:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cccac94

dev-libs/opencl-clang: add 12.0.0

Adding stable keywords, as it as removed a few days ago and was already
stable. We need it back.

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/opencl-clang/Manifest                   |  1 +
 dev-libs/opencl-clang/opencl-clang-12.0.0.ebuild | 40 ++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest
index ea3c06ec0152..039faf61769c 100644
--- a/dev-libs/opencl-clang/Manifest
+++ b/dev-libs/opencl-clang/Manifest
@@ -1,2 +1,3 @@
+DIST opencl-clang-12.0.0.tar.gz 25292 BLAKE2B 
6979ce3f37b0e29e6b7ca9b015c04af6e01ceb6381158492a928d805b26b9bddf00b7a7a3edd987924f1c3a8ad914b7d6e9d9fea22b12166afceb25365edae6c
 SHA512 
7fa05480b10be97dd784b8fb7579a2471cf3a904facd9949a980602085515bb3d42a042c74db80381771ad18f78bed2efdcb09538a865ac4a600d6190b8f9c31
 DIST opencl-clang-13.0.0.tar.gz 25299 BLAKE2B 
1aabb4a97ba0bfd6129ea2b821508457de9d8ab78b4456217d655239081f8547e87730f54f05511e1a3ca6c54836fad5cb0cf69f26ac5ffd86ff6ae930f5e2dc
 SHA512 
d346e51339060795d80bdf9d3e3b58e55b089d94ed3c0bc3c7e1e8f81a5f65238d90dacc95ec27e8db7d38a6a03b05df5c4120e9ba0ec72a7bbca28a59d697f7
 DIST opencl-clang-14.0.0.tar.gz 26109 BLAKE2B 
2ae5e6d69e2f13b867712d03b52fce893aeb70566f7f97d54858639786276f49b0b6b5768aebfedeb7fe50d95511178d7dd9df7e80d3fd27df1fb3fe1d2ab955
 SHA512 
ab9a3fd40542283bdd2646d9ef8d3217420c82a41b183d705e48f48949505ecadc1fa435e23a7ceadf5a335200f5f3752b42715e2ac7f63173fc09637c5c609a

diff --git a/dev-libs/opencl-clang/opencl-clang-12.0.0.ebuild 
b/dev-libs/opencl-clang/opencl-clang-12.0.0.ebuild
new file mode 100644
index 000000000000..90d12ac835a9
--- /dev/null
+++ b/dev-libs/opencl-clang/opencl-clang-12.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT="12"
+
+inherit cmake llvm
+
+DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
+HOMEPAGE="https://github.com/intel/opencl-clang";
+SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-${PV}"
+
+LICENSE="UoI-NCSA"
+SLOT="$(ver_cut 1)"
+KEYWORDS="amd64"
+
+RDEPEND="
+       dev-util/spirv-llvm-translator:${SLOT}=
+       sys-devel/clang:${SLOT}=[static-analyzer]
+       sys-devel/llvm:${SLOT}=
+"
+
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
+       "${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+               -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang
+               -Wno-dev
+       )
+
+       cmake_src_configure
+}

Reply via email to