commit:     a9f9f998f1fa63fea5f1c54a7e91783c6db2983b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 17 22:49:27 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 22:50:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9f9f998

dev-util/cmake: fix Darwin build for 3.19.5

See also: 96ed1a37d7fc76b5e970158d31ce5692dbf58a12
Bug: https://bugs.gentoo.org/757426
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/dev-util/cmake/cmake-3.19.5.ebuild 
b/dev-util/cmake/cmake-3.19.5.ebuild
index 99b8eab6c2f..3d40c53f215 100644
--- a/dev-util/cmake/cmake-3.19.5.ebuild
+++ b/dev-util/cmake/cmake-3.19.5.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