devel/subprocess: New port: C++ subprocess library similar in design to Python subprocess library

This commit is contained in:
Yuri Victorovich
2024-06-07 08:50:59 -07:00
parent 8978bebb13
commit 59dd7eeaf6
5 changed files with 53 additions and 0 deletions
+1
View File
@@ -7911,6 +7911,7 @@
SUBDIR += stxxl
SUBDIR += stylua
SUBDIR += styx
SUBDIR += subprocess
SUBDIR += subversion
SUBDIR += subversion-book
SUBDIR += subversion-lts
+35
View File
@@ -0,0 +1,35 @@
PORTNAME= subprocess
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.0-6
DISTVERSIONSUFFIX= -g29d01c7
CATEGORIES= devel
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 2caf8c1e119d5f14f4ae31316ddfd03126e101ac.patch:-p1 # https://github.com/benman64/subprocess/pull/17
PATCHFILES+= cef6823e5834053a20144b790945f7ed1808c28c.patch:-p1 # https://github.com/benman64/subprocess/pull/18
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ subprocess library similar in design to Python subprocess library
WWW= https://github.com/benman64/subprocess
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake:testing python:build
USE_GITHUB= yes
GH_ACCOUNT= benman64
CMAKE_ON= BUILD_SHARED_LIBS
BINARY_ALIAS= python3=${PYTHON_CMD}
do-install:
${INSTALL_DATA} ${WRKSRC}/src/cpp/subprocess.hpp ${STAGEDIR}${PREFIX}/include
${MKDIR} ${STAGEDIR}${PREFIX}/include/subprocess
.for inc in basic_types.hpp pipe.hpp PipeVar.hpp ProcessBuilder.hpp shell_utils.hpp environ.hpp
${INSTALL_DATA} ${WRKSRC}/src/cpp/subprocess/${inc} ${STAGEDIR}${PREFIX}/include/subprocess
.endfor
${INSTALL_LIB} ${BUILD_WRKSRC}/subprocess/libsubprocess.so ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>
+7
View File
@@ -0,0 +1,7 @@
TIMESTAMP = 1717738163
SHA256 (benman64-subprocess-v0.4.0-6-g29d01c7_GH0.tar.gz) = d52f6c578048de03aac10b100eeef42ef06677b5c1cc0816eae2e0906d2745df
SIZE (benman64-subprocess-v0.4.0-6-g29d01c7_GH0.tar.gz) = 717218
SHA256 (2caf8c1e119d5f14f4ae31316ddfd03126e101ac.patch) = e6ed70cf42f7e43db6bfaea58c8c9eb1e0b5b83b0fb10fbae0f98a3e0d326259
SIZE (2caf8c1e119d5f14f4ae31316ddfd03126e101ac.patch) = 677
SHA256 (cef6823e5834053a20144b790945f7ed1808c28c.patch) = 9f82743ba74894497327f23d54a048a2fdf49ec82ee48bc5d10ed951bdabaa15
SIZE (cef6823e5834053a20144b790945f7ed1808c28c.patch) = 1309
+2
View File
@@ -0,0 +1,2 @@
subprocess is a cross platform subprocess library for c++ similar to design
of python subprocess.
+8
View File
@@ -0,0 +1,8 @@
include/subprocess.hpp
include/subprocess/PipeVar.hpp
include/subprocess/ProcessBuilder.hpp
include/subprocess/basic_types.hpp
include/subprocess/environ.hpp
include/subprocess/pipe.hpp
include/subprocess/shell_utils.hpp
lib/libsubprocess.so