summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-09-05 22:20:15 +0100
committerMarek Szuba <marecki@gentoo.org>2022-09-05 22:57:09 +0100
commitd2b7ead087a9c1d8f87bfbabb1237633fcaa073f (patch)
treea4677149811e657ff4dd1efb554ca5b111a3c8bf /dev-util/opencl-headers
parentnet-wireless/gnome-bluetooth: Version bump to 42.4 (diff)
downloadgentoo-d2b7ead087a9c1d8f87bfbabb1237633fcaa073f.tar.gz
gentoo-d2b7ead087a9c1d8f87bfbabb1237633fcaa073f.tar.bz2
gentoo-d2b7ead087a9c1d8f87bfbabb1237633fcaa073f.zip
dev-util/opencl-headers: use cmake
Recent versions of opencl-headers come with a test suite (yes, of headers!), and also install CMake modules for locating them which are needed e.g. by latest OpenCL-HPP releases. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-util/opencl-headers')
-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
}