1 |
commit: 38875bd66cc93e71c65476a60c18ac6e0c77e9f9 |
2 |
Author: Christoph Junghans <junghans <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 2 12:51:44 2018 +0000 |
4 |
Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 2 12:58:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38875bd6 |
7 |
|
8 |
sci-libs/libxc: initial import for sci overlay |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Signed-off-by: Christoph Junghans <junghans <AT> gentoo.org> |
12 |
|
13 |
sci-libs/libxc/Manifest | 3 +++ |
14 |
sci-libs/libxc/libxc-2.1.3.ebuild | 56 +++++++++++++++++++++++++++++++++++++++ |
15 |
sci-libs/libxc/libxc-2.2.3.ebuild | 56 +++++++++++++++++++++++++++++++++++++++ |
16 |
sci-libs/libxc/libxc-3.0.0.ebuild | 56 +++++++++++++++++++++++++++++++++++++++ |
17 |
sci-libs/libxc/metadata.xml | 31 ++++++++++++++++++++++ |
18 |
5 files changed, 202 insertions(+) |
19 |
|
20 |
diff --git a/sci-libs/libxc/Manifest b/sci-libs/libxc/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..c019462953f |
23 |
--- /dev/null |
24 |
+++ b/sci-libs/libxc/Manifest |
25 |
@@ -0,0 +1,3 @@ |
26 |
+DIST libxc-2.1.3.tar.gz 750044 BLAKE2B 6d6bb348bd8f7e25d6a3857fc40f0d7d3a7fe22c0a0514ca9f0ca60aadd67fde65b6052bc04e076a6328841c7ebe154921937083b8e9e2b9e55a5bcf197d08d0 SHA512 6cc7e4cb9b6187d3f7be9bca0aa574a1e0807db47201bee271d651e23c34ff7f00590cbe2ab1a6c399735e55d088a27e5b3456af6df46817137b3e6857c1c221 |
27 |
+DIST libxc-2.2.3.tar.gz 734714 BLAKE2B c5c4c3aec3373b8b481de8ec1779366b6916899e0b77964cbde0e83904b351e009b14a3ff64e9f020640e6ebf68d78828615b8abf83a46fdf86ea16480083643 SHA512 bfcd88c1946e459227e9b1a32c513f0e68ae7a5497925ac6e692085542526ebad9fe2cd5722077c839c06dbaaceca601c7f615ee6936e638eb150a9d68278d5a |
28 |
+DIST libxc-3.0.0.tar.gz 8388775 BLAKE2B e82a7310c583c39b6c2313668a5d3a3d5ae7bf71ad450e9ac6241d1601bf1bb429abf98787f7e0c3c252e881c381b895e277d18619b57c46f2f910d7e079941c SHA512 42173341f917c2aed6954f76885d2a9149d7212d2525becf77072b9878753c28d752b5cf6b2c79c90a88d8aa033f0aa94fa9753eb67108e9325cee6919cece52 |
29 |
|
30 |
diff --git a/sci-libs/libxc/libxc-2.1.3.ebuild b/sci-libs/libxc/libxc-2.1.3.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..527f29e4691 |
33 |
--- /dev/null |
34 |
+++ b/sci-libs/libxc/libxc-2.1.3.ebuild |
35 |
@@ -0,0 +1,56 @@ |
36 |
+# Copyright 1999-2018 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+AUTOTOOLS_AUTORECONF=true |
42 |
+ |
43 |
+inherit autotools-utils flag-o-matic fortran-2 multilib |
44 |
+ |
45 |
+MY_P=${P//_/-} |
46 |
+ |
47 |
+DESCRIPTION="A library of exchange-correlation functionals for use in DFT" |
48 |
+HOMEPAGE="http://octopus-code.org/wiki/Libxc" |
49 |
+SRC_URI="http://www.tddft.org/programs/octopus/download/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="LGPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
54 |
+IUSE="fortran static-libs -test" |
55 |
+ |
56 |
+S="${WORKDIR}"/${MY_P} |
57 |
+ |
58 |
+pkg_setup() { |
59 |
+ use fortran && fortran-2_pkg_setup |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed \ |
64 |
+ -e "s:${PN}.f90:${PN}.F90:g" \ |
65 |
+ -i src/Makefile.am || die |
66 |
+ autotools-utils_src_prepare |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local myeconfargs=( $(use_enable fortran) ) |
71 |
+ autotools-utils_src_configure |
72 |
+} |
73 |
+ |
74 |
+## Upstream recommends not running the test suite because it requires |
75 |
+## human expert interpretation to determine whether output is an error or |
76 |
+## expected under certain circumstances. Nevertheless, experts might want the option. |
77 |
+# The autotools src_test function modified not to die. Runs emake check in build directory. |
78 |
+src_test() { |
79 |
+ debug-print-function ${FUNCNAME} "$@" |
80 |
+ |
81 |
+ _check_build_dir |
82 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
83 |
+ make check || ewarn "Make check failed. See above for details." |
84 |
+ einfo "emake check done" |
85 |
+ popd > /dev/null || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ autotools-utils_src_install |
90 |
+ |
91 |
+} |
92 |
|
93 |
diff --git a/sci-libs/libxc/libxc-2.2.3.ebuild b/sci-libs/libxc/libxc-2.2.3.ebuild |
94 |
new file mode 100644 |
95 |
index 00000000000..527f29e4691 |
96 |
--- /dev/null |
97 |
+++ b/sci-libs/libxc/libxc-2.2.3.ebuild |
98 |
@@ -0,0 +1,56 @@ |
99 |
+# Copyright 1999-2018 Gentoo Foundation |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+ |
102 |
+EAPI=5 |
103 |
+ |
104 |
+AUTOTOOLS_AUTORECONF=true |
105 |
+ |
106 |
+inherit autotools-utils flag-o-matic fortran-2 multilib |
107 |
+ |
108 |
+MY_P=${P//_/-} |
109 |
+ |
110 |
+DESCRIPTION="A library of exchange-correlation functionals for use in DFT" |
111 |
+HOMEPAGE="http://octopus-code.org/wiki/Libxc" |
112 |
+SRC_URI="http://www.tddft.org/programs/octopus/download/${PN}/${P}.tar.gz" |
113 |
+ |
114 |
+LICENSE="LGPL-3" |
115 |
+SLOT="0" |
116 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
117 |
+IUSE="fortran static-libs -test" |
118 |
+ |
119 |
+S="${WORKDIR}"/${MY_P} |
120 |
+ |
121 |
+pkg_setup() { |
122 |
+ use fortran && fortran-2_pkg_setup |
123 |
+} |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ sed \ |
127 |
+ -e "s:${PN}.f90:${PN}.F90:g" \ |
128 |
+ -i src/Makefile.am || die |
129 |
+ autotools-utils_src_prepare |
130 |
+} |
131 |
+ |
132 |
+src_configure() { |
133 |
+ local myeconfargs=( $(use_enable fortran) ) |
134 |
+ autotools-utils_src_configure |
135 |
+} |
136 |
+ |
137 |
+## Upstream recommends not running the test suite because it requires |
138 |
+## human expert interpretation to determine whether output is an error or |
139 |
+## expected under certain circumstances. Nevertheless, experts might want the option. |
140 |
+# The autotools src_test function modified not to die. Runs emake check in build directory. |
141 |
+src_test() { |
142 |
+ debug-print-function ${FUNCNAME} "$@" |
143 |
+ |
144 |
+ _check_build_dir |
145 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
146 |
+ make check || ewarn "Make check failed. See above for details." |
147 |
+ einfo "emake check done" |
148 |
+ popd > /dev/null || die |
149 |
+} |
150 |
+ |
151 |
+src_install() { |
152 |
+ autotools-utils_src_install |
153 |
+ |
154 |
+} |
155 |
|
156 |
diff --git a/sci-libs/libxc/libxc-3.0.0.ebuild b/sci-libs/libxc/libxc-3.0.0.ebuild |
157 |
new file mode 100644 |
158 |
index 00000000000..527f29e4691 |
159 |
--- /dev/null |
160 |
+++ b/sci-libs/libxc/libxc-3.0.0.ebuild |
161 |
@@ -0,0 +1,56 @@ |
162 |
+# Copyright 1999-2018 Gentoo Foundation |
163 |
+# Distributed under the terms of the GNU General Public License v2 |
164 |
+ |
165 |
+EAPI=5 |
166 |
+ |
167 |
+AUTOTOOLS_AUTORECONF=true |
168 |
+ |
169 |
+inherit autotools-utils flag-o-matic fortran-2 multilib |
170 |
+ |
171 |
+MY_P=${P//_/-} |
172 |
+ |
173 |
+DESCRIPTION="A library of exchange-correlation functionals for use in DFT" |
174 |
+HOMEPAGE="http://octopus-code.org/wiki/Libxc" |
175 |
+SRC_URI="http://www.tddft.org/programs/octopus/download/${PN}/${P}.tar.gz" |
176 |
+ |
177 |
+LICENSE="LGPL-3" |
178 |
+SLOT="0" |
179 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
180 |
+IUSE="fortran static-libs -test" |
181 |
+ |
182 |
+S="${WORKDIR}"/${MY_P} |
183 |
+ |
184 |
+pkg_setup() { |
185 |
+ use fortran && fortran-2_pkg_setup |
186 |
+} |
187 |
+ |
188 |
+src_prepare() { |
189 |
+ sed \ |
190 |
+ -e "s:${PN}.f90:${PN}.F90:g" \ |
191 |
+ -i src/Makefile.am || die |
192 |
+ autotools-utils_src_prepare |
193 |
+} |
194 |
+ |
195 |
+src_configure() { |
196 |
+ local myeconfargs=( $(use_enable fortran) ) |
197 |
+ autotools-utils_src_configure |
198 |
+} |
199 |
+ |
200 |
+## Upstream recommends not running the test suite because it requires |
201 |
+## human expert interpretation to determine whether output is an error or |
202 |
+## expected under certain circumstances. Nevertheless, experts might want the option. |
203 |
+# The autotools src_test function modified not to die. Runs emake check in build directory. |
204 |
+src_test() { |
205 |
+ debug-print-function ${FUNCNAME} "$@" |
206 |
+ |
207 |
+ _check_build_dir |
208 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
209 |
+ make check || ewarn "Make check failed. See above for details." |
210 |
+ einfo "emake check done" |
211 |
+ popd > /dev/null || die |
212 |
+} |
213 |
+ |
214 |
+src_install() { |
215 |
+ autotools-utils_src_install |
216 |
+ |
217 |
+} |
218 |
|
219 |
diff --git a/sci-libs/libxc/metadata.xml b/sci-libs/libxc/metadata.xml |
220 |
new file mode 100644 |
221 |
index 00000000000..064923854d2 |
222 |
--- /dev/null |
223 |
+++ b/sci-libs/libxc/metadata.xml |
224 |
@@ -0,0 +1,31 @@ |
225 |
+<?xml version="1.0" encoding="UTF-8"?> |
226 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
227 |
+<pkgmetadata> |
228 |
+ <maintainer type="project"> |
229 |
+ <email>sci@g.o</email> |
230 |
+ <name>Gentoo Science Project</name> |
231 |
+ </maintainer> |
232 |
+ <maintainer type="person"> |
233 |
+ <email>Hloupy.Honza@×××××××.cz</email> |
234 |
+ <name>Honza Macháček</name> |
235 |
+ </maintainer> |
236 |
+ <longdescription lang="en"> |
237 |
+Libxc is a library of exchange-correlation functionals for density-functional theory. |
238 |
+The aim is to provide a portable, well tested and reliable set of exchange and correlation |
239 |
+functionals that can be used by all the ETSF codes and also other codes. |
240 |
+ |
241 |
+In Libxc you can find different types of functionals: LDA, GGA, hybrids, and mGGA (experimental). |
242 |
+These functionals depend on local information, in the sense that the value of the potential |
243 |
+at a given point depends only on the values of the density -- and the gradient of the density |
244 |
+and the kinetic energy density, for the GGA and mGGA cases. |
245 |
+ |
246 |
+It can calculate the functional itself and its derivative; for some functionals, |
247 |
+higher-order derivatives are available. |
248 |
+ |
249 |
+Libxc is written in C and has Fortran bindings. It is released under the LGPL license (v. 3.0). |
250 |
+Contributions are welcome. |
251 |
+</longdescription> |
252 |
+ <upstream> |
253 |
+ <doc>http://octopus-code.org/wiki/Libxc:manual</doc> |
254 |
+ </upstream> |
255 |
+</pkgmetadata> |