diff options
-rw-r--r-- | dev-util/opencl-headers/opencl-headers-2022.05.18-r1.ebuild (renamed from dev-util/opencl-headers/opencl-headers-2022.05.18.ebuild) | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-util/opencl-headers/opencl-headers-2022.05.18.ebuild b/dev-util/opencl-headers/opencl-headers-2022.05.18-r1.ebuild index 1a6a9ed81af1..245fefd3e4c0 100644 --- a/dev-util/opencl-headers/opencl-headers-2022.05.18.ebuild +++ b/dev-util/opencl-headers/opencl-headers-2022.05.18-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit cmake + MY_PN="OpenCL-Headers" MY_P="${MY_PN}-${PV}" @@ -13,12 +15,15 @@ SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/refs/tags/v${PV}.tar.g LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="test" -S="${WORKDIR}"/${MY_P} +RESTRICT="!test? ( test )" -src_install() { - insinto /usr/include - doins -r "${S}"/CL +S="${WORKDIR}"/${MY_P} - einstalldocs +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure } |