diff options
author | Janusz Andrzejewski <janusz.andrzejewski@gmail.com> | 2021-12-30 22:41:13 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-01-21 08:51:14 +0200 |
commit | cedb362f8b9bae5ab0c1e4420618d605a675d978 (patch) | |
tree | de6462c662f21418f19d38fd34e2553913ab3d7c | |
parent | dev-db/sqlcl-bin: removed old (diff) | |
download | gentoo-cedb362f8b9bae5ab0c1e4420618d605a675d978.tar.gz gentoo-cedb362f8b9bae5ab0c1e4420618d605a675d978.tar.bz2 gentoo-cedb362f8b9bae5ab0c1e4420618d605a675d978.zip |
dev-libs/opencl-clang: ver 13.0.0
Simple update for compiling with llvm 13
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Janusz Andrzejewski <janusz.andrzejewski@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23593
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r-- | dev-libs/opencl-clang/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/opencl-clang/files/opencl-clang-13.0.0_version.patch | 11 | ||||
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-13.0.0.ebuild | 40 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest index f0aff210ef63..d66790347665 100644 --- a/dev-libs/opencl-clang/Manifest +++ b/dev-libs/opencl-clang/Manifest @@ -1,2 +1,3 @@ DIST opencl-clang-11.1.0_pre20201222.tar.gz 77968 BLAKE2B efb1759329869eda69cb2e001afe27180d69f030b980cd45f137a34ca54be0bb41849a447dff8a28f20dbe3e7ed66204bcf54a62caef9efcecea815b25951f9e SHA512 46e904855122e24f6214748186d40ba3f85c14169403a192bd28b8d5faf68afeca36a424609ee7c94ddaa5aa0d8b1268bf89ce9cc255933093d71f587889e3e4 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 diff --git a/dev-libs/opencl-clang/files/opencl-clang-13.0.0_version.patch b/dev-libs/opencl-clang/files/opencl-clang-13.0.0_version.patch new file mode 100644 index 000000000000..1664960b6608 --- /dev/null +++ b/dev-libs/opencl-clang/files/opencl-clang-13.0.0_version.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -20,7 +20,7 @@ + add_definitions(-DUSE_PREBUILT_LLVM) + + if(NOT PREFERRED_LLVM_VERSION) +- set(PREFERRED_LLVM_VERSION "12.0.0") ++ set(PREFERRED_LLVM_VERSION "13.0.0") + endif(NOT PREFERRED_LLVM_VERSION) + message(STATUS "Looking for LLVM version ${PREFERRED_LLVM_VERSION}") + find_package(LLVM ${PREFERRED_LLVM_VERSION} REQUIRED) diff --git a/dev-libs/opencl-clang/opencl-clang-13.0.0.ebuild b/dev-libs/opencl-clang/opencl-clang-13.0.0.ebuild new file mode 100644 index 000000000000..1c05a54ecb8e --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-13.0.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake + +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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${PV}" + +LICENSE="UoI-NCSA" +SLOT="13" +KEYWORDS="~amd64" + +DEPEND=" + >=dev-util/spirv-llvm-translator-13.0.0:13=[${MULTILIB_USEDEP}] + >=sys-devel/clang-13.0.0:13=[static-analyzer,${MULTILIB_USEDEP}] + sys-devel/llvm:13=[${MULTILIB_USEDEP}] +" +RDEPEND="${DEPEND}" + +LLVM_MAX_SLOT=13 + +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 +) + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + ) + cmake_src_configure +} |