dev-libs/opencl-clang: bump to version 8.0.1 and EAPI-7
authorMarek Szuba <marecki@gentoo.org>
Wed, 3 Jul 2019 11:38:54 +0000 (12:38 +0100)
committerMarek Szuba <marecki@gentoo.org>
Wed, 3 Jul 2019 16:11:44 +0000 (17:11 +0100)
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

dev-libs/opencl-clang/Manifest
dev-libs/opencl-clang/opencl-clang-8.0.1.ebuild [new file with mode: 0644]

index 4073b5140aeedf1aeaba8827920c23a086f561a2..aa1ed4914d74f36feef33533ab5e91a39490f8ff 100644 (file)
@@ -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 (file)
index 0000000..914e059
--- /dev/null
@@ -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
+}