<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3fd961ba60c083fefd0d6f054acb306ff5730307">https://github.com/macports/macports-ports/commit/3fd961ba60c083fefd0d6f054acb306ff5730307</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 3fd961ba60c libgcrypt: allow cross-arch universal building
</span>3fd961ba60c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3fd961ba60c083fefd0d6f054acb306ff5730307
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Fri Dec 30 14:00:15 2022 -0800
<span style='display:block; white-space:pre;color:#404040;'> libgcrypt: allow cross-arch universal building
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> strip host= from pc file
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/63635
</span>---
devel/libgcrypt/Portfile | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libgcrypt/Portfile b/devel/libgcrypt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 742b34ea915..813313e56e1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libgcrypt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libgcrypt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ PortGroup muniversal 1.0
</span>
name libgcrypt
version 1.10.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel security
# libs are LGPL, executables and docs are GPL
license {GPL-2+ LGPL-2.1+}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,6 +72,24 @@ post-patch {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# strip host= from pkgconfig file https://trac.macports.org/ticket/63635
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# could be added to muniversal PG but Ryan asked that it remain in each Port needing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# so that upstream could be notified and fix it properly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_exists universal] && [variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set dirs {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${universal_archs_to_use} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend dirs ${worksrcpath}-${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set dirs ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach dir ${dirs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Remove architecture-specific differences to allow merging.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|host=[^ ]+||g} ${dir}/src/libgcrypt.pc
</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> post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
</pre><pre style='margin:0'>
</pre>