# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) DESCRIPTION="Khronos OpenCL C++ bindings" HOMEPAGE="https://github.com/KhronosGroup/OpenCL-CLHPP/" SRC_URI="https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v2.0.10.tar.gz" LICENSE="Khronos" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" inherit python-any-r1 cmake-utils DEPEND="" RDEPEND="${DEPEND}" BDEPEND="${PYTHON_DEPS}" src_unpack() { unpack ${A} # create symlink to change name ln -s OpenCL-CLHPP-${PV} ${P} } src_prepare() { # User patches + QA cmake-utils_src_prepare } src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/include" -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF ) cmake-utils_src_configure } src_compile() { cmake-utils_src_compile } src_install() { cmake-utils_src_install }