diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-01-25 19:53:10 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-01-25 19:53:42 +0000 |
commit | 113b2343c3c16a8bd7fb6a94758f05c7f9699774 (patch) | |
tree | a1634cc82c3ceb15add491d704fee8dad0f06dae /dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild | |
parent | dev-db/percona-server: update patch set (diff) | |
download | gentoo-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/opencl-clang-9.0.0.ebuild')
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-9.0.0.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
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 +} |