Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/gamess/
Date: Wed, 24 Oct 2018 22:27:45
Message-Id: 1540420047.243e204391a21eb4520f069be98359de9ecac556.bircoph@gentoo
1 commit: 243e204391a21eb4520f069be98359de9ecac556
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 24 22:27:27 2018 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 24 22:27:27 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=243e2043
7
8 sci-chemistry/gamess: add memory check for USE=msucc
9
10 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sci-chemistry/gamess/gamess-20180930.3.ebuild | 14 +++++++++++++-
14 sci-chemistry/gamess/metadata.xml | 2 +-
15 2 files changed, 14 insertions(+), 2 deletions(-)
16
17 diff --git a/sci-chemistry/gamess/gamess-20180930.3.ebuild b/sci-chemistry/gamess/gamess-20180930.3.ebuild
18 index ce3b8eba8..fe96a626b 100644
19 --- a/sci-chemistry/gamess/gamess-20180930.3.ebuild
20 +++ b/sci-chemistry/gamess/gamess-20180930.3.ebuild
21 @@ -3,7 +3,7 @@
22
23 EAPI=6
24
25 -inherit fortran-2 flag-o-matic pax-utils toolchain-funcs
26 +inherit check-reqs fortran-2 flag-o-matic pax-utils toolchain-funcs
27
28 DESCRIPTION="A powerful quantum chemistry package"
29 HOMEPAGE="http://www.msg.chem.iastate.edu/GAMESS/GAMESS.html"
30 @@ -40,6 +40,17 @@ RESTRICT="fetch"
31 GAMESS_DOWNLOAD="http://www.msg.ameslab.gov/GAMESS/License_Agreement.html"
32 GAMESS_VERSION="September 30, 2018 R3"
33
34 +pre_build_checks() {
35 + if use msucc; then
36 + CHECKREQS_MEMORY=6G
37 + check-reqs_pkg_setup
38 + fi
39 +}
40 +
41 +pkg_pretend() {
42 + pre_build_checks
43 +}
44 +
45 pkg_nofetch() {
46 echo
47 elog "Please download ${PN}-current.tar.gz from"
48 @@ -66,6 +77,7 @@ get_fcomp() {
49 }
50
51 pkg_setup() {
52 + pre_build_checks
53 fortran-2_pkg_setup
54 get_fcomp
55 # currently amd64 is only supported with gfortran
56
57 diff --git a/sci-chemistry/gamess/metadata.xml b/sci-chemistry/gamess/metadata.xml
58 index 7c7fbea32..7f7e33d86 100644
59 --- a/sci-chemistry/gamess/metadata.xml
60 +++ b/sci-chemistry/gamess/metadata.xml
61 @@ -11,7 +11,7 @@
62 </maintainer>
63 <use>
64 <flag name="msucc">Build Michigan State University CCT3 and CCSD3A methods.
65 - This will increase build time and memory requirements by multiple times</flag>
66 + This will increase build time and memory requirements by ~10 times</flag>
67 <flag name="neo">Enable NEO for nuclear basis support</flag>
68 <flag name="pax_kernel">Make this package work on PAX kernels</flag>
69 <flag name="qmmm-tinker">Enable tinker qmmm code</flag>