commit:     ec553e017c0324560f0e41b78f279bfbb7ebe398
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 27 04:47:50 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 27 04:47:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec553e01

dev-util/cmake: forward port Darwin sed to 3.20.x

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cmake/cmake-3.20.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-util/cmake/cmake-3.20.0.ebuild 
b/dev-util/cmake/cmake-3.20.0.ebuild
index 99b8eab6c2f..3d40c53f215 100644
--- a/dev-util/cmake/cmake-3.20.0.ebuild
+++ b/dev-util/cmake/cmake-3.20.0.ebuild
@@ -149,6 +149,8 @@ src_prepare() {
                        Source/cmStandardLexer.h \
                        Source/cmSystemTools.cxx \
                        Source/cmTimestamp.cxx
+               sed -i -e 's/^#if !defined(_POSIX_C_SOURCE) && !defined(_WIN32) 
&& !defined(__sun)/& \&\& !defined(__APPLE__)/' \
+                       Source/cmStandardLexer.h
        fi
 
        # Add gcc libs to the default link paths

Reply via email to