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>
This commit is contained in:
Alan Sill 2022-08-22 05:21:00 -05:00 committed by GitHub
parent 01a4844ac4
commit 4c64a0fab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def edit(self, spec, prefix):
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