summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-09-05 22:56:43 +0100
committerMarek Szuba <marecki@gentoo.org>2022-09-05 22:57:10 +0100
commitf7ad1547e28dd43b4720e4499677ba16339b0f7e (patch)
treee39408524b86d7cc404df016326b7cd1d2b395dc /dev-libs/clhpp
parentdev-util/opencl-headers: use cmake (diff)
downloadgentoo-f7ad1547e28dd43b4720e4499677ba16339b0f7e.tar.gz
gentoo-f7ad1547e28dd43b4720e4499677ba16339b0f7e.tar.bz2
gentoo-f7ad1547e28dd43b4720e4499677ba16339b0f7e.zip
dev-libs/clhpp: add 2.0.17
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/clhpp')
-rw-r--r--dev-libs/clhpp/Manifest1
-rw-r--r--dev-libs/clhpp/clhpp-2.0.17.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/clhpp/Manifest b/dev-libs/clhpp/Manifest
index 5542473a31a7..93f078070523 100644
--- a/dev-libs/clhpp/Manifest
+++ b/dev-libs/clhpp/Manifest
@@ -1 +1,2 @@
DIST clhpp-2.0.15.tar.gz 99826 BLAKE2B de5f6cab05d21199ffea37bbbcc5d312a4b812b602ce091d8fa22cb615060ce08454de1341881792996dd5c06378657a297505ff25ac159d85b59995e924bca5 SHA512 d24c035425c8204099e5264e61939c568e85b64e94d5ed3c58fe9430f4516495a974080a684b742f5aea1351455a0755efccd14317c20cd34885880cf1d8133b
+DIST clhpp-2.0.17.tar.gz 106799 BLAKE2B bccbbbc07e83609f49253636eb08a4da19f92c7188dad71759fa9cceaad571291c05595b8f2a7cc427ea0df658f1b7133ef0fdbbfed3ca3c29c85629b005d541 SHA512 af21fac8856a1a7d5de6ccde64dee9518740f75503808488312e226ae441e013e7340a7089f273b021a8d1e34c17dad9df51953c742eef8f8c470657a7816fe2
diff --git a/dev-libs/clhpp/clhpp-2.0.17.ebuild b/dev-libs/clhpp/clhpp-2.0.17.ebuild
new file mode 100644
index 000000000000..5855e92bc4f9
--- /dev/null
+++ b/dev-libs/clhpp/clhpp-2.0.17.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 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_PV="2022.05.18"
+MY_P="${MY_PN}-${MY_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${MY_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"
+# Need an opencl-headers ebuild which installs cmake package configs
+DEPEND="${RDEPEND}
+ >=dev-util/opencl-headers-2022.05.18-r1"
+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
+}