diff options
author | Robert Pavel <rspavel@lanl.gov> | 2021-03-20 03:38:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 10:38:13 +0100 |
commit | bba41f16d401c6b09404b4ce2332162329635e9f (patch) | |
tree | fd0bf1f960af8312a5f96425d7206ffcf8a0a065 /var | |
parent | 32f6fdce7c21e7914add2907fac5903b3c75fcd4 (diff) | |
download | spack-bba41f16d401c6b09404b4ce2332162329635e9f.tar.gz spack-bba41f16d401c6b09404b4ce2332162329635e9f.tar.bz2 spack-bba41f16d401c6b09404b4ce2332162329635e9f.tar.xz spack-bba41f16d401c6b09404b4ce2332162329635e9f.zip |
libristra: add new package (#22343)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libristra/package.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libristra/package.py b/var/spack/repos/builtin/packages/libristra/package.py new file mode 100644 index 0000000000..8dfd3942f5 --- /dev/null +++ b/var/spack/repos/builtin/packages/libristra/package.py @@ -0,0 +1,42 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +from spack import * + + +class Libristra(CMakePackage): + """ The ristra library is a set of support utilities for + ristra codes, including simple mathematical operations, physical + units, and input parsing + """ + homepage = 'https://github.com/laristra/libristra' + url = 'https://github.com/laristra/libristra/archive/master.zip' + git = 'https://github.com/laristra/libristra.git' + + version('master', branch='master', submodules=False, preferred=True) + version('1.0.0', commit='33235fe0334ca7f1f99b386a90932d9f8e1e71de') + + variant('build_type', default='Release', values=('Debug', 'Release', 'RelWithDebInfo', 'MinSizeRel'), + description='The build type to build', multi=False) + variant('paraview', default=False, description='Enable ParaView') + variant('shared_lua', default=False, description='Build with shared lua') + + depends_on('cmake@3.12:') + depends_on('mpi') + depends_on('boost@1.70.0: cxxstd=17 +program_options') + depends_on('lua@5.3.5~shared', when='~shared_lua') + depends_on('lua@5.3.5+shared', when='+shared_lua') + # TODO: might want to move paraview out of libristra + depends_on('paraview', when='+paraview') + # We explicitly depend on gtest and can no longer rely on others for it + depends_on('googletest@1.8.1+gmock') + + def cmake_args(self): + options = ['-DENABLE_LUA=ON'] + + options.append(self.define('ENABLE_UNIT_TESTS', self.run_tests)) + + return options |