diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-08-10 18:39:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 18:39:55 +0200 |
commit | afc1134fe6047e64fd743506eabccfa5c572cb1f (patch) | |
tree | afdd076ef478ea85052802af8ee1ad16160237c6 | |
parent | 8dff43b8ea41886e5983f283f178763cbb23eb45 (diff) | |
download | spack-afc1134fe6047e64fd743506eabccfa5c572cb1f.tar.gz spack-afc1134fe6047e64fd743506eabccfa5c572cb1f.tar.bz2 spack-afc1134fe6047e64fd743506eabccfa5c572cb1f.tar.xz spack-afc1134fe6047e64fd743506eabccfa5c572cb1f.zip |
cpp-termcolor: new package (#25336)
-rw-r--r-- | var/spack/repos/builtin/packages/cpp-termcolor/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cpp-termcolor/package.py b/var/spack/repos/builtin/packages/cpp-termcolor/package.py new file mode 100644 index 0000000000..3fb447f375 --- /dev/null +++ b/var/spack/repos/builtin/packages/cpp-termcolor/package.py @@ -0,0 +1,27 @@ +# 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 CppTermcolor(CMakePackage): + """ + Termcolor is a header-only C++ library for printing colored messages to the + terminal. + """ + + homepage = "https://github.com/ikalnytskyi/termcolor" + url = "https://github.com/ikalnytskyi/termcolor/archive/refs/tags/v2.0.0.tar.gz" + + maintainers = ['haampie'] + + version('2.0.0', sha256='4a73a77053822ca1ed6d4a2af416d31028ec992fb0ffa794af95bd6216bb6a20') + + depends_on('cmake@3.0:', type='build') + + def cmake_args(self): + return [ + self.define('TERMCOLOR_TESTS', 'OFF') + ] |