1 |
commit: a71e8a1c65d7ea3335127fd3ab50a6cf1322269c |
2 |
Author: Michele Santullo <m.santullo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sat May 23 21:43:45 2020 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Sat May 23 21:43:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a71e8a1c |
7 |
|
8 |
dev-cpp/cpp-taskflow: adding package |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
RepoMan-Options: --force |
12 |
Signed-off-by: Michele Santullo <m.santullo <AT> posteo.net> |
13 |
|
14 |
dev-cpp/cpp-taskflow/Manifest | 2 + |
15 |
dev-cpp/cpp-taskflow/cpp-taskflow-2.3.1.ebuild | 39 +++++++++++++++++ |
16 |
dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild | 39 +++++++++++++++++ |
17 |
dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild | 38 +++++++++++++++++ |
18 |
.../files/cpp-taskflow-2.3.1-fix-lib-path.patch | 49 ++++++++++++++++++++++ |
19 |
...pp-taskflow-2.3.1-optional-tests-examples.patch | 49 ++++++++++++++++++++++ |
20 |
.../files/cpp-taskflow-2.4.0-fix-lib-path.patch | 49 ++++++++++++++++++++++ |
21 |
.../cpp-taskflow-2.4.0-fix-version-number.patch | 13 ++++++ |
22 |
...pp-taskflow-2.4.0-optional-tests-examples.patch | 42 +++++++++++++++++++ |
23 |
.../files/cpp-taskflow-9999-fix-lib-path.patch | 49 ++++++++++++++++++++++ |
24 |
...cpp-taskflow-9999-optional-tests-examples.patch | 42 +++++++++++++++++++ |
25 |
dev-cpp/cpp-taskflow/metadata.xml | 15 +++++++ |
26 |
12 files changed, 426 insertions(+) |
27 |
|
28 |
diff --git a/dev-cpp/cpp-taskflow/Manifest b/dev-cpp/cpp-taskflow/Manifest |
29 |
new file mode 100644 |
30 |
index 0000000..408dc82 |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/cpp-taskflow/Manifest |
33 |
@@ -0,0 +1,2 @@ |
34 |
+DIST cpp-taskflow-2.3.1.tar.gz 98888910 BLAKE2B 3ecbc3eaf8db68ded66222c512ff7e22633fc0276eaff8ca9fd43bad13bb810ef064d0c8e762a960cdfff9197e4a810b75005a0063042c724b42599a2716e609 SHA512 94d5784198571886520d9f5d69dbce659c3cd214d986e9ac001816033d7719ae21d22ed2f5879549df15b23035d06200938a07928dd773f507317ede8a121899 |
35 |
+DIST cpp-taskflow-2.4.0.tar.gz 76993334 BLAKE2B 8f257165ab72dbe6c1cf6a86886669008e9f16f1dfd4871defc452bdb9dfa3e45ab9bfbbdc874b4ba566a2a7d8984a666ce2933b2c6d2215467f7fbfa03ac520 SHA512 dd6c7500e39d7058871280d12e120bd28d9609e5289f1d7851b3b59e2c1bfe74d3040d902bd5b26895e558b563c8abad878e7bc343e199e7356940c02a64217f |
36 |
|
37 |
diff --git a/dev-cpp/cpp-taskflow/cpp-taskflow-2.3.1.ebuild b/dev-cpp/cpp-taskflow/cpp-taskflow-2.3.1.ebuild |
38 |
new file mode 100644 |
39 |
index 0000000..97255ac |
40 |
--- /dev/null |
41 |
+++ b/dev-cpp/cpp-taskflow/cpp-taskflow-2.3.1.ebuild |
42 |
@@ -0,0 +1,39 @@ |
43 |
+# Copyright 2020 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+inherit cmake |
49 |
+ |
50 |
+DESCRIPTION="Modern C++ Parallel Task Programming" |
51 |
+HOMEPAGE="https://cpp-taskflow.github.io" |
52 |
+if [[ ${PV} == 9999 ]]; then |
53 |
+ EGIT_REPO_URI="https://github.com/cpp-taskflow/${PN}.git" |
54 |
+ inherit git-r3 |
55 |
+ KEYWORDS="" |
56 |
+else |
57 |
+ SRC_URI="https://github.com/cpp-taskflow/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
58 |
+ KEYWORDS="~amd64 ~x86" |
59 |
+fi |
60 |
+ |
61 |
+LICENSE="MIT" |
62 |
+SLOT="0" |
63 |
+IUSE="test" |
64 |
+ |
65 |
+DEPEND="" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+BDEPEND="" |
68 |
+RESTRICT="!test? ( test )" |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}"/${P}-optional-tests-examples.patch |
72 |
+ "${FILESDIR}"/${P}-fix-lib-path.patch |
73 |
+) |
74 |
+ |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mycmakeargs=( |
78 |
+ -DTF_BUILD_TESTS=$(usex test ON OFF) |
79 |
+ ) |
80 |
+ cmake_src_configure |
81 |
+} |
82 |
|
83 |
diff --git a/dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild b/dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild |
84 |
new file mode 100644 |
85 |
index 0000000..8edadb7 |
86 |
--- /dev/null |
87 |
+++ b/dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild |
88 |
@@ -0,0 +1,39 @@ |
89 |
+# Copyright 2020 Gentoo Authors |
90 |
+# Distributed under the terms of the GNU General Public License v2 |
91 |
+ |
92 |
+EAPI=7 |
93 |
+ |
94 |
+inherit cmake |
95 |
+ |
96 |
+DESCRIPTION="Modern C++ Parallel Task Programming" |
97 |
+HOMEPAGE="https://cpp-taskflow.github.io" |
98 |
+if [[ ${PV} == 9999 ]]; then |
99 |
+ EGIT_REPO_URI="https://github.com/cpp-taskflow/${PN}.git" |
100 |
+ inherit git-r3 |
101 |
+ KEYWORDS="" |
102 |
+else |
103 |
+ SRC_URI="https://github.com/cpp-taskflow/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
104 |
+ KEYWORDS="~amd64 ~x86" |
105 |
+fi |
106 |
+ |
107 |
+LICENSE="MIT" |
108 |
+SLOT="0" |
109 |
+IUSE="test" |
110 |
+ |
111 |
+DEPEND="" |
112 |
+RDEPEND="${DEPEND}" |
113 |
+BDEPEND="" |
114 |
+RESTRICT="!test? ( test )" |
115 |
+ |
116 |
+PATCHES=( |
117 |
+ "${FILESDIR}"/${P}-optional-tests-examples.patch |
118 |
+ "${FILESDIR}"/${P}-fix-lib-path.patch |
119 |
+ "${FILESDIR}"/${P}-fix-version-number.patch |
120 |
+) |
121 |
+ |
122 |
+src_configure() { |
123 |
+ local mycmakeargs=( |
124 |
+ -DTF_BUILD_TESTS=$(usex test ON OFF) |
125 |
+ ) |
126 |
+ cmake_src_configure |
127 |
+} |
128 |
|
129 |
diff --git a/dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild b/dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild |
130 |
new file mode 100644 |
131 |
index 0000000..ced7f05 |
132 |
--- /dev/null |
133 |
+++ b/dev-cpp/cpp-taskflow/cpp-taskflow-9999.ebuild |
134 |
@@ -0,0 +1,38 @@ |
135 |
+# Copyright 2020 Gentoo Authors |
136 |
+# Distributed under the terms of the GNU General Public License v2 |
137 |
+ |
138 |
+EAPI=7 |
139 |
+ |
140 |
+inherit cmake |
141 |
+ |
142 |
+DESCRIPTION="Modern C++ Parallel Task Programming" |
143 |
+HOMEPAGE="https://cpp-taskflow.github.io" |
144 |
+if [[ ${PV} == 9999 ]]; then |
145 |
+ EGIT_REPO_URI="https://github.com/cpp-taskflow/${PN}.git" |
146 |
+ inherit git-r3 |
147 |
+ KEYWORDS="" |
148 |
+else |
149 |
+ SRC_URI="https://github.com/cpp-taskflow/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
150 |
+ KEYWORDS="~amd64 ~x86" |
151 |
+fi |
152 |
+ |
153 |
+LICENSE="MIT" |
154 |
+SLOT="0" |
155 |
+IUSE="test" |
156 |
+ |
157 |
+DEPEND="" |
158 |
+RDEPEND="${DEPEND}" |
159 |
+BDEPEND="" |
160 |
+RESTRICT="!test? ( test )" |
161 |
+ |
162 |
+PATCHES=( |
163 |
+ "${FILESDIR}"/${P}-optional-tests-examples.patch |
164 |
+ "${FILESDIR}"/${P}-fix-lib-path.patch |
165 |
+) |
166 |
+ |
167 |
+src_configure() { |
168 |
+ local mycmakeargs=( |
169 |
+ -DTF_BUILD_TESTS=$(usex test ON OFF) |
170 |
+ ) |
171 |
+ cmake_src_configure |
172 |
+} |
173 |
|
174 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-fix-lib-path.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-fix-lib-path.patch |
175 |
new file mode 100644 |
176 |
index 0000000..2b89307 |
177 |
--- /dev/null |
178 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-fix-lib-path.patch |
179 |
@@ -0,0 +1,49 @@ |
180 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
181 |
+index c267f84..3f357aa 100644 |
182 |
+--- a/CMakeLists.txt |
183 |
++++ b/CMakeLists.txt |
184 |
+@@ -16,6 +16,7 @@ option(TF_BUILD_BENCHMARKS "Enables build of benchmarks" OFF) |
185 |
+ |
186 |
+ # Include additional language check |
187 |
+ include(CheckLanguage) |
188 |
++include(GNUInstallDirs) |
189 |
+ |
190 |
+ # Compiler vendors |
191 |
+ ## g++ |
192 |
+@@ -157,8 +158,8 @@ target_link_libraries( |
193 |
+ #set(CMAKE_CXX_EXTENSIONS OFF) |
194 |
+ |
195 |
+ # installation path |
196 |
+-set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
197 |
+-set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |
198 |
++set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") |
199 |
++set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") |
200 |
+ set(TF_UTEST_DIR ${PROJECT_SOURCE_DIR}/unittests) |
201 |
+ set(TF_EXAMPLE_DIR ${PROJECT_SOURCE_DIR}/examples) |
202 |
+ set(TF_BENCHMARK_DIR ${PROJECT_SOURCE_DIR}/benchmarks) |
203 |
+@@ -782,7 +783,7 @@ install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets) |
204 |
+ install( |
205 |
+ EXPORT ${PROJECT_NAME}Targets |
206 |
+ NAMESPACE ${PROJECT_NAME}:: |
207 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
208 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
209 |
+ ) |
210 |
+ |
211 |
+ # set up config |
212 |
+@@ -791,7 +792,7 @@ include(CMakePackageConfigHelpers) |
213 |
+ configure_package_config_file( |
214 |
+ ${PROJECT_NAME}Config.cmake.in |
215 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
216 |
+- INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
217 |
++ INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
218 |
+ PATH_VARS TF_INC_INSTALL_DIR |
219 |
+ ) |
220 |
+ |
221 |
+@@ -803,6 +804,6 @@ write_basic_package_version_file( |
222 |
+ install( |
223 |
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
224 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake |
225 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
226 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
227 |
+ ) |
228 |
+ |
229 |
|
230 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-optional-tests-examples.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-optional-tests-examples.patch |
231 |
new file mode 100644 |
232 |
index 0000000..279277e |
233 |
--- /dev/null |
234 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.3.1-optional-tests-examples.patch |
235 |
@@ -0,0 +1,49 @@ |
236 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
237 |
+index 3fccfd2..c267f84 100644 |
238 |
+--- a/CMakeLists.txt |
239 |
++++ b/CMakeLists.txt |
240 |
+@@ -9,8 +9,8 @@ set(CMAKE_VERBOSE_MAKEFILE ON) |
241 |
+ project(Cpp-Taskflow VERSION 2.3.1 LANGUAGES CXX) |
242 |
+ |
243 |
+ # build options |
244 |
+-option(TF_BUILD_EXAMPLES "Enables build of examples" ON) |
245 |
+-option(TF_BUILD_TESTS "Enables build of tests" ON) |
246 |
++option(TF_BUILD_EXAMPLES "Enables build of examples" OFF) |
247 |
++option(TF_BUILD_TESTS "Enables build of tests" OFF) |
248 |
+ option(TF_ENABLE_CUDA "Enables build of cuda code" OFF) |
249 |
+ option(TF_BUILD_BENCHMARKS "Enables build of benchmarks" OFF) |
250 |
+ |
251 |
+@@ -222,7 +222,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE |
252 |
+ # Example program |
253 |
+ # ----------------------------------------------------------------------------- |
254 |
+ |
255 |
+-if(${TF_BUILD_EXAMPLES}) |
256 |
++if(TF_BUILD_EXAMPLES) |
257 |
+ |
258 |
+ message(STATUS "Building examples ...") |
259 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}) |
260 |
+@@ -282,13 +282,13 @@ target_link_libraries( |
261 |
+ ) |
262 |
+ endif(${TF_ENABLE_CUDA}) |
263 |
+ |
264 |
+-endif(${TF_BUILD_EXAMPLES}) # ---- if TF_BUILD_EXAMPLES |
265 |
++endif(TF_BUILD_EXAMPLES) # ---- if TF_BUILD_EXAMPLES |
266 |
+ |
267 |
+ # ----------------------------------------------------------------------------- |
268 |
+ # Unittest |
269 |
+ # ----------------------------------------------------------------------------- |
270 |
+ |
271 |
+-if(${TF_BUILD_TESTS}) |
272 |
++if(TF_BUILD_TESTS) |
273 |
+ |
274 |
+ enable_testing() |
275 |
+ message(STATUS "Building unit tests ...") |
276 |
+@@ -504,7 +504,7 @@ add_test(cuda_matrix.product ${TF_UTEST_DIR}/cuda/cuda_matrix -tc=product) |
277 |
+ |
278 |
+ endif(${TF_ENABLE_CUDA}) |
279 |
+ |
280 |
+-endif(${TF_BUILD_TESTS}) |
281 |
++endif(TF_BUILD_TESTS) |
282 |
+ |
283 |
+ # ----------------------------------------------------------------------------- |
284 |
+ # Benchmarking (enabled by TF_BUILD_BENCHMARKS) |
285 |
|
286 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-lib-path.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-lib-path.patch |
287 |
new file mode 100644 |
288 |
index 0000000..6a99a0b |
289 |
--- /dev/null |
290 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-lib-path.patch |
291 |
@@ -0,0 +1,49 @@ |
292 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
293 |
+index 4b9c134..f49c398 100644 |
294 |
+--- a/CMakeLists.txt |
295 |
++++ b/CMakeLists.txt |
296 |
+@@ -16,6 +16,7 @@ option(TF_BUILD_TESTS "Enable build of tests" OFF) |
297 |
+ |
298 |
+ # Include additional language check |
299 |
+ include(CheckLanguage) |
300 |
++include(GNUInstallDirs) |
301 |
+ |
302 |
+ # Compiler vendors |
303 |
+ ## g++ |
304 |
+@@ -166,8 +167,8 @@ target_link_libraries( |
305 |
+ #set(CMAKE_CXX_EXTENSIONS OFF) |
306 |
+ |
307 |
+ # installation path |
308 |
+-set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
309 |
+-set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |
310 |
++set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") |
311 |
++set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") |
312 |
+ set(TF_UTEST_DIR ${PROJECT_SOURCE_DIR}/unittests) |
313 |
+ set(TF_EXAMPLE_DIR ${PROJECT_SOURCE_DIR}/examples) |
314 |
+ set(TF_BENCHMARK_DIR ${PROJECT_SOURCE_DIR}/benchmarks) |
315 |
+@@ -799,7 +800,7 @@ install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets) |
316 |
+ install( |
317 |
+ EXPORT ${PROJECT_NAME}Targets |
318 |
+ NAMESPACE ${PROJECT_NAME}:: |
319 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
320 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
321 |
+ ) |
322 |
+ |
323 |
+ # set up config |
324 |
+@@ -808,7 +809,7 @@ include(CMakePackageConfigHelpers) |
325 |
+ configure_package_config_file( |
326 |
+ ${PROJECT_NAME}Config.cmake.in |
327 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
328 |
+- INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
329 |
++ INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
330 |
+ PATH_VARS TF_INC_INSTALL_DIR |
331 |
+ ) |
332 |
+ |
333 |
+@@ -820,6 +821,6 @@ write_basic_package_version_file( |
334 |
+ install( |
335 |
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
336 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake |
337 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
338 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
339 |
+ ) |
340 |
+ |
341 |
|
342 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-version-number.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-version-number.patch |
343 |
new file mode 100644 |
344 |
index 0000000..5b53c31 |
345 |
--- /dev/null |
346 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-fix-version-number.patch |
347 |
@@ -0,0 +1,13 @@ |
348 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
349 |
+index f49c398..834b32e 100644 |
350 |
+--- a/CMakeLists.txt |
351 |
++++ b/CMakeLists.txt |
352 |
+@@ -6,7 +6,7 @@ MESSAGE(STATUS "CMAKE_ROOT: " ${CMAKE_ROOT}) |
353 |
+ set(CMAKE_VERBOSE_MAKEFILE ON) |
354 |
+ |
355 |
+ # Project name |
356 |
+-project(Cpp-Taskflow VERSION 2.3.1 LANGUAGES CXX) |
357 |
++project(Cpp-Taskflow VERSION 2.4.0 LANGUAGES CXX) |
358 |
+ |
359 |
+ # build options |
360 |
+ option(TF_ENABLE_CUDA "Enables build of cuda code" OFF) |
361 |
|
362 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-optional-tests-examples.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-optional-tests-examples.patch |
363 |
new file mode 100644 |
364 |
index 0000000..c1d8933 |
365 |
--- /dev/null |
366 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-2.4.0-optional-tests-examples.patch |
367 |
@@ -0,0 +1,42 @@ |
368 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
369 |
+index 8debfa4..4b9c134 100644 |
370 |
+--- a/CMakeLists.txt |
371 |
++++ b/CMakeLists.txt |
372 |
+@@ -11,6 +11,8 @@ project(Cpp-Taskflow VERSION 2.3.1 LANGUAGES CXX) |
373 |
+ # build options |
374 |
+ option(TF_ENABLE_CUDA "Enables build of cuda code" OFF) |
375 |
+ option(TF_BUILD_BENCHMARKS "Enables build of benchmarks" OFF) |
376 |
++option(TF_BUILD_EXAMPLES "Enable build of examples" OFF) |
377 |
++option(TF_BUILD_TESTS "Enable build of tests" OFF) |
378 |
+ |
379 |
+ # Include additional language check |
380 |
+ include(CheckLanguage) |
381 |
+@@ -227,6 +229,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE |
382 |
+ # Example program |
383 |
+ # ----------------------------------------------------------------------------- |
384 |
+ |
385 |
++if (TF_BUILD_EXAMPLES) |
386 |
+ message(STATUS "Building examples ...") |
387 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}) |
388 |
+ |
389 |
+@@ -289,10 +292,12 @@ target_link_libraries( |
390 |
+ device_property ${PROJECT_NAME} Threads::Threads tf::default_settings |
391 |
+ ) |
392 |
+ endif(${TF_ENABLE_CUDA}) |
393 |
++endif(TF_BUILD_EXAMPLES) |
394 |
+ |
395 |
+ # ----------------------------------------------------------------------------- |
396 |
+ # Unittest |
397 |
+ # ----------------------------------------------------------------------------- |
398 |
++if (TF_BUILD_TESTS) |
399 |
+ enable_testing() |
400 |
+ message(STATUS "Building unit tests ...") |
401 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_UTEST_DIR}) |
402 |
+@@ -516,6 +521,7 @@ add_test(cuda_matrix.transpose ${TF_UTEST_DIR}/cuda/cuda_matrix -tc=transpose) |
403 |
+ add_test(cuda_matrix.product ${TF_UTEST_DIR}/cuda/cuda_matrix -tc=product) |
404 |
+ |
405 |
+ endif(${TF_ENABLE_CUDA}) |
406 |
++endif(TF_BUILD_TESTS) |
407 |
+ |
408 |
+ # ----------------------------------------------------------------------------- |
409 |
+ # Benchmarking (enabled by TF_BUILD_BENCHMARKS) |
410 |
|
411 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-fix-lib-path.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-fix-lib-path.patch |
412 |
new file mode 100644 |
413 |
index 0000000..4969deb |
414 |
--- /dev/null |
415 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-fix-lib-path.patch |
416 |
@@ -0,0 +1,49 @@ |
417 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
418 |
+index 0b483a5..83d9430 100644 |
419 |
+--- a/CMakeLists.txt |
420 |
++++ b/CMakeLists.txt |
421 |
+@@ -15,6 +15,7 @@ option(TF_BUILD_TESTS "Enable build of tests" OFF) |
422 |
+ |
423 |
+ # Include additional language check |
424 |
+ include(CheckLanguage) |
425 |
++include(GNUInstallDirs) |
426 |
+ |
427 |
+ # Compiler vendors |
428 |
+ ## g++ |
429 |
+@@ -159,8 +160,8 @@ target_link_libraries( |
430 |
+ #set(CMAKE_CXX_EXTENSIONS OFF) |
431 |
+ |
432 |
+ # installation path |
433 |
+-set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
434 |
+-set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |
435 |
++set(TF_INC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") |
436 |
++set(TF_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") |
437 |
+ set(TF_UTEST_DIR ${PROJECT_SOURCE_DIR}/unittests) |
438 |
+ set(TF_EXAMPLE_DIR ${PROJECT_SOURCE_DIR}/examples) |
439 |
+ set(TF_BENCHMARK_DIR ${PROJECT_SOURCE_DIR}/benchmarks) |
440 |
+@@ -835,7 +836,7 @@ install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets) |
441 |
+ install( |
442 |
+ EXPORT ${PROJECT_NAME}Targets |
443 |
+ NAMESPACE ${PROJECT_NAME}:: |
444 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
445 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
446 |
+ ) |
447 |
+ |
448 |
+ # set up config |
449 |
+@@ -844,7 +845,7 @@ include(CMakePackageConfigHelpers) |
450 |
+ configure_package_config_file( |
451 |
+ ${PROJECT_NAME}Config.cmake.in |
452 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
453 |
+- INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
454 |
++ INSTALL_DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
455 |
+ PATH_VARS TF_INC_INSTALL_DIR |
456 |
+ ) |
457 |
+ |
458 |
+@@ -856,6 +857,6 @@ write_basic_package_version_file( |
459 |
+ install( |
460 |
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake |
461 |
+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake |
462 |
+- DESTINATION ${TF_LIB_INSTALL_DIR}/cmake |
463 |
++ DESTINATION ${TF_LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} |
464 |
+ ) |
465 |
+ |
466 |
|
467 |
diff --git a/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-optional-tests-examples.patch b/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-optional-tests-examples.patch |
468 |
new file mode 100644 |
469 |
index 0000000..94b1dbc |
470 |
--- /dev/null |
471 |
+++ b/dev-cpp/cpp-taskflow/files/cpp-taskflow-9999-optional-tests-examples.patch |
472 |
@@ -0,0 +1,42 @@ |
473 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
474 |
+index 281f47f..0b483a5 100644 |
475 |
+--- a/CMakeLists.txt |
476 |
++++ b/CMakeLists.txt |
477 |
+@@ -10,6 +10,8 @@ project(Cpp-Taskflow VERSION 2.4.0 LANGUAGES CXX) |
478 |
+ |
479 |
+ # build options |
480 |
+ option(TF_BUILD_BENCHMARKS "Enables build of benchmarks" OFF) |
481 |
++option(TF_BUILD_EXAMPLES "Enable build of examples" OFF) |
482 |
++option(TF_BUILD_TESTS "Enable build of tests" OFF) |
483 |
+ |
484 |
+ # Include additional language check |
485 |
+ include(CheckLanguage) |
486 |
+@@ -219,6 +221,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE |
487 |
+ # Example program |
488 |
+ # ----------------------------------------------------------------------------- |
489 |
+ |
490 |
++if (TF_BUILD_EXAMPLES) |
491 |
+ message(STATUS "Building examples ...") |
492 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}) |
493 |
+ |
494 |
+@@ -291,10 +294,12 @@ target_link_libraries( |
495 |
+ kmeans ${PROJECT_NAME} Threads::Threads tf::default_settings |
496 |
+ ) |
497 |
+ endif(CMAKE_CUDA_COMPILER) |
498 |
++endif(TF_BUILD_EXAMPLES) |
499 |
+ |
500 |
+ # ----------------------------------------------------------------------------- |
501 |
+ # Unittest |
502 |
+ # ----------------------------------------------------------------------------- |
503 |
++if (TF_BUILD_TESTS) |
504 |
+ enable_testing() |
505 |
+ message(STATUS "Building unit tests ...") |
506 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_UTEST_DIR}) |
507 |
+@@ -616,6 +621,7 @@ add_test(cuda_kmeans.1000.8C8G ${TF_UTEST_CUDA_KMEANS} -tc=kmeans.1000.8C8G) |
508 |
+ add_test(cuda_kmeans.1000.16C16G ${TF_UTEST_CUDA_KMEANS} -tc=kmeans.1000.16C16G) |
509 |
+ |
510 |
+ endif(CMAKE_CUDA_COMPILER) |
511 |
++endif(TF_BUILD_TESTS) |
512 |
+ |
513 |
+ # ----------------------------------------------------------------------------- |
514 |
+ # Benchmarking (enabled by TF_BUILD_BENCHMARKS) |
515 |
|
516 |
diff --git a/dev-cpp/cpp-taskflow/metadata.xml b/dev-cpp/cpp-taskflow/metadata.xml |
517 |
new file mode 100644 |
518 |
index 0000000..23d1a01 |
519 |
--- /dev/null |
520 |
+++ b/dev-cpp/cpp-taskflow/metadata.xml |
521 |
@@ -0,0 +1,15 @@ |
522 |
+<?xml version="1.0" encoding="UTF-8"?> |
523 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
524 |
+<pkgmetadata> |
525 |
+ <longdescription lang="en"> |
526 |
+ Cpp-Taskflow helps you quickly write parallel programs with high performance scalability and simultaneous high productivity. |
527 |
+ </longdescription> |
528 |
+ <maintainer type="person"> |
529 |
+ <email>m.santullo@××××××.net</email> |
530 |
+ <name>Michele Santullo</name> |
531 |
+ </maintainer> |
532 |
+ <upstream> |
533 |
+ <remote-id type="github">cpp-taskflow/cpp-taskflow</remote-id> |
534 |
+ <bugs-to>https://github.com/cpp-taskflow/cpp-taskflow/issues</bugs-to> |
535 |
+ </upstream> |
536 |
+</pkgmetadata> |