summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/shtools/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/shtools/package.py')
-rw-r--r--var/spack/repos/builtin/packages/shtools/package.py41
1 files changed, 20 insertions, 21 deletions
diff --git a/var/spack/repos/builtin/packages/shtools/package.py b/var/spack/repos/builtin/packages/shtools/package.py
index dbdcce706d..646e281073 100644
--- a/var/spack/repos/builtin/packages/shtools/package.py
+++ b/var/spack/repos/builtin/packages/shtools/package.py
@@ -10,13 +10,13 @@ class Shtools(MakefilePackage):
"""SHTOOLS - Spherical Harmonic Tools"""
homepage = "https://shtools.github.io/SHTOOLS/"
- url = "https://github.com/SHTOOLS/SHTOOLS/archive/v4.5.tar.gz"
+ url = "https://github.com/SHTOOLS/SHTOOLS/archive/v4.5.tar.gz"
- maintainers = ['eschnett']
+ maintainers = ["eschnett"]
- version('4.9.1', sha256='5c22064f9daf6e9aa08cace182146993aa6b25a6ea593d92572c59f4013d53c2')
- version('4.8', sha256='c36fc86810017e544abbfb12f8ddf6f101a1ac8b89856a76d7d9801ffc8dac44')
- version('4.5', sha256='1975a2a2bcef8c527d321be08c13c2bc479e0d6b81c468a3203f95df59be4f89')
+ version("4.9.1", sha256="5c22064f9daf6e9aa08cace182146993aa6b25a6ea593d92572c59f4013d53c2")
+ version("4.8", sha256="c36fc86810017e544abbfb12f8ddf6f101a1ac8b89856a76d7d9801ffc8dac44")
+ version("4.5", sha256="1975a2a2bcef8c527d321be08c13c2bc479e0d6b81c468a3203f95df59be4f89")
# Note: This package also provides Python wrappers. We do not
# install these properly yet, only the Fortran library is
@@ -24,29 +24,28 @@ class Shtools(MakefilePackage):
# The Makefile expects the "other" libtool, not the GNU libtool we have in
# Spack
- patch('nolibtool.patch')
+ patch("nolibtool.patch")
- variant('openmp', default=True, description="Enable OpenMP support")
+ variant("openmp", default=True, description="Enable OpenMP support")
- depends_on('blas')
- depends_on('fftw')
- depends_on('lapack')
- depends_on('py-flake8', type='test')
+ depends_on("blas")
+ depends_on("fftw")
+ depends_on("lapack")
+ depends_on("py-flake8", type="test")
def patch(self):
"""make check fix: Silence "do not use bare 'except'" in number of files"""
- filter_file('ignore=', 'ignore=E722,', 'Makefile')
+ filter_file("ignore=", "ignore=E722,", "Makefile")
# Options for the Makefile
def makeopts(self, spec, prefix):
return [
"F95={0}".format(self.compiler.fc),
- "F95FLAGS={0} -O3 -std=gnu -ffast-math".
- format(self.compiler.fc_pic_flag),
+ "F95FLAGS={0} -O3 -std=gnu -ffast-math".format(self.compiler.fc_pic_flag),
"OPENMPFLAGS={0}".format(self.compiler.openmp_flag),
- "BLAS={0}".format(spec['blas'].libs),
- "FFTW={0}".format(spec['fftw'].libs),
- "LAPACK={0}".format(spec['lapack'].libs),
+ "BLAS={0}".format(spec["blas"].libs),
+ "FFTW={0}".format(spec["fftw"].libs),
+ "LAPACK={0}".format(spec["lapack"].libs),
"PREFIX={0}".format(prefix),
"PWD={0}".format(self.build_directory),
]
@@ -54,10 +53,10 @@ class Shtools(MakefilePackage):
def build(self, spec, prefix):
with working_dir(self.build_directory):
# The 'fortran' and 'fortran-mp' targets must be built separately
- make('fortran', *self.makeopts(spec, prefix))
- if spec.satisfies('+openmp'):
- make('fortran-mp', *self.makeopts(spec, prefix))
+ make("fortran", *self.makeopts(spec, prefix))
+ if spec.satisfies("+openmp"):
+ make("fortran-mp", *self.makeopts(spec, prefix))
def install(self, spec, prefix):
with working_dir(self.build_directory):
- make('install', *self.makeopts(spec, prefix))
+ make("install", *self.makeopts(spec, prefix))