diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild')
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild b/dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild new file mode 100644 index 000000000000..51eeb4ac021b --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-13.0.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT="13" + +inherit cmake llvm + +DESCRIPTION="OpenCL-oriented thin wrapper library around clang" +HOMEPAGE="https://github.com/intel/opencl-clang" +SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${PV}" + +LICENSE="UoI-NCSA" +SLOT="13" +KEYWORDS="amd64" + +RDEPEND=" + dev-util/spirv-llvm-translator:${SLOT}= + sys-devel/clang:${SLOT}=[static-analyzer] + sys-devel/llvm:${SLOT}= +" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch + "${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.patch + "${FILESDIR}"/${PN}-13.0.0_version.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + -Wno-dev + ) + + cmake_src_configure +} |