diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-03-09 13:31:58 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-03-09 14:56:27 +0100 |
commit | e1d6555b37cedd60930eac7e9d4a763dd5094286 (patch) | |
tree | 93fae05753af814c71d2ed09b7a5e4559e9bbba9 | |
parent | dev-libs/intel-vc-intrinsics: add 0.18.0 (diff) | |
download | gentoo-e1d6555b.tar.gz gentoo-e1d6555b.tar.bz2 gentoo-e1d6555b.zip |
dev-libs/opencl-clang: switch to llvm-r1 eclass
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-15.0.0-r1.ebuild | 39 | ||||
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-16.0.0-r2.ebuild | 44 |
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/opencl-clang-15.0.0-r1.ebuild b/dev-libs/opencl-clang/opencl-clang-15.0.0-r1.ebuild new file mode 100644 index 000000000000..b8ecb8f410af --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-15.0.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 15 ) + +inherit cmake llvm-r1 + +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="$(ver_cut 1)" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + dev-util/spirv-llvm-translator:${SLOT}= + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/llvm:${LLVM_SLOT}= + ') +" + +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + -Wno-dev + ) + + cmake_src_configure +} diff --git a/dev-libs/opencl-clang/opencl-clang-16.0.0-r2.ebuild b/dev-libs/opencl-clang/opencl-clang-16.0.0-r2.ebuild new file mode 100644 index 000000000000..8e4cfe79db97 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-16.0.0-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 16 ) + +inherit cmake llvm-r1 + +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="$(ver_cut 1)" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + dev-util/spirv-llvm-translator:${SLOT}= + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/llvm:${LLVM_SLOT}= + ') +" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-16.0.0-clang_library_dir.patch + "${FILESDIR}"/${PN}-16.0.0-cxx17.patch + "${FILESDIR}"/${PN}-16.0.0-llvm.patch + "${FILESDIR}"/${PN}-16.0.0-standalone-build.patch +) + +src_configure() { + local mycmakeargs=( + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -Wno-dev + ) + + cmake_src_configure +} |