[143920] trunk/dports/lang
kimuraw at macports.org
kimuraw at macports.org
Sun Dec 27 04:49:36 PST 2015
Revision: 143920
https://trac.macports.org/changeset/143920
Author: kimuraw at macports.org
Date: 2015-12-27 04:49:35 -0800 (Sun, 27 Dec 2015)
Log Message:
-----------
lang/ruby23: new port. ruby-2.3.0
Added Paths:
-----------
trunk/dports/lang/ruby23/
trunk/dports/lang/ruby23/Portfile
trunk/dports/lang/ruby23/files/
trunk/dports/lang/ruby23/files/ruby23
Added: trunk/dports/lang/ruby23/Portfile
===================================================================
--- trunk/dports/lang/ruby23/Portfile (rev 0)
+++ trunk/dports/lang/ruby23/Portfile 2015-12-27 12:49:35 UTC (rev 143920)
@@ -0,0 +1,124 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup select 1.0
+
+name ruby23
+version 2.3.0
+revision 0
+
+categories lang ruby
+maintainers kimuraw openmaintainer
+platforms darwin
+
+description Powerful and clean object-oriented scripting language
+long_description Ruby is the interpreted scripting language for quick \
+ and easy object-oriented programming. It has many \
+ features to process text files and to do system \
+ management tasks (as in Perl). It is simple, \
+ straight-forward, extensible, and portable.
+
+homepage http://www.ruby-lang.org/
+license {Ruby BSD}
+
+master_sites ruby:2.3
+use_bzip2 yes
+distname ruby-${version}
+
+checksums md5 f0d9f9bbdc87372ca98988a571875819 \
+ rmd160 4e9066b169b1b00435ba154069416e14457fe22e \
+ sha1 6c8a832d49d22755ea8c45b6d53faf2ccc6d6ac9 \
+ sha256 ec7579eaba2e4c402a089dbc86c98e5f1f62507880fd800b9b34ca30166bfa5e
+use_parallel_build no
+
+depends_lib port:readline \
+ path:lib/libssl.dylib:openssl \
+ port:zlib \
+ port:libyaml \
+ port:libffi \
+ port:gdbm
+depends_run port:ruby_select
+depends_build port:pkgconfig
+depends_skip_archcheck pkgconfig
+
+select.group ruby
+select.file ${filespath}/ruby23
+
+configure.args --enable-shared \
+ --disable-install-doc \
+ --mandir="${prefix}/share/man" \
+ --enable-pthread \
+ --without-tk \
+ --without-gmp \
+ --with-opt-dir="${prefix}" \
+ --program-suffix=2.3 \
+ --with-rubylibprefix="${prefix}/lib/ruby2.3"
+
+# Add the architecture flag as required
+if {[info exists build_arch] && ${build_arch} != ""} {
+ configure.args-append "--with-arch=${build_arch}"
+}
+
+post-destroot {
+ foreach type {site vendor} {
+ set libdir ${destroot}${prefix}/lib/ruby2.3/${type}_ruby/2.3.0
+ xinstall -m 0755 -d ${libdir}
+ }
+
+ foreach subdir [exec find ${libdir} -type d -empty] {
+ destroot.keepdirs-append ${subdir}
+ }
+
+ # install destination of commands from port:rb21-*
+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby2.3
+ destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.3
+}
+
+variant doc description "Install rdoc indexes and C API documents" {
+ configure.args-delete --disable-install-doc
+}
+
+# note: ruby/tk does not support tk-8.6.
+#
+#variant tk conflicts mactk description "Build using MacPorts Tk" {
+# configure.args-delete --without-tk
+# configure.args-append --with-tk --disable-tcltk-framework
+# depends_lib-append port:tcl \
+# port:tk
+#}
+
+variant mactk description "Build using Mac OS X Tk Framework" {
+ configure.args-delete --without-tk
+ configure.args-append --enable-tcltk-framework
+}
+
+variant gmp description "use gmp" {
+ configure.args-delete --without-gmp
+ depends_lib-append port:gmp
+}
+
+variant jemalloc description "use jemalloc" {
+ configure.args-delete --without-jemalloc
+ depends_lib-append port:jemalloc
+}
+
+variant universal {
+ # use ruby built-in universal mechanism.
+ configure.args-append --with-arch=[join ${universal_archs} ,]
+ # clear macports' universal flags
+ configure.universal_cflags
+ configure.universal_cppflags
+ configure.universal_cxxflags
+ configure.universal_ldflags
+}
+
+variant relative description "Enable relative loading of libraries to allow for relocation of binaries." {
+ #enable relative loading
+ configure.args-append --enable-load-relative
+}
+
+livecheck.type regex
+livecheck.url http://cache.ruby-lang.org/pub/ruby/2.3/
+livecheck.regex ruby-(${version})${extract.suffix}
+
Property changes on: trunk/dports/lang/ruby23/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/lang/ruby23/files/ruby23
===================================================================
--- trunk/dports/lang/ruby23/files/ruby23 (rev 0)
+++ trunk/dports/lang/ruby23/files/ruby23 2015-12-27 12:49:35 UTC (rev 143920)
@@ -0,0 +1,13 @@
+bin/erb2.3
+bin/gem2.3
+bin/irb2.3
+bin/rake2.3
+bin/rdoc2.3
+bin/ri2.3
+bin/ruby2.3
+-
+share/man/man1/erb2.3.1.gz
+share/man/man1/irb2.3.1.gz
+share/man/man1/rake2.3.1.gz
+share/man/man1/ri2.3.1.gz
+share/man/man1/ruby2.3.1.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151227/97c9c31c/attachment.html>
More information about the macports-changes
mailing list