diff options
Diffstat (limited to 'dev-libs/opencl-clang/opencl-clang-10.0.0.2.ebuild')
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-10.0.0.2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/opencl-clang-10.0.0.2.ebuild b/dev-libs/opencl-clang/opencl-clang-10.0.0.2.ebuild new file mode 100644 index 000000000000..195bebafcbd4 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-10.0.0.2.ebuild @@ -0,0 +1,41 @@ +# 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 + +MY_PV="$(ver_rs 3 -)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="OpenCL-oriented thin wrapper library around clang" +HOMEPAGE="https://github.com/intel/opencl-clang" +SRC_URI="https://github.com/intel/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="10" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +COMMON="sys-devel/clang:10=[static-analyzer,${MULTILIB_USEDEP}]" +DEPEND="${COMMON} + >=dev-util/spirv-llvm-translator-10.0.0_p20200909:10=[${MULTILIB_USEDEP}]" +RDEPEND="${COMMON}" + +LLVM_MAX_SLOT=10 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch + "${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.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 +} |