[Buildroot] [git commit branch/next] package/termcolor: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Feb 7 15:18:37 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=4e4402d4efb86256a3cff9c17c03f7300e427e1a
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Required by micromamba.

Signed-off-by: TIAN Yuanhao <tianyuanhao3 at 163.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/termcolor/Config.in      | 12 ++++++++++++
 package/termcolor/termcolor.hash |  3 +++
 package/termcolor/termcolor.mk   | 14 ++++++++++++++
 5 files changed, 31 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 830dab56f0..9cc080f7a4 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2789,6 +2789,7 @@ F:	package/most/
 N:	TIAN Yuanhao <tianyuanhao3 at 163.com>
 F:	package/cli11/
 F:	package/open-isns/
+F:	package/termcolor/
 
 N:	Tan En De <ende.tan at starfivetech.com>
 F:	package/libkcapi/
diff --git a/package/Config.in b/package/Config.in
index 3773901552..e1a1b153b1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2176,6 +2176,7 @@ menu "Text and terminal handling"
 	source "package/readline/Config.in"
 	source "package/slang/Config.in"
 	source "package/tclap/Config.in"
+	source "package/termcolor/Config.in"
 	source "package/utf8proc/Config.in"
 endmenu
 
diff --git a/package/termcolor/Config.in b/package/termcolor/Config.in
new file mode 100644
index 0000000000..979ad61d81
--- /dev/null
+++ b/package/termcolor/Config.in
@@ -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
diff --git a/package/termcolor/termcolor.hash b/package/termcolor/termcolor.hash
new file mode 100644
index 0000000000..dede06c9b0
--- /dev/null
+++ b/package/termcolor/termcolor.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  435994c32557674469404cb1527c283fdcf45746f7df75fd2996bb200d6a759f  termcolor-2.1.0.tar.gz
+sha256  bab0f53c36b248df22e2298ddf9eeea14b28783f187fcbff6a38f2c47b3a3a7d  LICENSE
diff --git a/package/termcolor/termcolor.mk b/package/termcolor/termcolor.mk
new file mode 100644
index 0000000000..0374ce8b73
--- /dev/null
+++ b/package/termcolor/termcolor.mk
@@ -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))



More information about the buildroot mailing list