<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/4060878dce769b060cc3b1414515072895130665">https://github.com/macports/macports-ports/commit/4060878dce769b060cc3b1414515072895130665</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4060878dce769b060cc3b1414515072895130665
</span>Author: kimura wataru <kimuraw@i.nifty.jp>
AuthorDate: Sun Dec 25 14:50:28 2016 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby24: [new] ruby24 version 2.4.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> [note] tk support was dropped at upstream. ruby/tk is now provided as a gem "tk".
</span>---
lang/ruby24/Portfile | 112 +++++++++++++++++++++++++++++++++++++++++++++++
lang/ruby24/files/ruby24 | 13 ++++++
2 files changed, 125 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/Portfile b/lang/ruby24/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..840636a
</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/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,112 @@
</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 ruby24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.4.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 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 http://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.4
</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 ruby24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums md5 98f29161860fe1b6c65396717847a358 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 5db08d8703f39e7086f53a7ff96238af5c618281 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha1 944d2588308391b20a89642472454d1dfe7b2360 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 440bbbdc49d08d3650f340dccb35986d9399177ad69a204def56e5d3954600cf
</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}/ruby24
</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;'>+ --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.4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-rubylibprefix="${prefix}/lib/ruby2.4"
</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-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.4/${type}_ruby/2.4.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;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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;'>+ # install destination of commands from port:rb21-*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.4
</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;'>+# note: use gem or port:rb-tk for ruby/tk since ruby-2.4
</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;'>+ 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 universal {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # use ruby built-in universal mechanism.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-arch=[join ${universal_archs} ,]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # clear macports' universal flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_cflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_cppflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_cxxflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_ldflags
</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;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url http://cache.ruby-lang.org/pub/ruby/2.4/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ruby-(${version})${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/ruby24/files/ruby24 b/lang/ruby24/files/ruby24
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..2a967e7
</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/ruby24
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/erb2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/gem2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/irb2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/rake2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/rdoc2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/ri2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/ruby2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/erb2.4.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/irb2.4.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.4.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/man1/ruby2.4.1.gz
</span></pre><pre style='margin:0'>
</pre>