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

    rb-mocha  most recent diff


    version 0.5.6

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


      The rb-mocha Portfile 36451 2008-05-02 18:28:01Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      Name: rb-mocha
      Version: 0.5.6

      Homepage: http://mocha.rubyforge.org/
      Master Sites: http://rubyforge.org/frs/download.php/29657/

      distname mocha-${version}
      extract.suffix .tgz

      depends_lib port:ruby
      Maintainers: internode.on.net:arpstr
      Platform: darwin
      Category: ruby devel

      Description: Mocha is a library for mocking and stubbing using a syntax like that of JMock, and SchMock.
      Long Description: Mocha is a library for mocking and stubbing using a syntax like that of JMock, and SchMock. One of its main advantages is that it allows you to mock and stub methods on real (non-mock) classes and instances.
      Checksums: md5 ae76bad63f7c3290a5c9e0035402ab77 sha1 a01a1accc577e290550dfe0b85eb446e97ba87c1 rmd160 9d85a2788ba685b05327510898039d4a4792881b


      configure {}
      build {}
      destroot {
      file mkdir "${destroot}/${ruby.lib}"
      system "rsync -a ${worksrcpath}/lib/ ${destroot}/${ruby.lib}"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.