summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Sill <alan.sill@ttu.edu>2022-08-22 05:21:00 -0500
committerGitHub <noreply@github.com>2022-08-22 12:21:00 +0200
commit4c64a0fab2946564e524abfb700998e1e203b215 (patch)
treecd5f142984d01bf22c7a36a0f4712cfb382dc719
parent01a4844ac4d2509c7cf67c56e7cdd758156cc441 (diff)
downloadspack-4c64a0fab2946564e524abfb700998e1e203b215.tar.gz
spack-4c64a0fab2946564e524abfb700998e1e203b215.tar.bz2
spack-4c64a0fab2946564e524abfb700998e1e203b215.tar.xz
spack-4c64a0fab2946564e524abfb700998e1e203b215.zip
VASP: add v6.3.2; handle changes to makefile.include naming pattern (#31701)
Added the SHA256 for version 6.3.2 and added logic to eal with the change of naming pattern for the makefile.include files that now appears to leave out the "linux_" prefix. (Changes should be. backwards compatible.) Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> Co-authored-by: alansill <alansill@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/vasp/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vasp/package.py b/var/spack/repos/builtin/packages/vasp/package.py
index af3122e730..1706aa2843 100644
--- a/var/spack/repos/builtin/packages/vasp/package.py
+++ b/var/spack/repos/builtin/packages/vasp/package.py
@@ -20,6 +20,7 @@ class Vasp(MakefilePackage):
url = "file://{0}/vasp.5.4.4.pl2.tgz".format(os.getcwd())
manual_download = True
+ version("6.3.2", sha256="f7595221b0f9236a324ea8afe170637a578cdd5a837cc7679e7f7812f6edf25a")
version("6.2.0", sha256="49e7ba351bd634bc5f5f67a8ef1e38e64e772857a1c02f602828898a84197e25")
version("6.1.1", sha256="e37a4dfad09d3ad0410833bcd55af6b599179a085299026992c2d8e319bf6927")
version("5.4.4.pl2", sha256="98f75fd75399a23d76d060a6155f4416b340a1704f256a00146f89024035bc8e")
@@ -111,6 +112,10 @@ class Vasp(MakefilePackage):
else:
make_include = join_path("arch", "makefile.include.linux_" + spec.compiler.name)
+ # Recent versions of vasp have renamed the makefile.include files
+ # to leave out the linux_ string
+ if not os.path.exists(make_include):
+ make_include = make_include.replace("linux_", "")
os.rename(make_include, "makefile.include")
# This bunch of 'filter_file()' is to make these options settable