1 |
commit: 8f672be663388bcc425aaaafb61e2799342395ef |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 30 20:29:32 2020 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 30 20:37:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f672be6 |
7 |
|
8 |
sci-libs/ginkgo: new package |
9 |
|
10 |
This is a future reverse dependency of sci-libs/dealii |
11 |
|
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
14 |
|
15 |
sci-libs/ginkgo/Manifest | 1 + |
16 |
sci-libs/ginkgo/ginkgo-1.1.1.ebuild | 44 +++++++++++++++++++++++++++++++++++ |
17 |
sci-libs/ginkgo/ginkgo-9999.ebuild | 46 +++++++++++++++++++++++++++++++++++++ |
18 |
sci-libs/ginkgo/metadata.xml | 22 ++++++++++++++++++ |
19 |
4 files changed, 113 insertions(+) |
20 |
|
21 |
diff --git a/sci-libs/ginkgo/Manifest b/sci-libs/ginkgo/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..935ba5909f2 |
24 |
--- /dev/null |
25 |
+++ b/sci-libs/ginkgo/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST ginkgo-1.1.1.tar.gz 11787690 BLAKE2B 75c2c9b2d1e9ba00e3b0a20859af621cdf4aefe7c6e5ec9c7fc34a5368e5bee70d7d2b86ed9b2d9075ab7cc1a3334434fe20329d780f693be45fd7707cdbe27f SHA512 ab8f2d36453f4e60a4e0a13eddc4a137006c1cc6c9c0db00997dd721dfc06f4401109c5a22ba23a838206cff576d5041d06edaed8823006e69f11e360d1dadce |
28 |
|
29 |
diff --git a/sci-libs/ginkgo/ginkgo-1.1.1.ebuild b/sci-libs/ginkgo/ginkgo-1.1.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..a3c8615833d |
32 |
--- /dev/null |
33 |
+++ b/sci-libs/ginkgo/ginkgo-1.1.1.ebuild |
34 |
@@ -0,0 +1,44 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit cmake-utils |
41 |
+ |
42 |
+DESCRIPTION="Numerical linear algebra software package" |
43 |
+HOMEPAGE="https://ginkgo-project.github.io/" |
44 |
+ |
45 |
+SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+LICENSE="BSD-with-attribution" |
49 |
+SLOT="0" |
50 |
+IUSE="" |
51 |
+ |
52 |
+# TODO: add slepc use flag once slepc is packaged for gentoo-science |
53 |
+REQUIRED_USE="" |
54 |
+ |
55 |
+RDEPEND="" |
56 |
+ |
57 |
+DEPEND="" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ sed -i \ |
61 |
+ -e "s#\"lib\"#\"$(get_libdir)\"#g" \ |
62 |
+ -e "s#\"lib/#\"$(get_libdir)/#g" \ |
63 |
+ cmake/install_helpers.cmake || die "sed failed" |
64 |
+ |
65 |
+ cmake-utils_src_prepare |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ |
70 |
+ local mycmakeargs=( |
71 |
+ -DGINKGO_DEVEL_TOOLS=OFF |
72 |
+ -DGINKGO_BUILD_TESTS=OFF |
73 |
+ -DGINKGO_BUILD_BENCHMARKS=OFF |
74 |
+ -DGINKGO_BUILD_REFERENCE=ON |
75 |
+ -DGINKGO_BUILD_OMP=ON |
76 |
+ ) |
77 |
+ cmake-utils_src_configure |
78 |
+} |
79 |
|
80 |
diff --git a/sci-libs/ginkgo/ginkgo-9999.ebuild b/sci-libs/ginkgo/ginkgo-9999.ebuild |
81 |
new file mode 100644 |
82 |
index 00000000000..3b9102d2165 |
83 |
--- /dev/null |
84 |
+++ b/sci-libs/ginkgo/ginkgo-9999.ebuild |
85 |
@@ -0,0 +1,46 @@ |
86 |
+# Copyright 1999-2020 Gentoo Authors |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=7 |
90 |
+ |
91 |
+inherit cmake-utils |
92 |
+ |
93 |
+DESCRIPTION="Numerical linear algebra software package" |
94 |
+HOMEPAGE="https://ginkgo-project.github.io/" |
95 |
+ |
96 |
+inherit git-r3 |
97 |
+EGIT_REPO_URI="https://github.com/ginkgo-project/ginkgo" |
98 |
+SRC_URI="" |
99 |
+KEYWORDS="" |
100 |
+ |
101 |
+LICENSE="BSD-with-attribution" |
102 |
+SLOT="0" |
103 |
+IUSE="" |
104 |
+ |
105 |
+# TODO: add slepc use flag once slepc is packaged for gentoo-science |
106 |
+REQUIRED_USE="" |
107 |
+ |
108 |
+RDEPEND="" |
109 |
+ |
110 |
+DEPEND="" |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ sed -i \ |
114 |
+ -e "s#\"lib\"#\"$(get_libdir)\"#g" \ |
115 |
+ -e "s#\"lib/#\"$(get_libdir)/#g" \ |
116 |
+ cmake/install_helpers.cmake || die "sed failed" |
117 |
+ |
118 |
+ cmake-utils_src_prepare |
119 |
+} |
120 |
+ |
121 |
+src_configure() { |
122 |
+ |
123 |
+ local mycmakeargs=( |
124 |
+ -DGINKGO_DEVEL_TOOLS=OFF |
125 |
+ -DGINKGO_BUILD_TESTS=OFF |
126 |
+ -DGINKGO_BUILD_BENCHMARKS=OFF |
127 |
+ -DGINKGO_BUILD_REFERENCE=ON |
128 |
+ -DGINKGO_BUILD_OMP=ON |
129 |
+ ) |
130 |
+ cmake-utils_src_configure |
131 |
+} |
132 |
|
133 |
diff --git a/sci-libs/ginkgo/metadata.xml b/sci-libs/ginkgo/metadata.xml |
134 |
new file mode 100644 |
135 |
index 00000000000..e67b3457031 |
136 |
--- /dev/null |
137 |
+++ b/sci-libs/ginkgo/metadata.xml |
138 |
@@ -0,0 +1,22 @@ |
139 |
+<?xml version="1.0" encoding="UTF-8"?> |
140 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
141 |
+<pkgmetadata> |
142 |
+ <maintainer type="person"> |
143 |
+ <email>tamiko@g.o</email> |
144 |
+ <name>Matthias Maier</name> |
145 |
+ </maintainer> |
146 |
+ <maintainer type="project"> |
147 |
+ <email>sci@g.o</email> |
148 |
+ <name>Gentoo Science Project</name> |
149 |
+ </maintainer> |
150 |
+ <longdescription lang="en"> |
151 |
+ Ginkgo is a high-performance linear algebra library for manycore |
152 |
+ systems, with a focus on sparse solution of linear systems. It is |
153 |
+ implemented using modern C++, with GPU kernels implemented in CUDA. |
154 |
+ </longdescription> |
155 |
+ <use> |
156 |
+ </use> |
157 |
+ <upstream> |
158 |
+ <remote-id type="github">ginkgo-project/ginkgo</remote-id> |
159 |
+ </upstream> |
160 |
+</pkgmetadata> |