chaparral: add new package (#28343)

This commit is contained in:
Peter Brady 2022-01-15 14:05:03 -07:00 committed by GitHub
parent a5c0a4dca4
commit 1dd9238021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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')
]