Download and Install rb-plruby on Mac OS X
Monday the 8th of September, 2008

    rb-plruby  most recent diff


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



      # $Id: Portfile 33807 2008-02-05 16:02:40Z gui_dos macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup plruby 0.5.2 extconf.rb {README.en docs/plruby.rb ex_trans.sql example.run plruby.html}
      Category:-append databases

      Maintainers: sixtus gmail.com
      Description: PL/Ruby for PostgreSQL
      Long Description: The procedural language PL/Ruby allows you to write stored procedures for PostgreSQL in Ruby

      Homepage: http://moulon.inra.fr/ruby/plruby.html
      master_sites ftp://moulon.inra.fr/pub/ruby/

      checksums md5 dabe82a70e3da6f14ddf2f048a5ca538

      depends_lib-append port:ruby port:postgresql83

      configure.args-append extconf.rb --with-pgsql-include=${prefix}/include/postgresql83/ --with-pgsql-lib=${prefix}/lib/postgresql83/

      Variant: safe_level0 {
      configure.args-append --with-safe-level=0
      }

      post-activate {
      ui_msg "To install pl/ruby in your database, issue the following commands:
      -----------------------------------------------------------------\n"
      ui_msg " create function plruby_call_handler() returns language_handler"
      ui_msg " as '${ruby.archlib}/plruby.bundle' language 'C';"
      ui_msg " create trusted language 'plruby' handler plruby_call_handler lancompiler 'PL/Ruby';"
      ui_msg "\n-----------------------------------------------------------------"
      }

    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/rb-plruby
      % sudo port install rb-plruby
      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 rb-plruby
      ---> Verifying checksum for rb-plruby
      ---> Extracting rb-plruby
      ---> Configuring rb-plruby
      ---> Building rb-plruby with target all
      ---> Staging rb-plruby into destroot
      ---> Installing rb-plruby
    - 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 rb-plruby with these commands:
      %  man rb-plruby
      % apropos rb-plruby
      % which rb-plruby
      % locate rb-plruby

     Where to find more information:

    Darwin Ports



    image test