1 |
commit: bdbf129e37f7fe222719a3df2341f48d6f576e81 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 6 08:15:27 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 6 08:31:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdbf129e |
7 |
|
8 |
sci-libs/ginkgo: Port to EAPI-8 and cmake.eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/811957 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild | 55 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild b/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..84dae4aa427 |
19 |
--- /dev/null |
20 |
+++ b/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild |
21 |
@@ -0,0 +1,55 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit cmake |
28 |
+ |
29 |
+DESCRIPTION="Numerical linear algebra software package" |
30 |
+HOMEPAGE="https://ginkgo-project.github.io/" |
31 |
+ |
32 |
+if [[ ${PV} = *9999* ]]; then |
33 |
+ EGIT_REPO_URI="https://github.com/ginkgo-project/ginkgo" |
34 |
+ inherit git-r3 |
35 |
+else |
36 |
+ SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ KEYWORDS="~amd64 ~x86" |
38 |
+fi |
39 |
+ |
40 |
+LICENSE="BSD-with-attribution" |
41 |
+SLOT="0" |
42 |
+IUSE="+openmp cuda" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ cuda? ( dev-util/nvidia-cuda-sdk ) |
46 |
+" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+ |
49 |
+pkg_setup() { |
50 |
+ if [[ ${MERGE_TYPE} != binary ]] && \ |
51 |
+ use openmp && ! tc-has-openmp ; then |
52 |
+ die "Need an OpenMP capable compiler" |
53 |
+ fi |
54 |
+} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ sed -i \ |
58 |
+ -e "s#\"lib\"#\"$(get_libdir)\"#g" \ |
59 |
+ -e "s#\"lib/#\"$(get_libdir)/#g" \ |
60 |
+ cmake/install_helpers.cmake || die "sed failed" |
61 |
+ |
62 |
+ cmake_src_prepare |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ |
67 |
+ local mycmakeargs=( |
68 |
+ -DGINKGO_DEVEL_TOOLS=OFF |
69 |
+ -DGINKGO_BUILD_TESTS=OFF |
70 |
+ -DGINKGO_BUILD_BENCHMARKS=OFF |
71 |
+ -DGINKGO_BUILD_REFERENCE=ON |
72 |
+ -DGINKGO_BUILD_OMP=$(usex openmp) |
73 |
+ -DGINKGO_BUILD_CUDA=$(usex cuda) |
74 |
+ ) |
75 |
+ cmake_src_configure |
76 |
+} |