<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/74405bfa3c405e2c316d669fba0a0a744cc6dad5">https://github.com/macports/macports-ports/commit/74405bfa3c405e2c316d669fba0a0a744cc6dad5</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 74405bf lirc: build fix for < 10.8
</span>74405bf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 74405bfa3c405e2c316d669fba0a0a744cc6dad5
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon May 28 04:16:18 2018 +1000
<span style='display:block; white-space:pre;color:#404040;'> lirc: build fix for < 10.8
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/53314
</span>---
sysutils/lirc/Portfile | 5 +++++
sysutils/lirc/files/old-scandir.diff | 20 ++++++++++++++++++++
2 files changed, 25 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/lirc/Portfile b/sysutils/lirc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 531bd82..0d5d87a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/lirc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/lirc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,6 +52,11 @@ depends_lib port:libusb \
</span>
patchfiles patch-commandir_support.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53314
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append old-scandir.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/lirc_options.conf
reinplace -locale C "s|#!/usr/bin/env python3\$|#!${pythonbin}|" \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/lirc/files/old-scandir.diff b/sysutils/lirc/files/old-scandir.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..62d6982
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/lirc/files/old-scandir.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- tools/lirc-lsremotes.cpp.orig 2017-01-17 18:42:58.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ tools/lirc-lsremotes.cpp 2018-05-28 04:03:06.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -161,7 +161,7 @@ void print_remotes(const char* path)
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int isdir(const struct dirent* ent)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int isdir(struct dirent* ent)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct stat statbuf;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char buff[256];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -174,7 +174,7 @@ int isdir(const struct dirent* ent)
</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;'>+ /** Return true if argument defines a lircd.conf file. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int isfile(const struct dirent* ent)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int isfile(struct dirent* ent)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* dot = strrchr(ent->d_name, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>