dev-cpp/reproc: A cross-platform (C99/C++11) process library

This commit is contained in:
Yachen Wang authored and 梁永祥 committed 2024-01-17 21:44:40 +08:00
1 parent 71121e6f8e
commit c86f9fe2a7
4 files changed
+68

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST reproc-14.2.4.tar.gz 64956 BLAKE2B a22681889d7daa1b0cc07875ef926e1c8c2d0bbe65505d9ddba42a33077bbf963ba33d733db71a76d09c67721027f846c01f023b4957ea9f44463511cae76d20 SHA512 c592521960f1950d626261738091d25efdf764ee1a0c72a58c28c66eaebf6073b2c978f1dc2c8dbe89b0be7ec1629a3a45cb1fafa0ebe21b5df8d4d27c992675
@@ -0,0 +1,26 @@
--- a/reproc++/include/reproc++/reproc.hpp 2023-08-28 20:48:34.592494191 -0600
+++ b/reproc++/include/reproc++/reproc.hpp 2023-08-28 20:49:05.695674776 -0600
@@ -88,18 +88,18 @@
struct options {
struct {
- env::type behavior;
+ reproc::env::type behavior;
/*! Implicitly converts from any STL container of string pairs to the
environment format expected by `reproc_start`. */
- class env extra;
+ reproc::env extra;
} env = {};
const char *working_directory = nullptr;
struct {
- redirect in;
- redirect out;
- redirect err;
+ reproc::redirect in;
+ reproc::redirect out;
+ reproc::redirect err;
bool parent;
bool discard;
FILE *file;
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>OriPoin@outlook.com</email>
<name>Yachen Wang</name>
</maintainer>
<upstream>
<remote-id type="github">DaanDeMeyer/reproc</remote-id>
</upstream>
</pkgmetadata>
+30
View File
@@ -0,0 +1,30 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
DESCRIPTION="A cross-platform (C99/C++11) process library"
HOMEPAGE="https://github.com/DaanDeMeyer/reproc"
SRC_URI="https://github.com/DaanDeMeyer/reproc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/14"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="test"
PATCHES=( "${FILESDIR}/${P}-fix-gcc13-build.patch" )
multilib_src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
-DCMAKE_INSTALL_LIBDIR=$(get_libdir)
-DBUILD_SHARED_LIBS=ON
-DREPROC++=ON
-DREPROC_TEST=$(usex test)
)
cmake_src_configure
}