<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/10da266ac14091d1535511d108bdf0380db02932">https://github.com/macports/macports-ports/commit/10da266ac14091d1535511d108bdf0380db02932</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 10da266 ht: Fix ambiguous abs build error with Xcode 9+
</span>10da266 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 10da266ac14091d1535511d108bdf0380db02932
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Dec 2 04:49:37 2019 -0600
<span style='display:block; white-space:pre;color:#404040;'> ht: Fix ambiguous abs build error with Xcode 9+
</span>---
devel/ht/Portfile | 4 ++++
devel/ht/files/htapp.cc.patch | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ht/Portfile b/devel/ht/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 87cc07c..8d008b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/ht/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ht/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,6 +2,7 @@ PortSystem 1.0
</span>
name ht
version 2.1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories devel editors
license GPL-2
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +23,9 @@ checksums rmd160 665e20a70a4735acf2102521b49074f94a28fba6 \
</span> depends_lib port:ncurses port:lzo2 port:xorg-libX11
patchfiles configure.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ htapp.cc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
file attributes ${worksrcpath}/install-sh -permissions +x
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ht/files/htapp.cc.patch b/devel/ht/files/htapp.cc.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a830ae1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ht/files/htapp.cc.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Use signed ints
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/sebastianbiallas/ht/commit/3b62f2f7e49e024ec9d3c5ffc8ff9cd87a107af6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fixes ambiguous abs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/sebastianbiallas/ht/issues/19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- htapp.cc.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ htapp.cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3021,8 +3021,8 @@ void do_modal_resize()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static uint isqr(uint u)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- uint a = 2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- uint b = u/a;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int a = 2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int b = u/a;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ while (abs(a - b) > 1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ a = (a+b)/2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ b = u/a;
</span></pre><pre style='margin:0'>
</pre>