<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/992a26cb91c21e737f9043265cea062f0948e10e">https://github.com/macports/macports-ports/commit/992a26cb91c21e737f9043265cea062f0948e10e</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 992a26c lang/ruby27: new port ruby-2.7
</span>992a26c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 992a26cb91c21e737f9043265cea062f0948e10e
</span>Author: kimura wataru <kimuraw@macports.org>
AuthorDate: Fri Dec 27 23:40:08 2019 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby27: new port ruby-2.7
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> http://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/
</span>---
_resources/port1.0/group/ruby-1.0.tcl | 5 +-
lang/ruby27/Portfile | 124 ++++++++++++++++++++++++++++++++++
lang/ruby27/files/ruby27 | 16 +++++
3 files changed, 143 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/ruby-1.0.tcl b/_resources/port1.0/group/ruby-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 106e1cc..1775669 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/ruby-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/ruby-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,7 +19,7 @@
</span> # options:
# ruby.branches: the ruby versions supported by this module.
# this introduces subports such as rb23-, rb22-, ...
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# ruby.branch: select ruby version. 2.6, ... 2.0, 1.9 or 1.8.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ruby.branch: select ruby version. 2.7, ... 2.0, 1.9 or 1.8.
</span> # ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin
# or not.
# ruby.link_binaries_suffix: suffix of commands from rb-foo under
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -185,6 +185,7 @@ proc ruby.setup {module vers {type "install.rb"} {docs {}} {source "custom"} {im
</span> }
} else {
switch ${implementation} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ ruby27 { ruby.branch 2.7 }
</span> ruby26 { ruby.branch 2.6 }
ruby25 { ruby.branch 2.5 }
ruby24 { ruby.branch 2.4 }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -195,7 +196,7 @@ proc ruby.setup {module vers {type "install.rb"} {docs {}} {source "custom"} {im
</span> ruby19 { ruby.branch 1.9 }
ruby { ruby.branch 1.8 }
default {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby26 ruby25 ruby24, ruby23, ruby22, ruby21, ruby20, ruby19 or ruby possible)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby27, ruby26, ruby25, ruby24, ruby23, ruby22, ruby21, ruby20, ruby19 or ruby possible)"
</span> return -code error "ruby.setup failed"
}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby27/Portfile b/lang/ruby27/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c5c1297
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,124 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name ruby27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang ruby
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {kimuraw @kimuraw} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Powerful and clean object-oriented scripting language
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Ruby is the interpreted scripting language for quick \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and easy object-oriented programming. It has many \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ features to process text files and to do system \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ management tasks (as in Perl). It is simple, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ straight-forward, extensible, and portable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.ruby-lang.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {Ruby BSD}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ruby:2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ruby-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir ruby27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums md5 89347748b7414f5bc7aeb8f4a87ebef4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 937cbbe599213a93b0cf3fdbb85641275a69aefc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha1 b54f4633174dbc55db77d9fd6d0ef90cc35503af \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7aa247a19622a803bdd29fdb28108de9798abe841254fe8ea82c31d125c6ab26
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:readline \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/libssl.dylib:openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libyaml \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libffi \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdbm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run port:ruby_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_skip_archcheck pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+select.group ruby
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+select.file ${filespath}/ruby27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --enable-shared \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-install-static-library \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-install-doc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --mandir="${prefix}/share/man" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-pthread \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-gmp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-opt-dir="${prefix}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --program-suffix=2.7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-rubylibprefix="${prefix}/lib/ruby2.7" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-baseruby
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add the architecture flag as required
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[info exists build_arch] && ${build_arch} != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append "--with-arch=${build_arch}"
</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;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # (see rb-bundler) sh "gem build ..." -> sh "gem2.7 build ..."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s/(gem) (build|install|push)/gem2.7 \\2/g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/lib/bundler/gem_helper.rb
</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;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach type {site vendor} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set libdir ${destroot}${prefix}/lib/ruby2.7/${type}_ruby/2.7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${libdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach subdir [exec find ${libdir} -type d -empty] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append ${subdir}
</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;'>+ # install destination of commands from port:rb27-*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.7
</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;'>+variant doc description "Install rdoc indexes and C API documents" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --disable-install-doc
</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;'>+variant gmp description "use gmp" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --without-gmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:gmp
</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;'>+variant jemalloc description "use jemalloc" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete --without-jemalloc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-jemalloc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:jemalloc
</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;'>+variant relative description "Enable relative loading of libraries to allow for relocation of binaries." {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #enable relative loading
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --enable-load-relative
</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;'>+# 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;'>+ if {${os.major} < 11} {
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://cache.ruby-lang.org/pub/ruby/2.7/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ruby-(2.7.\\d+)${extract.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby27/files/ruby27 b/lang/ruby27/files/ruby27
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..570ad94
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby27/files/ruby27
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/erb2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/gem2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/irb2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/rake2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/rdoc2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/ri2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/ruby2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/erb2.6.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/irb2.6.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/ri2.6.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/ruby2.6.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/bundle2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/bundler2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/bundle2.6.1.gz
</span></pre><pre style='margin:0'>
</pre>