Jruby version 1.3.1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.3.1

      View the most recent changes for the jruby port at: jruby.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for jruby.
      The raw portfile for jruby 1.3.1 is located here:
      http://jruby.darwinports.com/dports/lang/jruby/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/jruby


      The jruby Portfile 52771 2009-06-23 01:48:24Z jmr macports.org $

      PortSystem 1.0

      Name: jruby
      Version: 1.3.1

      Category: lang ruby
      Maintainers: gmail.com:ameingast
      Platform: darwin

      Description: JRuby is an 100% pure-Java implementation of the Ruby programming language.
      Long Description: JRuby provides a complete set of core "builtin" classes and syntax for the Ruby language, as well as most of the Ruby Standard Libraries. The standard libraries are mostly Ruby's own complement of .rb files, but a few that depend on C language-based extensions have been reimplemented.
      Homepage: http://jruby.codehaus.org/

      Master Sites: http://dist.codehaus.org/jruby/${version}/
      distname ${name}-src-${version}
      worksrcdir ${name}-${version}
      use_bzip2 no
      Checksums: md5 c7e2aa4a3065db445a8b3e17ecff9fe0 sha1 e4de71e5c01f71f236b3135e07a5841784767fd8 rmd160 ef10395dbdf9490820caa65ff6236dd99e7c62c8

      depends_build bin:ant:apache-ant
      depends_lib bin:java:kaffe

      use_configure no
      universal_variant no

      build.cmd ant
      build.target jar

      Variant: apidocs description "include API documentation" {
      build.target jar create-apidocs
      }

      Variant: default_ruby description "build without j prefix" {

      }

      destroot {
      # Create the target java directory exists
      xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}

      # Copy over the needed elements of our directory tree
      file copy ${worksrcpath}/bin ${worksrcpath}/lib ${destroot}${prefix}/share/java/${name}

      if { [variant_isset apidocs] } {
      file copy ${worksrcpath}/docs ${destroot}${prefix}/share/java/${name}
      }

      # Remove extraneous bat files
      foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
      file delete $f
      }

      set jruby_prefix ""

      if { ![variant_isset default_ruby] } {
      set jruby_prefix "j"
      }

      foreach f { jruby jirb jrubyc jrubcli jrubysrv } {
      regsub {^j} $f $jruby_prefix dest
      if { ${dest} != ${f} } {
      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${dest}
      }
      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/
      }

      foreach f { gem gem_mirror gemri gemwhich rake spec testrb } {
      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${jruby_prefix}${f}
      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/jruby
      % sudo port install jruby
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching jruby
      ---> Verifying checksum for jruby
      ---> Extracting jruby
      ---> Configuring jruby
      ---> Building jruby with target all
      ---> Staging jruby into destroot
      ---> Installing jruby
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using jruby with these commands:
      %  man jruby
      % apropos jruby
      % which jruby
      % locate jruby

     Where to find more information:

    Darwin Ports



    Lightbox this page.