summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-06-19 15:56:38 +0200
committerMarek Szuba <marecki@gentoo.org>2020-06-19 16:31:10 +0200
commit75880c17d1495e98f7f4de000000dc6f1572a9df (patch)
tree0f457f9f2f11fa7d19c911f3e5bf70195f22b3b9 /dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild
parentdev-libs/hsa-ext-rocr: bump to 1.1.30500.0 (diff)
downloadgentoo-75880c17d1495e98f7f4de000000dc6f1572a9df.tar.gz
gentoo-75880c17d1495e98f7f4de000000dc6f1572a9df.tar.bz2
gentoo-75880c17d1495e98f7f4de000000dc6f1572a9df.zip
dev-libs/opencl-clang: bump to 10.0.0.1:10
There is a newer upstream release, 10.0.0-2, but as of 2020-06-19 that version fails to build against any official releases of spirv-llvm-translator. See https://github.com/intel/opencl-clang/issues/148 for details. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild')
-rw-r--r--dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild
new file mode 100644
index 00000000000..d09e936af38
--- /dev/null
+++ b/dev-libs/opencl-clang/opencl-clang-10.0.0.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS=cmake
+inherit cmake-multilib llvm
+
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
+HOMEPAGE="https://github.com/intel/opencl-clang"
+SRC_URI="https://github.com/intel/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="10"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}/${MY_P}"
+
+BDEPEND="dev-vcs/git"
+COMMON="sys-devel/clang:10=[static-analyzer,${MULTILIB_USEDEP}]"
+DEPEND="${COMMON}
+ dev-util/spirv-llvm-translator:10=[${MULTILIB_USEDEP}]"
+RDEPEND="${COMMON}"
+
+LLVM_MAX_SLOT=10
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
+ -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang
+ )
+ cmake_src_configure
+}