<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/363c00c5f5e093190094c348c9daee7365b361cb">https://github.com/macports/macports-ports/commit/363c00c5f5e093190094c348c9daee7365b361cb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 363c00c5f5e093190094c348c9daee7365b361cb
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Jan 25 23:57:51 2022 -0600
<span style='display:block; white-space:pre;color:#404040;'> libtranslate: Update config.guess/config.sub
</span>---
textproc/libtranslate/Portfile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/libtranslate/Portfile b/textproc/libtranslate/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2f463297789..4756614d080 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/libtranslate/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/libtranslate/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,9 +2,9 @@ PortSystem 1.0
</span>
name libtranslate
version 0.99
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories textproc
license BSD
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description A natural language translation library
long_description libtranslate is a library for translating text and web \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,3 +26,15 @@ depends_lib port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 port:libiconv por
</span>
configure.args --mandir=${prefix}/share/man
configure.cflags-append "-I${prefix}/include"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin arm {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:automake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use newer config.guess and config.sub to support Apple Silicon.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set automake_dirs [glob -directory ${prefix}/share automake-*]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>