Hamcrest-library version 1.2 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    hamcrest-library  most recent diff


    version 1.2

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


      # -*- 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-library Portfile 58660 2009-10-02 14:55:25Z nox macports.org $

      PortSystem 1.0

      Name: hamcrest-library
      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

      Patch Files: patch-build.xml.diff

      depends_build port:apache-ant
      depends_lib port:hamcrest-core

      use_configure no

      build.cmd ant
      build.target library
      build.args -Dversion=${version} -Dprefix=${prefix}

      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.url ${homepage}downloads/list
      livecheck.regex $name-(\\d+(?:\\.\\d+)*)\\.jar

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.