From 4c64a0fab2946564e524abfb700998e1e203b215 Mon Sep 17 00:00:00 2001 From: Alan Sill Date: Mon, 22 Aug 2022 05:21:00 -0500 Subject: 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 Co-authored-by: alansill --- var/spack/repos/builtin/packages/vasp/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2