diff --git a/dev-cpp/reproc/Manifest b/dev-cpp/reproc/Manifest new file mode 100644 index 0000000000..c19507991c --- /dev/null +++ b/dev-cpp/reproc/Manifest @@ -0,0 +1 @@ +DIST reproc-14.2.4.tar.gz 64956 BLAKE2B a22681889d7daa1b0cc07875ef926e1c8c2d0bbe65505d9ddba42a33077bbf963ba33d733db71a76d09c67721027f846c01f023b4957ea9f44463511cae76d20 SHA512 c592521960f1950d626261738091d25efdf764ee1a0c72a58c28c66eaebf6073b2c978f1dc2c8dbe89b0be7ec1629a3a45cb1fafa0ebe21b5df8d4d27c992675 diff --git a/dev-cpp/reproc/files/reproc-14.2.4-fix-gcc13-build.patch b/dev-cpp/reproc/files/reproc-14.2.4-fix-gcc13-build.patch new file mode 100644 index 0000000000..dca643af5c --- /dev/null +++ b/dev-cpp/reproc/files/reproc-14.2.4-fix-gcc13-build.patch @@ -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; diff --git a/dev-cpp/reproc/metadata.xml b/dev-cpp/reproc/metadata.xml new file mode 100644 index 0000000000..a52748723d --- /dev/null +++ b/dev-cpp/reproc/metadata.xml @@ -0,0 +1,11 @@ + + + + +OriPoin@outlook.com +Yachen Wang + + +DaanDeMeyer/reproc + + diff --git a/dev-cpp/reproc/reproc-14.2.4.ebuild b/dev-cpp/reproc/reproc-14.2.4.ebuild new file mode 100644 index 0000000000..981b4aca71 --- /dev/null +++ b/dev-cpp/reproc/reproc-14.2.4.ebuild @@ -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 +}