diff options
author | Pranav Sivaraman <pranavsivaraman@gmail.com> | 2024-11-04 20:51:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 17:51:23 -0800 |
commit | 54aaa95a3517fa0c9068eaf98655fe13813d2968 (patch) | |
tree | 348207f66cd369a65ffea2e361ede32413ef7545 /var | |
parent | 5a29c9d82bac87546e7436248a9b9d5342ab1c29 (diff) | |
download | spack-54aaa95a3517fa0c9068eaf98655fe13813d2968.tar.gz spack-54aaa95a3517fa0c9068eaf98655fe13813d2968.tar.bz2 spack-54aaa95a3517fa0c9068eaf98655fe13813d2968.tar.xz spack-54aaa95a3517fa0c9068eaf98655fe13813d2968.zip |
flux: new package (#47392)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/flux/package.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flux/package.py b/var/spack/repos/builtin/packages/flux/package.py new file mode 100644 index 0000000000..934f9d5655 --- /dev/null +++ b/var/spack/repos/builtin/packages/flux/package.py @@ -0,0 +1,39 @@ +# Copyright 2013-2024 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 Flux(CMakePackage): + """A C++20 library for sequence-orientated programming""" + + homepage = "https://tristanbrindle.com/flux/" + url = "https://github.com/tcbrindle/flux/archive/refs/tags/v0.4.0.tar.gz" + + maintainers("pranav-sivaraman") + + license("BSL-1.0", checked_by="pranav-sivaraman") + + version("0.4.0", sha256="95e7d9d71c9ee9e89bb24b46ccba77ddfb0a1580630c2faab0b415dacc7c8d56") + + variant("docs", default=False, description="Build Flux documentation") + + depends_on("cxx", type="build") + depends_on("cmake@3.23:", type="build") + + with default_args(when="+docs"): + depends_on("py-sphinx") + depends_on("py-sphinx-copybutton") + depends_on("py-furo") + + def cmake_args(self): + args = [ + self.define("FLUX_BUILD_TESTS", self.run_tests), + self.define("FLUX_BUILD_EXAMPLES", False), + self.define_from_variant("FLUX_BUILD_DOCS", "docs"), + ] + + return args |