diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-04-25 00:06:55 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-04-25 00:35:07 +0200 |
commit | e41b520af6aac5aceabd24511afeb9300f848f20 (patch) | |
tree | 2d3e8b12732e5d872d44b48af952b18ce1ffb6ec /dev-libs | |
parent | dev-util/spirv-llvm-translator: add myself as co-maint (diff) | |
download | gentoo-e41b520af6aac5aceabd24511afeb9300f848f20.tar.gz gentoo-e41b520af6aac5aceabd24511afeb9300f848f20.tar.bz2 gentoo-e41b520af6aac5aceabd24511afeb9300f848f20.zip |
dev-libs/opencl-clang: add 14.0.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/opencl-clang/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-14.0.0.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest index d1c7f446ecd8..039faf61769c 100644 --- a/dev-libs/opencl-clang/Manifest +++ b/dev-libs/opencl-clang/Manifest @@ -1,2 +1,3 @@ DIST opencl-clang-12.0.0.tar.gz 25292 BLAKE2B 6979ce3f37b0e29e6b7ca9b015c04af6e01ceb6381158492a928d805b26b9bddf00b7a7a3edd987924f1c3a8ad914b7d6e9d9fea22b12166afceb25365edae6c SHA512 7fa05480b10be97dd784b8fb7579a2471cf3a904facd9949a980602085515bb3d42a042c74db80381771ad18f78bed2efdcb09538a865ac4a600d6190b8f9c31 DIST opencl-clang-13.0.0.tar.gz 25299 BLAKE2B 1aabb4a97ba0bfd6129ea2b821508457de9d8ab78b4456217d655239081f8547e87730f54f05511e1a3ca6c54836fad5cb0cf69f26ac5ffd86ff6ae930f5e2dc SHA512 d346e51339060795d80bdf9d3e3b58e55b089d94ed3c0bc3c7e1e8f81a5f65238d90dacc95ec27e8db7d38a6a03b05df5c4120e9ba0ec72a7bbca28a59d697f7 +DIST opencl-clang-14.0.0.tar.gz 26109 BLAKE2B 2ae5e6d69e2f13b867712d03b52fce893aeb70566f7f97d54858639786276f49b0b6b5768aebfedeb7fe50d95511178d7dd9df7e80d3fd27df1fb3fe1d2ab955 SHA512 ab9a3fd40542283bdd2646d9ef8d3217420c82a41b183d705e48f48949505ecadc1fa435e23a7ceadf5a335200f5f3752b42715e2ac7f63173fc09637c5c609a diff --git a/dev-libs/opencl-clang/opencl-clang-14.0.0.ebuild b/dev-libs/opencl-clang/opencl-clang-14.0.0.ebuild new file mode 100644 index 000000000000..860b6ca30db9 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-14.0.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT="14" + +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="14" +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 +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + ) + + cmake_src_configure +} |