Newran version 02 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 02

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


      The newran Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: newran
      Version: 02
      Category: math
      Maintainers: jameskyle

      Description: This is a C++ library for generating sequences of random numbers from a wide variety of distributions.

      Long Description: This is a C++ library for generating sequences of random numbers from a wide variety of distributions. It is particularly appropriate for the situation where one requires sequences of identically distributed random numbers since the set up time for each type of distribution is relatively long but it is efficient when generating each new random number. The library includes classes for generating random numbers from a number of distributions and is easily extended to be able to generate random numbers from almost any of the standard distributions.

      Homepage: http://www.robertnz.net/
      Platform: darwin
      Master Sites: http://www.robertnz.net/ftp/
      distname ${name}${version}
      Checksums: md5 db2bb22b6d96f1c04ce25f91ec7aeece sha1 6c5b0493b11732c2f9152fe0f73bb6d4605f2da8 rmd160 4693b8a85945468c173695c0da07a63d408d0392

      depends_build port:cmake
      configure.cmd cmake

      configure.pre_args
      configure.args -DCMAKE_INSTALL_PREFIX:PATH=${prefix}

      use_parallel_build yes
      extract.mkdir yes
      pre-configure {
      file copy ${filespath}/CMakeLists.txt ${worksrcpath}
      }

      livecheck.type regex
      livecheck.url ${homepage}/download.html
      livecheck.regex {newran([0-9.]+).tar.gz.*}
      livecheck.md5 db2bb22b6d96f1c04ce25f91ec7aeece

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.