commit: 3a9b449dec17fc2a160d67b5822fa226144ad563 Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Sat Aug 28 20:18:27 2021 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Sat Aug 28 20:18:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9b449d
dev-libs/opencl-icd-loader: add 2021.06.30 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> dev-libs/opencl-icd-loader/Manifest | 1 + .../opencl-icd-loader-2021.06.30.ebuild | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-libs/opencl-icd-loader/Manifest b/dev-libs/opencl-icd-loader/Manifest index d2b192bb1b7..b02174df087 100644 --- a/dev-libs/opencl-icd-loader/Manifest +++ b/dev-libs/opencl-icd-loader/Manifest @@ -1 +1,2 @@ DIST opencl-icd-loader-2021.04.29.tar.gz 81650 BLAKE2B 399aa3cf3b3fd5fa5bef94302face8630f7b3485c01000960687f77c823311a28f9f867f929c4c03ec873b724ae02e1ecbbe974fe3ddddf4334064609cb61b51 SHA512 4b57a168fe75cced8162e173bc1f5d32fd11285a0443478f938ace1b88f6422007d05ab6bfb272a28838129122ffcd98d33634a55e82b9df84be0b6d4e609178 +DIST opencl-icd-loader-2021.06.30.tar.gz 81832 BLAKE2B de36c69a46582a468594dd61997d2c3e44f523613b3da4b9c4a20ae764e4be47b00e656f6f79e371dc32174c6be0a827e3a1a8830af92ab552799e2837f62c66 SHA512 baee7fa33fe654034aae60cf9886d79a04f4dc61a1546bfa1016c66bfba103caa9fb7b55ee79854f2f7435afb40c82b1b6ff8022507279dea271ab4d96b0076e diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2021.06.30.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2021.06.30.ebuild new file mode 100644 index 00000000000..7ff078b1e4c --- /dev/null +++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2021.06.30.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +inherit cmake-multilib + +MY_PN="OpenCL-ICD-Loader" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Official Khronos OpenCL ICD Loader" +HOMEPAGE="https://github.com/KhronosGroup/OpenCL-ICD-Loader" +SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND=">=dev-util/opencl-headers-2021.06.30 + !dev-libs/ocl-icd" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DOPENCL_ICD_LOADER_HEADERS_DIR="${EPREFIX}/usr/include" + ) + cmake_src_configure +} + +multilib_src_test() { + OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so" \ + cmake_src_test +}