Hamcrest-core version 1.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    hamcrest-core  most recent diff


    version 1.2

      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.2 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


      # -*- 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
      The hamcrest-core Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: hamcrest-core
      set my_name hamcrest
      Version: 1.2
      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 b4bd43f44d082d77daf7ec564d304cdf sha1 236b0e01ed002f5c889eb3152e34677363ea1e83 rmd160 6e6c747a467c0864a625048cd516b37153cd3a72

      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/${name}-${version}.jar ${destroot}${javadir}/${name}.jar
      xinstall -m 0644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt ${destroot}${docdir}
      }

      universal_variant no

      livecheck.type 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.