aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-11-30 10:50:16 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2025-11-30 10:52:34 +0000
commit50cf99ce46118376afd878e6cbbec931e1dba5cb (patch)
treee090caa468b67ba985bdae5ef9087f0759c0c275
parent892cdc40b6f90e2c70a0be3cb6a3f8eb782945fd (diff)
devel/subprocess.h: New port: Single header process launching solution for C and C++
-rw-r--r--devel/Makefile1
-rw-r--r--devel/subprocess.h/Makefile24
-rw-r--r--devel/subprocess.h/distinfo3
-rw-r--r--devel/subprocess.h/pkg-descr8
4 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 47219144a38f..3edde152ea46 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8375,6 +8375,7 @@
SUBDIR += stylua
SUBDIR += styx
SUBDIR += subprocess
+ SUBDIR += subprocess.h
SUBDIR += subversion
SUBDIR += subversion-book
SUBDIR += subversion-lts
diff --git a/devel/subprocess.h/Makefile b/devel/subprocess.h/Makefile
new file mode 100644
index 000000000000..a63a2d318014
--- /dev/null
+++ b/devel/subprocess.h/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= subprocess.h
+DISTVERSION= g20240720
+CATEGORIES= devel
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Single header process launching solution for C and C++
+WWW= https://github.com/sheredom/subprocess.h
+
+LICENSE= UNLICENSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= sheredom
+GH_TAGNAME= b49c56e9fe214488493021017bf3954b91c7c1f5
+
+NO_BUILD= yes
+NO_ARCH= yes
+
+PLIST_FILES= include/subprocess.h
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/subprocess.h ${STAGEDIR}${PREFIX}/include
+
+.include <bsd.port.mk>
diff --git a/devel/subprocess.h/distinfo b/devel/subprocess.h/distinfo
new file mode 100644
index 000000000000..8cd6dc88fe13
--- /dev/null
+++ b/devel/subprocess.h/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1764499422
+SHA256 (sheredom-subprocess.h-g20240720-b49c56e9fe214488493021017bf3954b91c7c1f5_GH0.tar.gz) = 77940e02408fb773a5e355646f8abd99a215db1b54b2bb8022ce8b864441d933
+SIZE (sheredom-subprocess.h-g20240720-b49c56e9fe214488493021017bf3954b91c7c1f5_GH0.tar.gz) = 28938
diff --git a/devel/subprocess.h/pkg-descr b/devel/subprocess.h/pkg-descr
new file mode 100644
index 000000000000..d9572cac5890
--- /dev/null
+++ b/devel/subprocess.h/pkg-descr
@@ -0,0 +1,8 @@
+subprocess.h is a single header solution for launching and interacting
+with child processes in C and C++.
+
+It provides a simple and modern C++ API for executing external commands,
+redirecting I/O, and managing process lifecycle.
+
+This library aims to be a cross-platform solution for process management,
+offering an easy-to-use alternative to platform-specific APIs.