<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/97394293044d15e1813f85eb45f396d07c65f5cf">https://github.com/macports/macports-ports/commit/97394293044d15e1813f85eb45f396d07c65f5cf</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 97394293044d15e1813f85eb45f396d07c65f5cf
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu Aug 4 17:27:34 2022 +0545
<span style='display:block; white-space:pre;color:#404040;'> grep: fix build on Rosetta
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/64497
</span>---
sysutils/grep/Portfile | 8 ++++++++
1 file changed, 8 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/grep/Portfile b/sysutils/grep/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8346c34c378..6dc8b19758c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/grep/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/grep/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,6 +48,14 @@ depends_build port:gettext
</span> depends_lib port:gettext-runtime \
port:pcre
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix for Rosetta: https://trac.macports.org/ticket/64497
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin 10 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${build_arch} eq "ppc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --build=powerpc-apple-darwin${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-test {
reinplace "s|base64 -d|base64 --decode|g" ${worksrcpath}/tests/pcre-jitstack
}
</pre><pre style='margin:0'>
</pre>