dev-libs/opencl-clang: bump slot 9 to version 9.0.1
authorMarek Szuba <marecki@gentoo.org>
Wed, 11 Mar 2020 18:26:39 +0000 (19:26 +0100)
committerMarek Szuba <marecki@gentoo.org>
Wed, 11 Mar 2020 19:18:15 +0000 (20:18 +0100)
Signed-off-by: Marek Szuba <marecki@gentoo.org>
dev-libs/opencl-clang/Manifest
dev-libs/opencl-clang/opencl-clang-9.0.1.ebuild [new file with mode: 0644]

index 35a986f1894806193cb8a5bd1d80f5e32f028545..28ed368e8d20ab9bce1bdcd4c64f959d343c9abe 100644 (file)
@@ -1,3 +1,4 @@
 DIST opencl-clang-8.0.1.1.tar.gz 42534 BLAKE2B e0dc6a4cc6f738f0f5cecfa9ef5b2c219dc1f1714cb5ff2dbf0d7a9ff9efe4cdd4ce0b3780f0ca53f9582b0b73b2cbfad28a9ddec76ef8f6978ee31fa3ee111c SHA512 8456a99668f7709d601ab49c6f8219a1de74363f270e606b5832cb13f196d65b6fe6cb961430b3f45875fec49a2f06c178e935cf3d1b118d033583d90611df15
 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
+DIST opencl-clang-9.0.1.tar.gz 24574 BLAKE2B 2e3b69c10b572678f91e92fa0ca885dd9332d172c483c394f4c1b140a5fd926b26eff4d4ab722733e1e164ff99a6eb397b8bc9e30a0b7e289506432fd1291b2b SHA512 01c5011dc1ea66288f3e425f85c921142fd3bc5a3d79eeafe5c14b5741b8281f17727cbffa7ed31869f7704be957d2fed5e5e8a57ab31e7b8c3a9688f048cced
diff --git a/dev-libs/opencl-clang/opencl-clang-9.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-9.0.1.ebuild
new file mode 100644 (file)
index 0000000..076afad
--- /dev/null
@@ -0,0 +1,35 @@
+# 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
+
+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_src_configure
+}