Rb-gtk2 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    rb-gtk2  most recent diff


    version

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


      The rb-gtk2 Portfile 58226 2009-09-24 14:56:31Z kimuraw macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup {gtk2 ruby-gnome2} 0.19.2 extconf.rb { gtk/README gtk/sample gdkpixbuf/sample } sourceforge:ruby-gnome2
      Revision: 0
      Maintainers: kimuraw
      Platform: darwin
      Description: Ruby/GTK2 is a Ruby binding of GTK+-2.0.x. Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
      Long Description: Ruby/GTK2 is a Ruby binding of GTK+-2.0.x. Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
      Checksums: md5 bbbee657731d536af3c146fc4b57c746 rmd160 de3abba775e00f3dfef7cc47f153733e42186a73 sha1 5c6af93f1c0dfe7e14e301ab5c5cbd2b245aee9e
      # generate glib-enum-types.h at glib/src and glib/pango
      pre-configure {
      system "${ruby.bin} -C ${worksrcpath} extconf.rb --strict glib pango"
      }
      configure.env RUBYOPT=-rvendor-specific
      configure.args --strict gtk gdkpixbuf
      depends_lib-append port:gtk2 port:rb-pango port:rb-rcairo port:rb-glib2 port:rb-atk
      distname ${ruby.project}-all-${version}

      pre-destroot {
      xinstall -d ${destroot}${prefix}/lib/pkgconfig
      }

      # patch-gtk-test-run-test.rb.diff: do not build dependent libraries at testing
      Patch Files: patch-gtk-test-run-test.rb.diff
      # Run Test for developer only, the test launches X11.app
      #test.run yes
      test.cmd ${ruby.bin}
      test.target -C gtk test/run-test.rb


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.