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.
This commit is contained in:
parent
4ff95dbd85
commit
b8175e3fae
@ -21,11 +21,13 @@ class Seacas(CMakePackage):
|
|||||||
"""
|
"""
|
||||||
homepage = "http://gsjaardema.github.io/seacas/"
|
homepage = "http://gsjaardema.github.io/seacas/"
|
||||||
git = "https://github.com/gsjaardema/seacas.git"
|
git = "https://github.com/gsjaardema/seacas.git"
|
||||||
|
url = "https://github.com/gsjaardema/seacas/archive/v2019-08-20.tar.gz"
|
||||||
maintainers = ['gsjaardema']
|
maintainers = ['gsjaardema']
|
||||||
|
|
||||||
# ###################### Versions ##########################
|
# ###################### Versions ##########################
|
||||||
version('master', branch='master')
|
version('master', branch='master')
|
||||||
|
version('2019-08-20', sha256='a82c1910c2b37427616dc3716ca0b3c1c77410db6723aefb5bea9f47429666e5')
|
||||||
|
version('2019-07-26', sha256='651dac832b0cfee0f63527f563415c8a65b8e4d79242735c1e2aec606f6b2e17')
|
||||||
|
|
||||||
# ###################### Variants ##########################
|
# ###################### Variants ##########################
|
||||||
# Package options
|
# Package options
|
||||||
@ -54,6 +56,8 @@ class Seacas(CMakePackage):
|
|||||||
description='Enable thread-safe exodus and IOSS libraries')
|
description='Enable thread-safe exodus and IOSS libraries')
|
||||||
|
|
||||||
# TPLs (alphabet order)
|
# TPLs (alphabet order)
|
||||||
|
variant('adios2', default=False,
|
||||||
|
description='Enable ADIOS2')
|
||||||
variant('cgns', default=True,
|
variant('cgns', default=True,
|
||||||
description='Enable CGNS')
|
description='Enable CGNS')
|
||||||
variant('matio', default=True,
|
variant('matio', default=True,
|
||||||
@ -71,6 +75,8 @@ class Seacas(CMakePackage):
|
|||||||
depends_on('netcdf@4.6.2:~mpi', when='~mpi')
|
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('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('matio', when='+matio')
|
||||||
depends_on('metis+int64+real64', when='+metis ~mpi')
|
depends_on('metis+int64+real64', when='+metis ~mpi')
|
||||||
depends_on('parmetis+int64+real64', when='+metis +mpi')
|
depends_on('parmetis+int64+real64', when='+metis +mpi')
|
||||||
@ -238,6 +244,16 @@ def cmake_args(self):
|
|||||||
'-DTPL_ENABLE_CGNS:BOOL=OFF'
|
'-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 ######################
|
# ################# RPath Handling ######################
|
||||||
if sys.platform == 'darwin' and macos_version() >= Version('10.12'):
|
if sys.platform == 'darwin' and macos_version() >= Version('10.12'):
|
||||||
# use @rpath on Sierra due to limit of dynamic loader
|
# use @rpath on Sierra due to limit of dynamic loader
|
||||||
|
Loading…
Reference in New Issue
Block a user