mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-23 18:38:08 -07:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/include
|
||||
doins -r "${S}"/CL
|
||||
|
||||
einstalldocs
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user