1 |
commit: fb9356bf7ec6fa8bdf01da289b9f0775615b3b6d |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Thu Jan 28 14:54:03 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Jan 28 14:56:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=fb9356bf |
7 |
|
8 |
sci-chemistry/erkale: EAPI bump, camke-utils --> cmake |
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-chemistry/erkale/erkale-9999.ebuild | 17 ++++++++++------- |
14 |
1 file changed, 10 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/sci-chemistry/erkale/erkale-9999.ebuild b/sci-chemistry/erkale/erkale-9999.ebuild |
17 |
index 1d4d4c334..11c7b05c6 100644 |
18 |
--- a/sci-chemistry/erkale/erkale-9999.ebuild |
19 |
+++ b/sci-chemistry/erkale/erkale-9999.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=7 |
26 |
|
27 |
-inherit cmake-utils flag-o-matic git-r3 multibuild toolchain-funcs |
28 |
+inherit cmake flag-o-matic git-r3 multibuild toolchain-funcs |
29 |
|
30 |
DESCRIPTION="Quantum chemistry program for atoms and molecules" |
31 |
HOMEPAGE="https://github.com/susilehtola/erkale" |
32 |
@@ -22,16 +22,19 @@ RDEPEND=" |
33 |
" |
34 |
DEPEND=" |
35 |
>=sci-libs/armadillo-4[blas,lapack] |
36 |
- virtual/pkgconfig |
37 |
${RDEPEND} |
38 |
" |
39 |
+BDEPEND="virtual/pkgconfig" |
40 |
|
41 |
MULTIBUILD_VARIANTS=( serial ) |
42 |
|
43 |
src_prepare() { |
44 |
use openmp && MULTIBUILD_VARIANTS+=( omp ) |
45 |
append-cxxflags "-DARMA_DONT_USE_ATLAS -DARMA_DONT_USE_WRAPPER" |
46 |
- cmake-utils_src_prepare |
47 |
+ cmake_src_prepare |
48 |
+ # libint has renamed things |
49 |
+ find -type f -name "*.h" -exec sed -i -e 's/#include <libint\/libint.h>/#include <libint2.h>/g' {} + || die |
50 |
+ find -type f -name "*.h" -exec sed -i -e 's/#include <libderiv\/libderiv.h>/#include <libint2\/deriv_iter.h>/g' {} + || die |
51 |
} |
52 |
|
53 |
src_configure() { |
54 |
@@ -44,13 +47,13 @@ src_configure() { |
55 |
-DERKALE_SYSTEM_LIBRARY="${basis/\/\///}" |
56 |
-DLAPACK_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) lapack --cflags-only-I | sed 's/-I//')" |
57 |
) |
58 |
- cmake-utils_src_configure |
59 |
+ cmake_src_configure |
60 |
} |
61 |
multibuild_foreach_variant my_configure |
62 |
} |
63 |
|
64 |
src_compile() { |
65 |
- multibuild_foreach_variant cmake-utils_src_compile |
66 |
+ multibuild_foreach_variant cmake_src_compile |
67 |
} |
68 |
|
69 |
src_test() { |
70 |
@@ -66,5 +69,5 @@ src_install() { |
71 |
insinto "/usr/share/${PN}" |
72 |
doins -r "${S}/basis" |
73 |
|
74 |
- multibuild_foreach_variant cmake-utils_src_install |
75 |
+ multibuild_foreach_variant cmake_src_install |
76 |
} |