app-misc/corectrl: replace patches with a simple sed

Signed-off-by: Charlie Quinet <w.iron.zombie@gmail.com>
This commit is contained in:
Charlie Quinet
2025-02-14 16:07:26 +01:00
parent dd91a08977
commit d0baf21da9
4 changed files with 6 additions and 50 deletions

View File

@@ -55,7 +55,9 @@ RDEPEND="${COMMON_DEPEND}
CONFIG_CHECK="~CONNECTOR ~PROC_EVENTS ~NETLINK_DIAG"
src_prepare() {
! tc-is-gcc && (clang++ --version 2>&1 | grep -q "libcxx") && eapply "${FILESDIR}/1.4.3-remove_libstdcxxfs_dependency.patch"
if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
sed -i 's/stdc++fs//g' src/CMakeLists.txt src/helper/CMakeLists.txt || die
fi
cmake_src_prepare
}