<pre style='margin:0'>
kimura wataru (kimuraw) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ccdaab17b507461d1eeae3a5eccc16417640b162">https://github.com/macports/macports-ports/commit/ccdaab17b507461d1eeae3a5eccc16417640b162</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 ccdaab1 lang/ruby24: support OS X 10.7 or earlier
</span>ccdaab1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ccdaab17b507461d1eeae3a5eccc16417640b162
</span>Author: kimura wataru <kimuraw@i.nifty.jp>
AuthorDate: Mon Dec 26 00:50:15 2016 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby24: support OS X 10.7 or earlier
</span>---
lang/ruby24/Portfile | 13 +++----------
lang/ruby24/files/patch-legacy_mac.diff | 25 +++++++++++++++++++++++++
2 files changed, 28 insertions(+), 10 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/Portfile b/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 66d314d..de27e0e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup select 1.0
</span>
name ruby24
version 2.4.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories lang ruby
maintainers kimuraw openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,15 +26,8 @@ use_bzip2 yes
</span> distname ruby-${version}
dist_subdir ruby24
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# 10.7 or earlier cannot compile ruby-2.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://build.macports.org/builders/ports-10.7_x86_64_legacy-watcher/builds/3774
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://build.macports.org/builders/ports-10.6_x86_64_legacy-watcher/builds/3740
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} @${version} requires OS X 10.8 or later."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible OS X version"
</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:#e0ffe0;'>+# 10.7 or earlier cannot compile ruby-2.4.0, upstream ruby-trunk's r57180 fixes this error
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-legacy_mac.diff
</span>
checksums md5 98f29161860fe1b6c65396717847a358 \
rmd160 5db08d8703f39e7086f53a7ff96238af5c618281 \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/files/patch-legacy_mac.diff b/lang/ruby24/files/patch-legacy_mac.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..65059d9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby24/files/patch-legacy_mac.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ext/-test-/memory_status/memory_status.c.orig 2016-12-26 00:27:26.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/-test-/memory_status/memory_status.c 2016-12-26 00:27:48.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -17,12 +17,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ VALUE rss;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ kern_return_t error;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- mach_msg_type_number_t out_count;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined MACH_TASK_BASIC_INFO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const task_flavor_t flavor = MACH_TASK_BASIC_INFO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ mach_msg_type_number_t out_count = MACH_TASK_BASIC_INFO_COUNT;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mach_task_basic_info_data_t taskinfo;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const task_flavor_t flavor = TASK_BASIC_INFO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ mach_msg_type_number_t out_count = TASK_BASIC_INFO_COUNT;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ task_basic_info_data_t taskinfo;
</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;'>+ taskinfo.virtual_size = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- out_count = MACH_TASK_BASIC_INFO_COUNT;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- error = task_info(mach_task_self(), MACH_TASK_BASIC_INFO,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ taskinfo.resident_size = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ error = task_info(mach_task_self(), flavor,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (task_info_t)&taskinfo, &out_count);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (error != KERN_SUCCESS) return Qnil;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size = ULL2NUM(taskinfo.virtual_size);
</span></pre><pre style='margin:0'>
</pre>