1 |
commit: 375956ce96498b5a804ed970665ef96315d9efa4 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sat Jan 30 09:50:12 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat Jan 30 09:50:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=375956ce |
7 |
|
8 |
sci-libs/clfft: EAPI bump, add doc building |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
sci-libs/clfft/clfft-2.12.0.ebuild | 52 -------------------------------------- |
14 |
sci-libs/clfft/clfft-2.12.1.ebuild | 52 -------------------------------------- |
15 |
sci-libs/clfft/clfft-2.12.2.ebuild | 42 +++++++++++++++--------------- |
16 |
sci-libs/clfft/clfft-9999.ebuild | 40 ++++++++++++++--------------- |
17 |
4 files changed, 40 insertions(+), 146 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/clfft/clfft-2.12.0.ebuild b/sci-libs/clfft/clfft-2.12.0.ebuild |
20 |
deleted file mode 100644 |
21 |
index c008c602c..000000000 |
22 |
--- a/sci-libs/clfft/clfft-2.12.0.ebuild |
23 |
+++ /dev/null |
24 |
@@ -1,52 +0,0 @@ |
25 |
-# Copyright 1999-2016 Gentoo Foundation |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
- |
28 |
-EAPI=6 |
29 |
- |
30 |
-inherit cmake-utils |
31 |
- |
32 |
-MY_PN="clFFT" |
33 |
- |
34 |
-DESCRIPTION="Library containing FFT functions written in OpenCL" |
35 |
-HOMEPAGE="https://github.com/clMathLibraries/clFFT" |
36 |
-SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
- |
38 |
-LICENSE="Apache-2.0" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~amd64" |
41 |
-IUSE="callback_client +client examples test" |
42 |
- |
43 |
-RDEPEND=" |
44 |
- >=sys-devel/gcc-4.6:* |
45 |
- virtual/opencl |
46 |
- dev-libs/boost" |
47 |
-DEPEND="${RDEPEND}" |
48 |
-# test? ( |
49 |
-# dev-cpp/gtest |
50 |
-# sci-libs/fftw:3.0 |
51 |
-# )" |
52 |
- |
53 |
-# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. |
54 |
-# Therefore src_test() won't execute any test. |
55 |
-RESTRICT="test" |
56 |
- |
57 |
-S="${WORKDIR}/${MY_PN}-${PV}/src" |
58 |
- |
59 |
-pkg_pretend() { |
60 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
61 |
- if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then |
62 |
- die "Compilation with gcc older than 4.6 is not supported." |
63 |
- fi |
64 |
- fi |
65 |
-} |
66 |
- |
67 |
-src_configure() { |
68 |
- local mycmakeargs=( |
69 |
- -DBUILD_CALLBACK_CLIENT="$(usex callback_client)" |
70 |
- -DBUILD_CLIENT="$(usex client)" |
71 |
- -DBUILD_SAMPLE="$(usex examples)" |
72 |
- -DBUILD_TEST="$(usex test)" |
73 |
- -DBoost_USE_STATIC_LIBS=OFF |
74 |
- ) |
75 |
- cmake-utils_src_configure |
76 |
-} |
77 |
|
78 |
diff --git a/sci-libs/clfft/clfft-2.12.1.ebuild b/sci-libs/clfft/clfft-2.12.1.ebuild |
79 |
deleted file mode 100644 |
80 |
index c008c602c..000000000 |
81 |
--- a/sci-libs/clfft/clfft-2.12.1.ebuild |
82 |
+++ /dev/null |
83 |
@@ -1,52 +0,0 @@ |
84 |
-# Copyright 1999-2016 Gentoo Foundation |
85 |
-# Distributed under the terms of the GNU General Public License v2 |
86 |
- |
87 |
-EAPI=6 |
88 |
- |
89 |
-inherit cmake-utils |
90 |
- |
91 |
-MY_PN="clFFT" |
92 |
- |
93 |
-DESCRIPTION="Library containing FFT functions written in OpenCL" |
94 |
-HOMEPAGE="https://github.com/clMathLibraries/clFFT" |
95 |
-SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
96 |
- |
97 |
-LICENSE="Apache-2.0" |
98 |
-SLOT="0" |
99 |
-KEYWORDS="~amd64" |
100 |
-IUSE="callback_client +client examples test" |
101 |
- |
102 |
-RDEPEND=" |
103 |
- >=sys-devel/gcc-4.6:* |
104 |
- virtual/opencl |
105 |
- dev-libs/boost" |
106 |
-DEPEND="${RDEPEND}" |
107 |
-# test? ( |
108 |
-# dev-cpp/gtest |
109 |
-# sci-libs/fftw:3.0 |
110 |
-# )" |
111 |
- |
112 |
-# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. |
113 |
-# Therefore src_test() won't execute any test. |
114 |
-RESTRICT="test" |
115 |
- |
116 |
-S="${WORKDIR}/${MY_PN}-${PV}/src" |
117 |
- |
118 |
-pkg_pretend() { |
119 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
120 |
- if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then |
121 |
- die "Compilation with gcc older than 4.6 is not supported." |
122 |
- fi |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-src_configure() { |
127 |
- local mycmakeargs=( |
128 |
- -DBUILD_CALLBACK_CLIENT="$(usex callback_client)" |
129 |
- -DBUILD_CLIENT="$(usex client)" |
130 |
- -DBUILD_SAMPLE="$(usex examples)" |
131 |
- -DBUILD_TEST="$(usex test)" |
132 |
- -DBoost_USE_STATIC_LIBS=OFF |
133 |
- ) |
134 |
- cmake-utils_src_configure |
135 |
-} |
136 |
|
137 |
diff --git a/sci-libs/clfft/clfft-2.12.2.ebuild b/sci-libs/clfft/clfft-2.12.2.ebuild |
138 |
index c008c602c..9cfbc7f8a 100644 |
139 |
--- a/sci-libs/clfft/clfft-2.12.2.ebuild |
140 |
+++ b/sci-libs/clfft/clfft-2.12.2.ebuild |
141 |
@@ -1,12 +1,16 @@ |
142 |
-# Copyright 1999-2016 Gentoo Foundation |
143 |
+# Copyright 1999-2021 Gentoo Authors |
144 |
# Distributed under the terms of the GNU General Public License v2 |
145 |
|
146 |
-EAPI=6 |
147 |
- |
148 |
-inherit cmake-utils |
149 |
+EAPI=7 |
150 |
|
151 |
MY_PN="clFFT" |
152 |
|
153 |
+DOCS_BUILDER="doxygen" |
154 |
+DOCS_DIR="../docs" |
155 |
+DOCS_CONFIG_NAME="${MY_PN}.doxy" |
156 |
+ |
157 |
+inherit cmake docs |
158 |
+ |
159 |
DESCRIPTION="Library containing FFT functions written in OpenCL" |
160 |
HOMEPAGE="https://github.com/clMathLibraries/clFFT" |
161 |
SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
162 |
@@ -14,17 +18,17 @@ SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${ |
163 |
LICENSE="Apache-2.0" |
164 |
SLOT="0" |
165 |
KEYWORDS="~amd64" |
166 |
-IUSE="callback_client +client examples test" |
167 |
+IUSE="callback_client +client test" |
168 |
|
169 |
RDEPEND=" |
170 |
- >=sys-devel/gcc-4.6:* |
171 |
virtual/opencl |
172 |
- dev-libs/boost" |
173 |
+ dev-libs/boost |
174 |
+" |
175 |
DEPEND="${RDEPEND}" |
176 |
-# test? ( |
177 |
-# dev-cpp/gtest |
178 |
-# sci-libs/fftw:3.0 |
179 |
-# )" |
180 |
+BDEPEND="test? ( |
181 |
+ dev-cpp/gtest |
182 |
+ sci-libs/fftw:3.0 |
183 |
+)" |
184 |
|
185 |
# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. |
186 |
# Therefore src_test() won't execute any test. |
187 |
@@ -32,21 +36,17 @@ RESTRICT="test" |
188 |
|
189 |
S="${WORKDIR}/${MY_PN}-${PV}/src" |
190 |
|
191 |
-pkg_pretend() { |
192 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
193 |
- if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then |
194 |
- die "Compilation with gcc older than 4.6 is not supported." |
195 |
- fi |
196 |
- fi |
197 |
-} |
198 |
- |
199 |
src_configure() { |
200 |
local mycmakeargs=( |
201 |
-DBUILD_CALLBACK_CLIENT="$(usex callback_client)" |
202 |
-DBUILD_CLIENT="$(usex client)" |
203 |
- -DBUILD_SAMPLE="$(usex examples)" |
204 |
-DBUILD_TEST="$(usex test)" |
205 |
-DBoost_USE_STATIC_LIBS=OFF |
206 |
) |
207 |
- cmake-utils_src_configure |
208 |
+ cmake_src_configure |
209 |
+} |
210 |
+ |
211 |
+src_compile() { |
212 |
+ docs_compile |
213 |
+ cmake_src_compile |
214 |
} |
215 |
|
216 |
diff --git a/sci-libs/clfft/clfft-9999.ebuild b/sci-libs/clfft/clfft-9999.ebuild |
217 |
index 55f39f28d..60e6861e0 100644 |
218 |
--- a/sci-libs/clfft/clfft-9999.ebuild |
219 |
+++ b/sci-libs/clfft/clfft-9999.ebuild |
220 |
@@ -1,34 +1,36 @@ |
221 |
-# Copyright 1999-2016 Gentoo Foundation |
222 |
+# Copyright 1999-2021 Gentoo Authors |
223 |
# Distributed under the terms of the GNU General Public License v2 |
224 |
|
225 |
-EAPI=6 |
226 |
- |
227 |
-inherit cmake-utils git-r3 |
228 |
+EAPI=7 |
229 |
|
230 |
MY_PN="clFFT" |
231 |
|
232 |
+DOCS_BUILDER="doxygen" |
233 |
+DOCS_DIR="../docs" |
234 |
+DOCS_CONFIG_NAME="${MY_PN}.doxy" |
235 |
+ |
236 |
+inherit cmake docs git-r3 |
237 |
+ |
238 |
DESCRIPTION="Library containing FFT functions written in OpenCL" |
239 |
HOMEPAGE="https://github.com/clMathLibraries/clFFT" |
240 |
EGIT_REPO_URI=" |
241 |
https://github.com/clMathLibraries/${MY_PN}.git |
242 |
git://github.com/clMathLibraries/${MY_PN}.git |
243 |
- " |
244 |
+" |
245 |
EGIT_BRANCH="develop" |
246 |
|
247 |
LICENSE="Apache-2.0" |
248 |
SLOT="0" |
249 |
-KEYWORDS="" |
250 |
-IUSE="callback_client +client examples test" |
251 |
+IUSE="callback_client +client test" |
252 |
|
253 |
RDEPEND=" |
254 |
- >=sys-devel/gcc-4.6:* |
255 |
virtual/opencl |
256 |
dev-libs/boost" |
257 |
DEPEND="${RDEPEND}" |
258 |
-# test? ( |
259 |
-# dev-cpp/gtest |
260 |
-# sci-libs/fftw:3.0 |
261 |
-# )" |
262 |
+BDEPEND="test? ( |
263 |
+ dev-cpp/gtest |
264 |
+ sci-libs/fftw:3.0 |
265 |
+)" |
266 |
|
267 |
# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. |
268 |
# Therefore src_test() won't execute any test. |
269 |
@@ -36,21 +38,17 @@ RESTRICT="test" |
270 |
|
271 |
S="${WORKDIR}/${P}/src" |
272 |
|
273 |
-pkg_pretend() { |
274 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
275 |
- if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then |
276 |
- die "Compilation with gcc older than 4.6 is not supported." |
277 |
- fi |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
src_configure() { |
282 |
local mycmakeargs=( |
283 |
-DBUILD_CALLBACK_CLIENT="$(usex callback_client)" |
284 |
-DBUILD_CLIENT="$(usex client)" |
285 |
- -DBUILD_SAMPLE="$(usex examples)" |
286 |
-DBUILD_TEST="$(usex test)" |
287 |
-DBoost_USE_STATIC_LIBS=OFF |
288 |
) |
289 |
cmake-utils_src_configure |
290 |
} |
291 |
+ |
292 |
+src_compile() { |
293 |
+ docs_compile |
294 |
+ cmake_src_compile |
295 |
+} |