diff options
-rw-r--r-- | dev-libs/opencl-icd-loader/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/opencl-icd-loader/opencl-icd-loader-2022.09.23.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/opencl-icd-loader/Manifest b/dev-libs/opencl-icd-loader/Manifest index 4080c153ca6f..cc3065efb35c 100644 --- a/dev-libs/opencl-icd-loader/Manifest +++ b/dev-libs/opencl-icd-loader/Manifest @@ -1,2 +1,3 @@ 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 +DIST opencl-icd-loader-2022.09.23.tar.gz 87785 BLAKE2B 0f5e34be7069e4131807c4aa4056d09fb1a99a8e1be523a7c3088233c29c67532a23cea8fac4dcfaeb877963a9c6bba6de4c2a91c4b217352608f8f6ce6ffdbb SHA512 0c1faacf8f537ebd9d7a8c085d351b6bc855bb4dff85bb315ded081ab2b9ac98bb03151f701d1e8a1dde0b0d0d972e1ecb6a672ba90236ee624911507b07ce0b diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.09.23.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.09.23.ebuild new file mode 100644 index 000000000000..78a30e45e5aa --- /dev/null +++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2022.09.23.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~ppc64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND="!dev-libs/ocl-icd" +DEPEND="${RDEPEND} + >=dev-util/opencl-headers-${PV}" + +S="${WORKDIR}/${MY_P}" + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +multilib_src_test() { + local -x OCL_ICD_FILENAMES="${BUILD_DIR}/test/driver_stub/libOpenCLDriverStub.so" + local -x OCL_ICD_VENDORS="/dev/null" + cmake_src_test +} |