Rb-cocoa - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    rb-cocoa  most recent diff


    version

      View the most recent changes for the rb-cocoa port at: rb-cocoa.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for rb-cocoa.
      The raw portfile for rb-cocoa is located here:
      http://rb-cocoa.darwinports.com/dports/ruby/rb-cocoa/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-cocoa


      The rb-cocoa Portfile 59632 2009-10-18 11:11:57Z kimuraw macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup {cocoa rubycocoa} 1.0.1 install.rb {ChangeLog ReadMe.html ReadMe.ja.html}
      Revision: 0
      Maintainers: kimuraw
      Description: Ruby bindings for writing cocoa programs
      Long Description: RubyCocoa is a Ruby library for using Cocoa Objects on Mac OS X in Ruby scripts. You can use RubyCocoa to work with Cocoa objects in Ruby scripts, write Cocoa applications with Ruby and Interface Builder, develop small scale simple Cocoa applications and such.
      Category:-append devel
      Homepage: http://${ruby.project}.sourceforge.net/
      license LGPL/Ruby
      Master Sites: sourceforge:${ruby.project}
      distname RubyCocoa-${version}
      Checksums: md5 067ab6fdc92273b752b75d78cfce5f89 rmd160 ae578de14a43ac6648683657ff952246ebc9726d sha1 ae7e325468e817acf37633b5abae7ddc1634ea75
      Platform: darwin

      # fix #16928: allow non Mac OS X's make, like gmake
      Patch Files:-append patch-ext-rubycocoa-extconf.rb.in.diff

      configure.args --install-prefix=${destroot}${prefix} --install-root=${destroot} --documentation=${prefix}/share/doc/${name} --examples=${prefix}/share/examples/${name}
      destroot.violate_mtree yes

      # apply universal_archs or build_arch
      if {[variant_isset universal]} {
      if {[info exists universal_archs] && $universal_archs != ""} {
      configure.args-append --target-archs="${universal_archs}"
      }
      } else {
      if {[info exists build_arch] && $build_arch != ""} {
      configure.args-append --target-archs="${build_arch}"
      }
      }

      # by default, do not install Xcode templates. #18708
      Variant: xcode description {install project templates for Xcode} { }
      if {![variant_isset xcode]} {
      configure.args-append --xcode-extras="${prefix}/share/doc/${name}/project-templates"
      }

      #test.run yes
      test.cmd ${ruby.bin}
      test.target install.rb test


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.