# $Id: Portfile 45292 2009-01-13 03:30:49Z blb@macports.org $ PortSystem 1.0 name ruby186 version 1.8.6-p287 categories lang ruby maintainers nomaintainer 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 80b5f3db12531d36e6c81fac6d05dda9 \ sha1 29b02ccab3c1d6b4a71148ad960e65b5f892fe17 \ rmd160 df0950f1cdf9ea26b6d2f04756d9db89ae295de4 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 \ patch-lib-rexml-document.rb.diff \ patch-ext_openssl_openssl_missing.h.diff 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} } } } 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:}