NWChem pacakge: expand fftw patch appliance range to 7.2.2 (#43321)

* expand fftw patch appliance range to include 7.2.2
* fix formatting bug
This commit is contained in:
YI Zeping 2024-03-23 19:41:34 +08:00 committed by GitHub
parent cd779ee54d
commit 937a4dbf69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ class Nwchem(Package):
# https://github.com/nwchemgit/nwchem/commit/376f86f96eb982e83f10514e9dcd994564f973b4
# https://github.com/nwchemgit/nwchem/commit/c89fc9d1eca6689bce12564a63fdea95d962a123
# Prior versions of NWChem, including 7.0.2, were not able to link with FFTW
patch("fftw_splans.patch", when="@7.2.0 +fftw3")
patch("fftw_splans.patch", when="@7.2.0:7.2.2 +fftw3")
depends_on("blas")
depends_on("lapack")
@ -133,8 +133,8 @@ def install(self, spec, prefix):
args.extend(["FFTW3_INCLUDE={0}".format(spec["fftw-api"].prefix.include)])
if spec.satisfies("+libxc"):
args.extend([f"LIBXC_LIB={0}".format(spec["libxc"].libs.ld_flags)])
args.extend([f"LIBXC_INCLUDE={0}".format(spec["libxc"].prefix.include)])
args.extend(["LIBXC_LIB={0}".format(spec["libxc"].libs.ld_flags)])
args.extend(["LIBXC_INCLUDE={0}".format(spec["libxc"].prefix.include)])
if spec.satisfies("+elpa"):
elpa = spec["elpa"]