diff options
author | Greg Sjaardema <gsjaardema@gmail.com> | 2019-08-23 16:08:02 -0600 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-08-23 15:08:02 -0700 |
commit | b8175e3fae782155de451b4db8c89fbe8878826a (patch) | |
tree | 3c0c0feac6a43eb4d564063d3e68c60d84410f46 /var | |
parent | 4ff95dbd85159e4fb167f4c41f90fa334e680d23 (diff) | |
download | spack-b8175e3fae782155de451b4db8c89fbe8878826a.tar.gz spack-b8175e3fae782155de451b4db8c89fbe8878826a.tar.bz2 spack-b8175e3fae782155de451b4db8c89fbe8878826a.tar.xz spack-b8175e3fae782155de451b4db8c89fbe8878826a.zip |
SEACAS package: add fixed versions and adios2 variant (#12503)
SEACAS is now using versions instead of just relying on always
installing master. There are now tagged versions.
The most recent version is the first that can be used with a
non-patched develop version of the CGNS package; previously, seacas
required that the CGNS library have some internally-developed patch
applied, but this is no longer needed.
Also, added support for adios2 package with the adios2 variant.
This currently defaults to off.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/seacas/package.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py index d3821f07c5..f02cb9b09e 100644 --- a/var/spack/repos/builtin/packages/seacas/package.py +++ b/var/spack/repos/builtin/packages/seacas/package.py @@ -21,11 +21,13 @@ class Seacas(CMakePackage): """ homepage = "http://gsjaardema.github.io/seacas/" git = "https://github.com/gsjaardema/seacas.git" - + url = "https://github.com/gsjaardema/seacas/archive/v2019-08-20.tar.gz" maintainers = ['gsjaardema'] # ###################### Versions ########################## version('master', branch='master') + version('2019-08-20', sha256='a82c1910c2b37427616dc3716ca0b3c1c77410db6723aefb5bea9f47429666e5') + version('2019-07-26', sha256='651dac832b0cfee0f63527f563415c8a65b8e4d79242735c1e2aec606f6b2e17') # ###################### Variants ########################## # Package options @@ -54,6 +56,8 @@ class Seacas(CMakePackage): description='Enable thread-safe exodus and IOSS libraries') # TPLs (alphabet order) + variant('adios2', default=False, + description='Enable ADIOS2') variant('cgns', default=True, description='Enable CGNS') variant('matio', default=True, @@ -71,6 +75,8 @@ class Seacas(CMakePackage): depends_on('netcdf@4.6.2:~mpi', when='~mpi') depends_on('cgns@develop+mpi+scoping', when='+cgns +mpi') depends_on('cgns@develop~mpi+scoping', when='+cgns ~mpi') + depends_on('adios2@develop~mpi', when='+adios2 ~mpi') + depends_on('adios2@develop+mpi', when='+adios2 +mpi') depends_on('matio', when='+matio') depends_on('metis+int64+real64', when='+metis ~mpi') depends_on('parmetis+int64+real64', when='+metis +mpi') @@ -238,6 +244,16 @@ class Seacas(CMakePackage): '-DTPL_ENABLE_CGNS:BOOL=OFF' ]) + if '+adios2' in spec: + options.extend([ + '-DTPL_ENABLE_ADIOS2:BOOL=ON', + '-DADIOS2_ROOT:PATH=%s' % spec['adios2'].prefix, + ]) + else: + options.extend([ + '-DTPL_ENABLE_ADIOS2:BOOL=OFF' + ]) + # ################# RPath Handling ###################### if sys.platform == 'darwin' and macos_version() >= Version('10.12'): # use @rpath on Sierra due to limit of dynamic loader |