Download and Install hamcrest-core version 1.1 on Mac OS X
Tuesday the 2nd of December, 2008

    hamcrest-core  most recent diff


    version 1.1

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



      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      # $Id: Portfile 41686 2008-11-09 03:48:19Z nox macports.org $

      PortSystem 1.0

      Name: hamcrest-core
      set my_name hamcrest
      Version: 1.1
      Category: java devel
      Platform: darwin
      Maintainers: nox openmaintainer
      Description: library of matchers for building test expressions

      Long Description: Provides a library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules.

      Homepage: http://code.google.com/p/hamcrest/
      master_sites googlecode:${my_name}
      dist_subdir ${my_name}
      distname ${my_name}-${version}
      extract.suffix .tgz

      checksums md5 1bd4fd301c1a0dc748082378a59cb281 sha1 e7c8511e3702545eb50b38e5aa2c3d887d8393ef rmd160 6b1a6a5ca753b965ee1a3260db654c2405498213

      depends_build port:apache-ant

      use_configure no

      build.cmd ant
      build.target core
      build.args -Dversion=${version}

      destroot {
      set javadir ${prefix}/share/java
      set docdir ${prefix}/share/doc/${name}-${version}

      xinstall -d ${destroot}${javadir} ${destroot}${docdir}
      xinstall -m 0644 ${worksrcpath}/build/hamcrest-core-1.1.jar ${destroot}${javadir}/hamcrest-core.jar
      xinstall -m 0644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt ${destroot}${docdir}
      }

      universal_variant no

      livecheck.check regex
      livecheck.regex $name-(\\d+(?:\\.\\d+)*)

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.