From 6047ce28f28f6ebc8b1c2994982b7046af33ba23 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Wed, 11 Mar 2020 19:22:15 +0100 Subject: [PATCH] dev-libs/opencl-clang: bump slot 8 to version 8.0.1.1 Signed-off-by: Marek Szuba --- dev-libs/opencl-clang/Manifest | 1 + .../opencl-clang/opencl-clang-8.0.1.1.ebuild | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 dev-libs/opencl-clang/opencl-clang-8.0.1.1.ebuild diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest index 7c968fe057d3..35a986f18948 100644 --- a/dev-libs/opencl-clang/Manifest +++ b/dev-libs/opencl-clang/Manifest @@ -1,2 +1,3 @@ +DIST opencl-clang-8.0.1.1.tar.gz 42534 BLAKE2B e0dc6a4cc6f738f0f5cecfa9ef5b2c219dc1f1714cb5ff2dbf0d7a9ff9efe4cdd4ce0b3780f0ca53f9582b0b73b2cbfad28a9ddec76ef8f6978ee31fa3ee111c SHA512 8456a99668f7709d601ab49c6f8219a1de74363f270e606b5832cb13f196d65b6fe6cb961430b3f45875fec49a2f06c178e935cf3d1b118d033583d90611df15 DIST opencl-clang-8.0.1_p20191001.tar.gz 41402 BLAKE2B 0ab3cc4f84a9e3e599d4e0995f219b94761b882a6290d9c1e399bf820074b72daab935a9d48d09d3e02d1b46659fc8c00613f35e88f0231234e31f93ca6e4d7a SHA512 87f3855bd2cc9a416f317afc98ad7cd1cfcb5bf4b2ebf7401837c1734b1c8d10e07843aab78735bf48888523b231db1911014a6468c0b4c461c43a5434a31ada DIST opencl-clang-9.0.0.tar.gz 23345 BLAKE2B adbce64efb2c1e4e96d4aff585c0f18bd06036a60b35164681b9f5b4a6c89933e5428e9959ddd3cec89b93a5c350e6b0f9b15b8be2be42cd520ca55852352df5 SHA512 126974d816e7f2a90ddb2faa4e8e95841d8ae15f24e77013ca8894ce75ad5079ffe942fb40731030363a10e470e66f2ad1794c2fe31aee6f8608304b492b30eb diff --git a/dev-libs/opencl-clang/opencl-clang-8.0.1.1.ebuild b/dev-libs/opencl-clang/opencl-clang-8.0.1.1.ebuild new file mode 100644 index 000000000000..e4a1ae005027 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-8.0.1.1.ebuild @@ -0,0 +1,40 @@ +# 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="8" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +BDEPEND="dev-vcs/git" +COMMON="sys-devel/clang:8=[static-analyzer,${MULTILIB_USEDEP}]" +DEPEND="${COMMON} + dev-util/spirv-llvm-translator:8=[${MULTILIB_USEDEP}]" +RDEPEND="${COMMON}" + +LLVM_MAX_SLOT=8 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.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 +} -- 2.26.2