diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-25 03:50:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-25 03:50:40 +0000 |
commit | 1e17db840dfd2f8b2b43a0a385c106812ebcfea9 (patch) | |
tree | 2c4c952ad148d645e2530f9c50315c4125f3517a /dev-libs/clhpp/clhpp-2023.02.06.ebuild | |
parent | a1c55a7e2f400a6170fd3df167bfdc299c05e2db (diff) |
gentoo auto-resync : 25:02:2023 - 03:50:40
Diffstat (limited to 'dev-libs/clhpp/clhpp-2023.02.06.ebuild')
-rw-r--r-- | dev-libs/clhpp/clhpp-2023.02.06.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/clhpp/clhpp-2023.02.06.ebuild b/dev-libs/clhpp/clhpp-2023.02.06.ebuild new file mode 100644 index 000000000000..c87a653da5d2 --- /dev/null +++ b/dev-libs/clhpp/clhpp-2023.02.06.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" +RUBY_OPTIONAL="yes" + +inherit cmake ruby-ng + +MY_PN="OpenCL-CLHPP" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Khronos OpenCL C++ bindings" +HOMEPAGE="https://github.com/KhronosGroup/OpenCL-CLHPP/" +SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Khronos-CLHPP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +# Tests require CMock (NOT cmocka), which is currently unpackaged +RESTRICT="test" + +RDEPEND="virtual/opencl" +DEPEND="${RDEPEND} + >=dev-util/opencl-headers-${PV}" +BDEPEND="test? ( $(ruby_implementations_depend) )" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + use test && ruby-ng_pkg_setup +} + +src_unpack() { + # suppress ruby-ng export + default +} + +src_prepare() { + # suppress ruby-ng export + cmake_src_prepare +} + +src_compile() { + # suppress ruby-ng export + cmake_src_compile +} + +src_install() { + # suppress ruby-ng export + cmake_src_install +} + +src_configure() { + local mycmakeargs=( + -DBUILD_DOCS=OFF + -DBUILD_EXAMPLES=OFF + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} |