<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/236d43f2450c6be52dc42fd3a2bbabbaa5136201">https://github.com/macports/macports-ports/commit/236d43f2450c6be52dc42fd3a2bbabbaa5136201</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 236d43f2450c6be52dc42fd3a2bbabbaa5136201
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Fri Nov 12 21:56:51 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    clucene: fix build on arm64
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Also switches to cmake-1.1 PG.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://trac.macports.org/ticket/47197
</span>---
 devel/clucene/Portfile | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/clucene/Portfile b/devel/clucene/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 60cbc01621d..3bce1137a85 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/clucene/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/clucene/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +1,13 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 
 PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup               cmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup               cmake 1.1
</span> PortGroup               conflicts_build 1.0
 PortGroup               muniversal 1.0
 
 name                    clucene
 version                 2.3.3.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                3
</span> set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              devel
 platforms               darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,8 @@ homepage                http://clucene.sourceforge.net/
</span> master_sites            sourceforge:project/clucene/clucene-core-unstable/${branch}
 
 checksums               rmd160  5acfc9c8acd167b3684cfc731a60fd9c5465cc9b \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        sha256  ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        sha256  ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        size 2241498
</span> 
 depends_lib             port:zlib
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,12 +35,18 @@ patchfiles              0001-Fix-.pc-file-by-adding-clucene-shared-library.patch
</span> 
 patchfiles-append       patch-src-shared-CLucene-LuceneThreads.h.diff \
                         patch-src-shared-CLucene-config-repl_tchar.h.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        patch-${name}-contribs-lib.diff 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        patch-${name}-contribs-lib.diff
</span> 
 post-patch {
     # patch out installing bundled Boost headers
     reinplace "/ADD_SUBDIRECTORY (src\\/ext)/d" CMakeLists.txt
     system "rm -rf src/ext"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # it detects fstat64 and stat64 on arm64 which doesn't exist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {${build_arch} eq {arm64} && ${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|fstati64;_fstati64;fstat64;fstat;_fstat|fstat;_fstat|" ${worksrcpath}/src/shared/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|stati64;_stati64;stat64;stat;_stat|stat;_stat|" ${worksrcpath}/src/shared/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span> }
 
 configure.args-append   -DBUILD_CONTRIBS_LIB=ON \
</pre><pre style='margin:0'>

</pre>