summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2019-07-03 12:38:54 +0100
committerMarek Szuba <marecki@gentoo.org>2019-07-03 17:11:44 +0100
commitc5584f42965842cba68d65cf5a0c2da5369eda7e (patch)
tree1ed8ee8865d7e245d38d34cf4537ef0158ea1ca3 /dev-libs/opencl-clang
parentdev-util/spirv-llvm-translator: bump to version 8.0.1-1 and EAPI-7 (diff)
downloadgentoo-c5584f42965842cba68d65cf5a0c2da5369eda7e.tar.gz
gentoo-c5584f42965842cba68d65cf5a0c2da5369eda7e.tar.bz2
gentoo-c5584f42965842cba68d65cf5a0c2da5369eda7e.zip
dev-libs/opencl-clang: bump to version 8.0.1 and EAPI-7
Note that this release changes the name of the installed library from the old common_clang to opencl-clang, requiring changes in dev-libs/intel-graphics-compiler ebuilds. Signed-off-by: Marek Szuba <marecki@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-libs/opencl-clang')
-rw-r--r--dev-libs/opencl-clang/Manifest1
-rw-r--r--dev-libs/opencl-clang/opencl-clang-8.0.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest
index 4073b5140aee..aa1ed4914d74 100644
--- a/dev-libs/opencl-clang/Manifest
+++ b/dev-libs/opencl-clang/Manifest
@@ -1 +1,2 @@
DIST opencl-clang-8.0.0.tar.gz 40789 BLAKE2B baa559e90bf7f57cc59942c279b0488e306c7fd481582b213707d1cf0382f717965cd0fc7278e9c5a359847cead097243509a0730cd38f70fbbb2586c3145265 SHA512 4a353e2b28d54671be0eea00536c05093d358dec9950ea5b0732c8f46dd03bc29884487fb88f762f2c20311b928496c3b5729a8c6a72a7ce9caf30b23895340f
+DIST opencl-clang-8.0.1.tar.gz 42069 BLAKE2B 9d095b2f14b1fb0cbe3eacfba9cae013dbe41e90a367d7acfe4f56496fbdd673fccf16a09a78affa43aa427f5bd0abc400319128525a660d57308cf16bd4e638 SHA512 3e1714b65311b5c07537329c94d55f037c219eaf41380960e5220b0e85761a69b45b469507dc168c09ae4801fb6e14db256acdb7bd2f7e9734f6f84ad3ba49b2
diff --git a/dev-libs/opencl-clang/opencl-clang-8.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-8.0.1.ebuild
new file mode 100644
index 000000000000..914e05911fec
--- /dev/null
+++ b/dev-libs/opencl-clang/opencl-clang-8.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-multilib llvm
+
+DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
+HOMEPAGE="https://github.com/intel/opencl-clang"
+SRC_URI="https://github.com/intel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="8"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-vcs/git"
+COMMON="sys-devel/clang:8=[static-analyzer,${MULTILIB_USEDEP}]"
+DEPEND="${COMMON}
+ dev-util/spirv-llvm-translator:8=[${MULTILIB_USEDEP}]"
+RDEPEND="${COMMON}"
+
+LLVM_MAX_SLOT=8
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)"
+ -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang
+ )
+ cmake-utils_src_configure
+}