diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/suntans/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/suntans/package.py | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/var/spack/repos/builtin/packages/suntans/package.py b/var/spack/repos/builtin/packages/suntans/package.py index 6a96a13f33..11c894c15f 100644 --- a/var/spack/repos/builtin/packages/suntans/package.py +++ b/var/spack/repos/builtin/packages/suntans/package.py @@ -9,38 +9,36 @@ from spack.package import * class Suntans(MakefilePackage): """The Stanford unstructured-grid, nonhydrostatic, parallel coastal - ocean model. """ + ocean model.""" homepage = "https://github.com/ofringer/suntans" - url = "https://github.com/ofringer/suntans/archive/master.zip" + url = "https://github.com/ofringer/suntans/archive/master.zip" - maintainers = ['ofringer', 'zyaj', 'mrayson', 'jadelson', 'lhxone'] + maintainers = ["ofringer", "zyaj", "mrayson", "jadelson", "lhxone"] - version('3.1', '9b5d0dee5502a5650e37bf72f64b1124be86c084e7408aa517c214ddb25e36de') + version("3.1", "9b5d0dee5502a5650e37bf72f64b1124be86c084e7408aa517c214ddb25e36de") - depends_on('libx11@1.6.3') - depends_on('mpi') + depends_on("libx11@1.6.3") + depends_on("mpi") def edit(self, spec, prefix): - env['MPIHOME'] = spec['openmpi'].prefix - with working_dir('main'): - makefile = FileFilter('Makefile') - makefile.filter('XINC=.*', 'XINC= -I{0}' - .format(spec['libx11'].prefix.include)) - makefile.filter('XLIBDIR = .*', - 'XLIBDIR = {0}' - .format(spec['libx11'].prefix.lib)) + env["MPIHOME"] = spec["openmpi"].prefix + with working_dir("main"): + makefile = FileFilter("Makefile") + makefile.filter("XINC=.*", "XINC= -I{0}".format(spec["libx11"].prefix.include)) + makefile.filter("XLIBDIR = .*", "XLIBDIR = {0}".format(spec["libx11"].prefix.lib)) makefile.filter( - 'INCLUDES = .*', - 'INCLUDES=$(PARMETISINCLUDE)$(TRIANGLEINCLUDE)$(NETCDFINCLUDE)$(XINC)') + "INCLUDES = .*", + "INCLUDES=$(PARMETISINCLUDE)$(TRIANGLEINCLUDE)$(NETCDFINCLUDE)$(XINC)", + ) def build(self, spec, prefix): - with working_dir('main'): - make('sunplot') + with working_dir("main"): + make("sunplot") def install(self, spec, prefix): mkdir(prefix.bin) mkdir(prefix.include) - with working_dir('main'): - install('sunplot', prefix.bin) - install('*.h', prefix.include) + with working_dir("main"): + install("sunplot", prefix.bin) + install("*.h", prefix.include) |