<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2009a25766ee4df1946f83c9254e4e018b6dacdc">https://github.com/macports/macports-ports/commit/2009a25766ee4df1946f83c9254e4e018b6dacdc</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 2009a25 ruby26: add fix for Tiger
</span>2009a25 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2009a25766ee4df1946f83c9254e4e018b6dacdc
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Sun Aug 25 20:48:13 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> ruby26: add fix for Tiger
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> add std=c99 where needed
</span><span style='display:block; white-space:pre;color:#404040;'> and refactor legacy support to consolidate fixes
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/57985
</span>---
lang/ruby26/Portfile | 55 +++++++++++++++++++++++++++-------------------------
1 file changed, 29 insertions(+), 26 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby26/Portfile b/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d6000f2..ebafbf7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,12 +43,6 @@ depends_run port:ruby_select
</span> depends_build port:pkgconfig
depends_skip_archcheck pkgconfig
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# requires gmake 3.81 or later
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:gmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.cmd ${prefix}/bin/gmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> select.group ruby
select.file ${filespath}/ruby26
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,26 +56,6 @@ configure.args --enable-shared \
</span> --program-suffix=2.6 \
--with-rubylibprefix="${prefix}/lib/ruby2.6"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin 11 {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Build requires 10.8 SDK, even when targeting 10.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://trac.macports.org/ticket/57986
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set ten_eight_sdkpath ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists $ten_eight_sdkpath]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.sdkroot $ten_eight_sdkpath
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- error "Building $name @${version} on Mac OS X 10.7 requires the MacOSX10.8.sdk to be present in ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --disable-dtrace
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Add the architecture flag as required
if {[info exists build_arch] && ${build_arch} != ""} {
configure.args-append "--with-arch=${build_arch}"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -137,6 +111,35 @@ variant relative description "Enable relative loading of libraries to allow for
</span> configure.args-append --enable-load-relative
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# legacy systems suport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build requires 10.8 SDK when targeting 10.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/57986
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} == 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ten_eight_sdkpath ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists $ten_eight_sdkpath]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.sdkroot $ten_eight_sdkpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Building $name @${version} on Mac OS X 10.7 requires the MacOSX10.8.sdk to be present in ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs"
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:gmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.cmd ${prefix}/bin/gmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-dtrace
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cflags-append -std=c99
</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;'>+ if {${os.major} == 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-append -DCPU_SUBTYPE_MASK=0xff000000
</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;'>+
</span> livecheck.type regex
livecheck.url https://cache.ruby-lang.org/pub/ruby/2.6/
livecheck.regex ruby-(2.6.\\d+)${extract.suffix}
</pre><pre style='margin:0'>
</pre>