package/termcolor: new package

Required by micromamba.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
TIAN Yuanhao 2022-11-28 12:34:14 +00:00 committed by Thomas Petazzoni
parent f25b760186
commit 4e4402d4ef
5 changed files with 31 additions and 0 deletions

View File

@ -2789,6 +2789,7 @@ F: package/most/
N: TIAN Yuanhao <tianyuanhao3@163.com> N: TIAN Yuanhao <tianyuanhao3@163.com>
F: package/cli11/ F: package/cli11/
F: package/open-isns/ F: package/open-isns/
F: package/termcolor/
N: Tan En De <ende.tan@starfivetech.com> N: Tan En De <ende.tan@starfivetech.com>
F: package/libkcapi/ F: package/libkcapi/

View File

@ -2176,6 +2176,7 @@ menu "Text and terminal handling"
source "package/readline/Config.in" source "package/readline/Config.in"
source "package/slang/Config.in" source "package/slang/Config.in"
source "package/tclap/Config.in" source "package/tclap/Config.in"
source "package/termcolor/Config.in"
source "package/utf8proc/Config.in" source "package/utf8proc/Config.in"
endmenu endmenu

View File

@ -0,0 +1,12 @@
config BR2_PACKAGE_TERMCOLOR
bool "termcolor"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
help
Termcolor is a header-only C++ library for printing colored
messages to the terminal.
https://github.com/ikalnytskyi/termcolor
comment "termcolor needs a toolchain w/ C++, gcc >= 4.8"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 435994c32557674469404cb1527c283fdcf45746f7df75fd2996bb200d6a759f termcolor-2.1.0.tar.gz
sha256 bab0f53c36b248df22e2298ddf9eeea14b28783f187fcbff6a38f2c47b3a3a7d LICENSE

View File

@ -0,0 +1,14 @@
################################################################################
#
# termcolor
#
################################################################################
TERMCOLOR_VERSION = 2.1.0
TERMCOLOR_SITE = $(call github,ikalnytskyi,termcolor,v$(TERMCOLOR_VERSION))
TERMCOLOR_LICENSE = BSD-3-Clause
TERMCOLOR_LICENSE_FILES = LICENSE
TERMCOLOR_INSTALL_STAGING = YES
TERMCOLOR_INSTALL_TARGET = NO
$(eval $(cmake-package))