Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/clhpp/, licenses/
Date: Fri, 26 Apr 2019 18:10:21
Message-Id: 1556302120.15f78cdd9dc6aabf20f1096e568cfbd3118ce561.mattst88@gentoo
1 commit: 15f78cdd9dc6aabf20f1096e568cfbd3118ce561
2 Author: Jan Vesely <jano.vesely <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 25 22:25:05 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 26 18:08:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15f78cdd
7
8 dev-libs/clhpp: New package for Khronos OpenCL C++ bindings.
9
10 Headers only.
11 Add Khronos-CLHPP license.
12 Signed-off-by: Jan Vesely <jano.vesely <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/11827
14 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
15
16 dev-libs/clhpp/Manifest | 1 +
17 dev-libs/clhpp/clhpp-2.0.10.ebuild | 49 ++++++++++++++++++++++++++++++++++++++
18 dev-libs/clhpp/metadata.xml | 11 +++++++++
19 licenses/Khronos-CLHPP | 25 +++++++++++++++++++
20 4 files changed, 86 insertions(+)
21
22 diff --git a/dev-libs/clhpp/Manifest b/dev-libs/clhpp/Manifest
23 new file mode 100644
24 index 00000000000..a7469dbbd76
25 --- /dev/null
26 +++ b/dev-libs/clhpp/Manifest
27 @@ -0,0 +1 @@
28 +DIST clhpp-2.0.10.tar.gz 129954 BLAKE2B 1beb9b41ce1ad8ec88d0ccfa5f1d7a7af931841fa64d79b9eb9db90538f1b43f3cee5c74dc015ba835ee4ded2e926967bc3aa00dcc6ec0f5b65a04f9618ea1a9 SHA512 4a4898540c55422ca0cc6ba7f0c5495b915fc34df50f8add90e7f06dd5ef1d01a767234ecdee3757292980aa2f938e773177bcc73f28ac9c1b42d386863dea58
29
30 diff --git a/dev-libs/clhpp/clhpp-2.0.10.ebuild b/dev-libs/clhpp/clhpp-2.0.10.ebuild
31 new file mode 100644
32 index 00000000000..dcea074146d
33 --- /dev/null
34 +++ b/dev-libs/clhpp/clhpp-2.0.10.ebuild
35 @@ -0,0 +1,49 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +PYTHON_COMPAT=( python2_7 python3_5 python3_6 python3_7 )
41 +
42 +DESCRIPTION="Khronos OpenCL C++ bindings"
43 +HOMEPAGE="https://github.com/KhronosGroup/OpenCL-CLHPP/"
44 +SRC_URI="https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Khronos-CLHPP"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE=""
50 +
51 +inherit python-any-r1 cmake-utils
52 +
53 +DEPEND="virtual/opencl"
54 +RDEPEND="${DEPEND}"
55 +BDEPEND="${PYTHON_DEPS}"
56 +
57 +src_unpack() {
58 + unpack ${A}
59 + # create symlink to change name
60 + ln -s OpenCL-CLHPP-${PV} ${P}
61 +}
62 +
63 +src_prepare() {
64 + # User patches + QA
65 + cmake-utils_src_prepare
66 +}
67 +
68 +src_configure() {
69 + local mycmakeargs=(
70 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/include"
71 + -DBUILD_DOCS=OFF
72 + -DBUILD_EXAMPLES=OFF
73 + -DBUILD_TESTS=OFF
74 + )
75 + cmake-utils_src_configure
76 +}
77 +
78 +src_compile() {
79 + cmake-utils_src_compile
80 +}
81 +
82 +src_install() {
83 + cmake-utils_src_install
84 +}
85
86 diff --git a/dev-libs/clhpp/metadata.xml b/dev-libs/clhpp/metadata.xml
87 new file mode 100644
88 index 00000000000..61f42884c3d
89 --- /dev/null
90 +++ b/dev-libs/clhpp/metadata.xml
91 @@ -0,0 +1,11 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 +<maintainer type="project">
96 + <email>x11@g.o</email>
97 + <name>X11</name>
98 +</maintainer>
99 +<longdescription lang="en">
100 +Khronos (tm) provided headers for C++ bindings for OpenCL.
101 +</longdescription>
102 +</pkgmetadata>
103
104 diff --git a/licenses/Khronos-CLHPP b/licenses/Khronos-CLHPP
105 new file mode 100644
106 index 00000000000..5c0255a8aaa
107 --- /dev/null
108 +++ b/licenses/Khronos-CLHPP
109 @@ -0,0 +1,25 @@
110 +Copyright (c) 2008-2015 The Khronos Group Inc.
111 +
112 +Permission is hereby granted, free of charge, to any person obtaining a
113 +copy of this software and/or associated documentation files (the
114 +"Materials"), to deal in the Materials without restriction, including
115 +without limitation the rights to use, copy, modify, merge, publish,
116 +distribute, sublicense, and/or sell copies of the Materials, and to
117 +permit persons to whom the Materials are furnished to do so, subject to
118 +the following conditions:
119 +
120 +The above copyright notice and this permission notice shall be included
121 +in all copies or substantial portions of the Materials.
122 +
123 +MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
124 +KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
125 +SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
126 + https://www.khronos.org/registry/
127 +
128 +THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
129 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
130 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
131 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
132 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
133 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
134 +MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.