chaparral: add new package (#28343)
This commit is contained in:
parent
a5c0a4dca4
commit
1dd9238021
32
var/spack/repos/builtin/packages/chaparral/package.py
Normal file
32
var/spack/repos/builtin/packages/chaparral/package.py
Normal file
@ -0,0 +1,32 @@
|
||||
# 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 Chaparral(CMakePackage):
|
||||
"""Radiation view factor library"""
|
||||
|
||||
homepage = "https://gitlab.com/truchas/tpl-forks/chaparral"
|
||||
git = "https://gitlab.com/truchas/tpl-forks/chaparral.git"
|
||||
|
||||
maintainers = ['pbrady']
|
||||
|
||||
version('develop', branch='truchas')
|
||||
version('2020-08-28',
|
||||
commit='c8a190bb74ef33ad8b2f7b67d20590f393fde32a',
|
||||
preferred=True)
|
||||
|
||||
variant('shared', default=True, description='Build shared library')
|
||||
variant('mpi', default=True, description='Build parallel library')
|
||||
|
||||
depends_on('mpi', when="+mpi")
|
||||
depends_on('cmake@3.16:', type='build')
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
|
||||
self.define_from_variant('ENABLE_MPI', 'mpi')
|
||||
]
|
Loading…
Reference in New Issue
Block a user