From 1ffbc3a9cb9d4386f6ae171207f7b85ef182e8a2 Mon Sep 17 00:00:00 2001 From: TIAN Yuanhao Date: Mon, 28 Nov 2022 12:34:15 +0000 Subject: [PATCH] package/tl-expected: new package Required by micromamba. Signed-off-by: TIAN Yuanhao Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/tl-expected/Config.in | 12 ++++++++++++ package/tl-expected/tl-expected.hash | 3 +++ package/tl-expected/tl-expected.mk | 20 ++++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/tl-expected/Config.in create mode 100644 package/tl-expected/tl-expected.hash create mode 100644 package/tl-expected/tl-expected.mk diff --git a/DEVELOPERS b/DEVELOPERS index 9cc080f7a4..220a326adc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2790,6 +2790,7 @@ N: TIAN Yuanhao F: package/cli11/ F: package/open-isns/ F: package/termcolor/ +F: package/tl-expected/ N: Tan En De F: package/libkcapi/ diff --git a/package/Config.in b/package/Config.in index e1a1b153b1..fa0713c311 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2132,6 +2132,7 @@ endif source "package/startup-notification/Config.in" source "package/tbb/Config.in" source "package/tinycbor/Config.in" + source "package/tl-expected/Config.in" source "package/tz/Config.in" source "package/tzdata/Config.in" source "package/uvw/Config.in" diff --git a/package/tl-expected/Config.in b/package/tl-expected/Config.in new file mode 100644 index 0000000000..92758ffee5 --- /dev/null +++ b/package/tl-expected/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_TL_EXPECTED + bool "tl-expected" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + C++11/14/17 std::expected with functional-style extensions and + reference support. + + https://github.com/TartanLlama/expected + +comment "tl-expected needs a toolchain w/ C++, gcc >= 4.8" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 diff --git a/package/tl-expected/tl-expected.hash b/package/tl-expected/tl-expected.hash new file mode 100644 index 0000000000..e5c9cc2a3e --- /dev/null +++ b/package/tl-expected/tl-expected.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 2611769546cedcaef233ef587e71420d1f079a794eb7bb19b888dedf991ace7c tl-expected-v1.0.0-br1.tar.gz +sha256 a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499 COPYING diff --git a/package/tl-expected/tl-expected.mk b/package/tl-expected/tl-expected.mk new file mode 100644 index 0000000000..8d62c75fea --- /dev/null +++ b/package/tl-expected/tl-expected.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# tl-expected +# +################################################################################ + +TL_EXPECTED_VERSION = v1.0.0 +TL_EXPECTED_SITE = https://github.com/TartanLlama/expected +TL_EXPECTED_SITE_METHOD = git +TL_EXPECTED_GIT_SUBMODULES = YES +TL_EXPECTED_LICENSE = CC0-1.0 +TL_EXPECTED_LICENSE_FILES = COPYING +TL_EXPECTED_INSTALL_STAGING = YES +TL_EXPECTED_INSTALL_TARGET = NO +TL_EXPECTED_CONF_OPTS = \ + -DCMAKE_MODULE_PATH=$(TL_EXPECTED_DIR)/cmake/tl-cmake \ + -DEXPECTED_ENABLE_TESTS=OFF \ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + +$(eval $(cmake-package))