From 26dd70e954a7c9142b078837ab1bbfad54d0e5cb Mon Sep 17 00:00:00 2001 From: TIAN Yuanhao Date: Mon, 28 Nov 2022 12:34:17 +0000 Subject: [PATCH] package/reproc: new package Required by micromamba. Signed-off-by: TIAN Yuanhao Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/reproc/Config.in | 14 ++++++++++++++ package/reproc/reproc.hash | 3 +++ package/reproc/reproc.mk | 17 +++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/reproc/Config.in create mode 100644 package/reproc/reproc.hash create mode 100644 package/reproc/reproc.mk diff --git a/DEVELOPERS b/DEVELOPERS index e8ddad71cd..d7c4d03c4c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2790,6 +2790,7 @@ N: TIAN Yuanhao F: package/cli11/ F: package/libsolv/ F: package/open-isns/ +F: package/reproc/ F: package/termcolor/ F: package/tl-expected/ diff --git a/package/Config.in b/package/Config.in index 6ca4c61959..06d0a05854 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2126,6 +2126,7 @@ endif source "package/protozero/Config.in" source "package/qhull/Config.in" source "package/qlibc/Config.in" + source "package/reproc/Config.in" source "package/riemann-c-client/Config.in" source "package/shapelib/Config.in" source "package/skalibs/Config.in" diff --git a/package/reproc/Config.in b/package/reproc/Config.in new file mode 100644 index 0000000000..a4e9c893b1 --- /dev/null +++ b/package/reproc/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_REPROC + bool "reproc" + depends on BR2_USE_MMU # fork() + depends on BR2_USE_WCHAR # uses wchar_t + depends on BR2_TOOLCHAIN_HAS_THREADS # pthread + help + reproc is a cross-platform C/C++ library that simplifies + starting, stopping and communicating with external programs. + + https://github.com/DaanDeMeyer/reproc + +comment "reproc needs a toolchain w/ threads, wchar" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/reproc/reproc.hash b/package/reproc/reproc.hash new file mode 100644 index 0000000000..6da6d0a0bb --- /dev/null +++ b/package/reproc/reproc.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 55c780f7faa5c8cabd83ebbb84b68e5e0e09732de70a129f6b3c801e905415dd reproc-14.2.4.tar.gz +sha256 8f91afbe266bebac2cf1b220e0e67ace4cb9a97d2b21940abef20eb6691cfa91 LICENSE diff --git a/package/reproc/reproc.mk b/package/reproc/reproc.mk new file mode 100644 index 0000000000..3167911c4d --- /dev/null +++ b/package/reproc/reproc.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# reproc +# +################################################################################ + +REPROC_VERSION = 14.2.4 +REPROC_SITE = $(call github,DaanDeMeyer,reproc,v$(REPROC_VERSION)) +REPROC_LICENSE = MIT +REPROC_LICENSE_FILES = LICENSE +REPROC_INSTALL_STAGING = YES + +ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),yy) # C++11 +REPROC_CONF_OPTS += -DREPROC++=ON +endif + +$(eval $(cmake-package))