indicators: new package (#47786)

* indicators: new package

Indicators is a new package which aims to add easy-to-use progress bars
to modern C++.

* Update header

* Update dependencies
This commit is contained in:
Stephen Nicholas Swatman 2025-01-20 16:00:37 +01:00 committed by GitHub
parent 9296527775
commit f47bf5f6b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,32 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Indicators(CMakePackage):
"""Activity indicators for modern C++."""
homepage = "https://github.com/p-ranav/indicators"
url = "https://github.com/p-ranav/indicators/archive/refs/tags/v2.3.tar.gz"
list_url = "https://github.com/p-ranav/indicators/tags"
git = "https://github.com/p-ranav/indicators.git"
maintainers("stephenswat")
license("MIT", checked_by="stephenswat")
version("2.3", sha256="70da7a693ff7a6a283850ab6d62acf628eea17d386488af8918576d0760aef7b")
depends_on("cxx", type="build")
depends_on("cmake@3.8:", type="build")
def cmake_args(self):
args = [
self.define("INDICATORS_BUILD_TESTS", self.run_tests),
self.define("INDICATORS_SAMPLES", False),
self.define("INDICATORS_DEMO", False),
]
return args