blob: 7a25ec816a2094f5a0fdc006f30c34befbbcbd4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2013-2022 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.package import *
class Libcatalyst(CMakePackage):
"""Catalyst is an API specification developed for simulations (and other
scientific data producers) to analyze and visualize data in situ."""
homepage = "https://gitlab.kitware.com/paraview/catalyst"
url = "https://gitlab.kitware.com/paraview/catalyst/-/archive/{0}/catalyst-{0}.tar.bz2"
maintainers = ["mathstuf"]
# master as of 2021-05-12
version(
"2021-05-12", sha256="5a01f12b271d9d9e9b89f31d45a5f4b8426904483639d38754893adfd3547bab"
)
variant("mpi", default=False, description="Enable MPI support")
variant("python3", default=False, description="Enable Python3 support")
depends_on("mpi", when="+mpi")
# TODO: catalyst doesn't support an external conduit
# depends_on('conduit')
def url_for_version(self, version):
_urlfmt = self.url
return _urlfmt.format(version)
def cmake_args(self):
"""Populate cmake arguments for libcatalyst."""
args = [
"-DCATALYST_BUILD_TESTING=OFF",
self.define_from_variant("CATALYST_USE_MPI", "mpi"),
]
return args
|