# $Id$ PortSystem 1.0 name ruby186 version 1.8.6-p368 categories lang ruby maintainers kimuraw openmaintainer 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. \ Note: this port conflicts with the ruby port, so you \ can have either that or this one active at one time. homepage http://www.ruby-lang.org/ master_sites ruby:1.8 use_bzip2 yes dist_subdir ruby distname ruby-${version} checksums md5 623447c6d8c973193aae565a5538ccfc \ sha1 7a2cfb9f0803d21221e7d066837037bbbc50b6ad \ rmd160 fba1ef4f6b2b069f4fcd4734b09fc36197138929 platforms darwin depends_lib port:libiconv \ port:readline \ port:openssl \ port:zlib \ port:ncurses patchfiles patch-Makefile.in \ patch-configure.in \ patch-instruby.rb \ patch-mkconfig.rb \ patch-mkmf.rb \ patch-ruby.c use_autoconf yes configure.args --enable-shared \ --mandir="${prefix}/share/man" \ --enable-pthread \ --without-tk destroot.target install install-doc post-destroot { foreach type {site vendor} { set libdir ${destroot}${prefix}/lib/ruby/${type}_ruby xinstall -m 0755 -d ${libdir} # special file for installation control of modules xinstall -m 0644 ${filespath}/${type}-specific.rb ${libdir} # prevent empty site/vendor directories from being pruned foreach subdir [exec find ${libdir} -type d -empty] { destroot.keepdirs-append ${subdir} } } # error at activate, for these case sensitive files foreach rdoc {Exception2MessageMapper/fail-i.yaml \ REXML/Parsers/XPathParser/predicate-i.yaml} { if {[file exists ${destroot}${prefix}/share/ri/1.8/system/${rdoc}]} { delete ${destroot}${prefix}/share/ri/1.8/system/${rdoc} } } } platform darwin { # for proper rdoc/ri creation, make sure to link to destroot libruby.dylib destroot.env DYLD_LIBRARY_PATH=${destroot}${prefix}/lib } platform darwin 7 { # pthreads is being called with an unavailable function call configure.args-delete --enable-pthread } platform darwin 9 { patchfiles-append dot-darwin.diff \ etc-irbrc.diff \ ignore-gsetcontext.diff \ md5_sha1_commoncrypto.diff \ use-dyld.diff \ use-setreugid.diff \ words-bigendian-from-arch.diff } variant tk conflicts mactk description {Enable MacPorts Tk bindings} { configure.args-delete --without-tk configure.args-append --with-tk depends_lib-append port:tcl \ port:tk } variant mactk conflicts tk description {Enable Mac OS X Tk framework bindings} { configure.args-delete --without-tk configure.args-append --enable-tcltk-framework } variant thread_hooks description {Enable thread hooks} { patchfiles-append patch-thread-hooks } default_variants +thread_hooks livecheck.check regex livecheck.url http://www.ruby-lang.org/en/downloads/ livecheck.regex {>Ruby (.*?) \\\(md5:}