-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
U:dev-libs/opencl-icd-loader-2024.10.24
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST opencl-icd-loader-2024.10.24.tar.gz 98185 BLAKE2B 5cdee8c59054ac607ac6ce01c0b9d05791ccaeef63ab586a0bd0a78d3a79fc7304c916899e15aa26dd799292d7c670de74f44ab2cc448a3046c39128398194ba SHA512 29043eff21076440046314edf62bb488b7e4e17d9fbdac4c3727d8e2523c0c8fbf89ee7fcf762528af761ddbcb4be24e5f062ffa82f778401d6365faa35344a8 |
44 changes: 44 additions & 0 deletions
44
dev-libs/opencl-icd-loader/opencl-icd-loader-2024.10.24.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake-multilib prefix | ||
|
||
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" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="amd64 ~loong ppc64 ~riscv x86" | ||
IUSE="test" | ||
|
||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND="!dev-libs/ocl-icd" | ||
DEPEND="${RDEPEND} | ||
>=dev-util/opencl-headers-${PV}" | ||
|
||
src_prepare() { | ||
hprefixify loader/icd_platform.h | ||
cmake_src_prepare | ||
} | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST opencl-headers-2024.10.24.tar.gz 85151 BLAKE2B d35c2ea06a1162e1716d5973b3587bd8c50420cf15cb7c13c61d16df9b94ec1df9b3e4621291d0384de40672f2f919b8df3edb5067755df2e236e596c82acfd5 SHA512 9d2ed2a8346bc3f967989091d8cc36148ffe5ff13fe30e12354cc8321c09328bbe23e74817526b99002729c884438a3b1834e175a271f6d36e8341fd86fc1ad5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake | ||
|
||
MY_PN="OpenCL-Headers" | ||
MY_P="${MY_PN}-${PV}" | ||
|
||
DESCRIPTION="Unified C language headers for the OpenCL API" | ||
HOMEPAGE="https://github.com/KhronosGroup/OpenCL-Headers" | ||
SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
S="${WORKDIR}"/${MY_P} | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="amd64 ~loong ppc64 ~riscv x86" | ||
IUSE="test" | ||
|
||
RESTRICT="!test? ( test )" | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DBUILD_TESTING=$(usex test) | ||
) | ||
cmake_src_configure | ||
} |