summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-01-25 19:53:10 +0000
committerMarek Szuba <marecki@gentoo.org>2020-01-25 19:53:42 +0000
commit113b2343c3c16a8bd7fb6a94758f05c7f9699774 (patch)
treea1634cc82c3ceb15add491d704fee8dad0f06dae /dev-libs/opencl-clang
parentdev-db/percona-server: update patch set (diff)
downloadgentoo-113b2343c3c16a8bd7fb6a94758f05c7f9699774.tar.gz
gentoo-113b2343c3c16a8bd7fb6a94758f05c7f9699774.tar.bz2
gentoo-113b2343c3c16a8bd7fb6a94758f05c7f9699774.zip
dev-libs/opencl-clang: bump to 9.0.0:9
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/opencl-clang')
-rw-r--r--dev-libs/opencl-clang/Manifest1
-rw-r--r--dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest
index e2da4006d076..7c968fe057d3 100644
--- a/dev-libs/opencl-clang/Manifest
+++ b/dev-libs/opencl-clang/Manifest
@@ -1 +1,2 @@
DIST opencl-clang-8.0.1_p20191001.tar.gz 41402 BLAKE2B 0ab3cc4f84a9e3e599d4e0995f219b94761b882a6290d9c1e399bf820074b72daab935a9d48d09d3e02d1b46659fc8c00613f35e88f0231234e31f93ca6e4d7a SHA512 87f3855bd2cc9a416f317afc98ad7cd1cfcb5bf4b2ebf7401837c1734b1c8d10e07843aab78735bf48888523b231db1911014a6468c0b4c461c43a5434a31ada
+DIST opencl-clang-9.0.0.tar.gz 23345 BLAKE2B adbce64efb2c1e4e96d4aff585c0f18bd06036a60b35164681b9f5b4a6c89933e5428e9959ddd3cec89b93a5c350e6b0f9b15b8be2be42cd520ca55852352df5 SHA512 126974d816e7f2a90ddb2faa4e8e95841d8ae15f24e77013ca8894ce75ad5079ffe942fb40731030363a10e470e66f2ad1794c2fe31aee6f8608304b492b30eb
diff --git a/dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild b/dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild
new file mode 100644
index 000000000000..0e4906e5dde0
--- /dev/null
+++ b/dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 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="9"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-vcs/git"
+COMMON="sys-devel/clang:9=[static-analyzer,${MULTILIB_USEDEP}]"
+DEPEND="${COMMON}
+ dev-util/spirv-llvm-translator:9=[${MULTILIB_USEDEP}]"
+RDEPEND="${COMMON}"
+
+LLVM_MAX_SLOT=9
+
+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-utils_src_configure
+}