<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4076c8030e1d8066c0b664fd2229aafaa87aca3b">https://github.com/macports/macports-ports/commit/4076c8030e1d8066c0b664fd2229aafaa87aca3b</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 4076c8030e1 gh: add LegacySupport tweaks for OSX <= 10.9
</span>4076c8030e1 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 4076c8030e1d8066c0b664fd2229aafaa87aca3b
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Thu Aug 27 11:48:02 2020 -0400

<span style='display:block; white-space:pre;color:#404040;'>    gh: add LegacySupport tweaks for OSX <= 10.9
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Works on OSX 10.9; might work on earlier OSX too. Won't hurt, since those don't work right now anyway :)
</span>---
 devel/gh/Portfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gh/Portfile b/devel/gh/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2c08702ff72..a86c7c5a2de 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,8 +2,10 @@
</span> 
 PortSystem          1.0
 PortGroup           github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           legacysupport 1.1
</span> 
 github.setup        cli cli 0.11.1 v
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> name                gh
 categories          devel
 platforms           darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,6 +37,14 @@ build {}
</span> destroot {
     xinstall -m 0755 -W ${worksrcpath} bin/gh ${destroot}${prefix}/bin
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # gh works on 10.10 and newer without legacysupport. standard
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # legacysupport tweaks don't work, since the install here is from
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # a binary tarball ... have to tweak the binary to use the legacy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # support library, which in turn uses the System.B library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {${os.major} <= 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W ${destroot}${prefix}/bin "install_name_tool -change /usr/lib/libSystem.B.dylib ${legacysupport.library_name} gh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
</pre><pre style='margin:0'>

</pre>