<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/1c69828ba68c9a5f582a60b16fa557bb877989c1">https://github.com/macports/macports-ports/commit/1c69828ba68c9a5f582a60b16fa557bb877989c1</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 1c69828 sunwait: Work correctly on macOS
</span>1c69828 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1c69828ba68c9a5f582a60b16fa557bb877989c1
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Oct 8 15:04:16 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> sunwait: Work correctly on macOS
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/51700
</span>---
sysutils/sunwait/Portfile | 5 +--
sysutils/sunwait/files/patch-sunwait.cpp.diff | 47 +++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/sunwait/Portfile b/sysutils/sunwait/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8a673e6..66554cb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/sunwait/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/sunwait/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortSystem 1.0
</span> name sunwait
epoch 1
version 0.8
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> set dlversion [string range [subst [regsub -all {\.} "${version}" {-}]] 0 3]
categories sysutils
license GPL-3
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,7 +35,8 @@ extract.suffix .tar
</span> worksrcdir ${name}/${version}
patchfiles patch-makefile.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-sunriset.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-sunriset.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-sunwait.cpp.diff
</span>
use_configure no
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/sunwait/files/patch-sunwait.cpp.diff b/sysutils/sunwait/files/patch-sunwait.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7d61618
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/sunwait/files/patch-sunwait.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,47 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- sunwait.cpp.orig 2015-06-01 08:25:41.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ sunwait.cpp 2017-10-08 14:56:36.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,7 +34,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Linux
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined __linux__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined __linux__ || defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -395,7 +395,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Windows code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: Start */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #if defined __linux__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined __linux__ || defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gmtime_r (pTimet, pTm);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -415,7 +415,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Windows code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: Start */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #if defined __linux__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined __linux__ || defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ localtime_r (pTimet, pTm);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -477,7 +477,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Windows code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: Start */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #if defined __linux__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined __linux__ || defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char buffer [80];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ signed long int tmpLong = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1121,7 +1121,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Windows code: End */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: Start */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #if defined __linux__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined __linux__ || defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sleep (waitSeconds); // Linux-only (seconds OK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Linux code: End */
</span></pre><pre style='margin:0'>
</pre>