Revision: 130437 https://trac.macports.org/changeset/130437 Author: kimuraw@macports.org Date: 2014-12-30 07:45:23 -0800 (Tue, 30 Dec 2014) Log Message: ----------- lang/ruby22: add new port Added Paths: ----------- trunk/dports/lang/ruby22/ trunk/dports/lang/ruby22/Portfile trunk/dports/lang/ruby22/files/ trunk/dports/lang/ruby22/files/ruby22 Added: trunk/dports/lang/ruby22/Portfile =================================================================== --- trunk/dports/lang/ruby22/Portfile (rev 0) +++ trunk/dports/lang/ruby22/Portfile 2014-12-30 15:45:23 UTC (rev 130437) @@ -0,0 +1,123 @@ +# -*- 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 ruby22 +version 2.2.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.2 +use_bzip2 yes +distname ruby-${version} + +checksums md5 d03cd4690fec1fff81d096d1c1255fde \ + rmd160 05ce6c159082bd4228168966b0405b5cc53e8a43 \ + sha1 8ff78e4aef404fcb92459b2e9e88be2b9c5f9cf1 \ + sha256 1c031137999f832f86be366a71155113675b72420830ce432b777a0ff4942955 +use_parallel_build no + +depends_lib port:readline \ + port: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}/ruby22 + +configure.args --enable-shared \ + --disable-install-doc \ + --mandir="${prefix}/share/man" \ + --enable-pthread \ + --without-tk \ + --without-gmp \ + --with-opt-dir="${prefix}" \ + --program-suffix=2.2 \ + --with-rubylibprefix="${prefix}/lib/ruby2.2" + +# Ignore minor version for archdir, like i686-darwin9. +# Port "ruby" and "ruby19" does the same. +configure.env-append UNAME_RELEASE=${os.major} + +# 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.1/${type}_ruby/2.1.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.1 + destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.1 +} + +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 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.2/ +livecheck.regex ruby-(${version})${extract.suffix} + Property changes on: trunk/dports/lang/ruby22/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/lang/ruby22/files/ruby22 =================================================================== --- trunk/dports/lang/ruby22/files/ruby22 (rev 0) +++ trunk/dports/lang/ruby22/files/ruby22 2014-12-30 15:45:23 UTC (rev 130437) @@ -0,0 +1,13 @@ +bin/erb2.2 +bin/gem2.2 +bin/irb2.2 +bin/rake2.2 +bin/rdoc2.2 +bin/ri2.2 +bin/ruby2.2 +- +share/man/man1/erb2.2.1.gz +share/man/man1/irb2.2.1.gz +share/man/man1/rake2.2.1.gz +share/man/man1/ri2.2.1.gz +share/man/man1/ruby2.2.1.gz