diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-06-02 00:36:32 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-06-02 00:36:32 +0100 |
commit | da681f4b4d0f3d42cab47d0f3092301a2c07bdbd (patch) | |
tree | c73d00795a5586ca4614d42a022cc2840335e527 /dev-libs/opencl-icd-loader | |
parent | dev-util/opencl-headers: add 2022.05.18 (diff) | |
download | gentoo-da681f4b4d0f3d42cab47d0f3092301a2c07bdbd.tar.gz gentoo-da681f4b4d0f3d42cab47d0f3092301a2c07bdbd.tar.bz2 gentoo-da681f4b4d0f3d42cab47d0f3092301a2c07bdbd.zip |
dev-libs/opencl-icd-loader: add 2022.05.18
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/opencl-icd-loader')
-rw-r--r-- | dev-libs/opencl-icd-loader/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/opencl-icd-loader/Manifest b/dev-libs/opencl-icd-loader/Manifest index a3a68c2369fe..939db9f6bb54 100644 --- a/dev-libs/opencl-icd-loader/Manifest +++ b/dev-libs/opencl-icd-loader/Manifest @@ -1,2 +1,3 @@ DIST opencl-icd-loader-2021.06.30.tar.gz 81832 BLAKE2B de36c69a46582a468594dd61997d2c3e44f523613b3da4b9c4a20ae764e4be47b00e656f6f79e371dc32174c6be0a827e3a1a8830af92ab552799e2837f62c66 SHA512 baee7fa33fe654034aae60cf9886d79a04f4dc61a1546bfa1016c66bfba103caa9fb7b55ee79854f2f7435afb40c82b1b6ff8022507279dea271ab4d96b0076e DIST opencl-icd-loader-2022.01.04.tar.gz 81969 BLAKE2B 20018654ae1e9566d806f4d1de64301e0f023ffad2d432c852d4dcf7e323c9c1d60f2aa49a1290cc1263e0e9386b7b0ae4095341f9aaffd6a27edf53b1d1b49e SHA512 060769ed8c84d906b2feacb4be5402c67b5cd561dc2334b384a731e66f301840ad2fc2ed143d32cfeab246d91a6c1f5377b6c9db4d8fc0571a90838c575aca01 +DIST opencl-icd-loader-2022.05.18.tar.gz 86968 BLAKE2B 24931d9f59e885ea5673c774c30632735392a9994545d87737ac392566af991385f25a5b71a8f79b4dd271c6675667088123d25c015fbc843378641f19791ffa SHA512 a02cfef224f552294f029ad5ffda8901cc486cedaab8e7b47723eec59d215488bce4d255bd6350980e8fbcf7f71c73939b10ebb2b7cfd51c5b8051079e2b3af7 diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild new file mode 100644 index 000000000000..e6f7a876b853 --- /dev/null +++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.05.18.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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-${PV} + !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 +} |