source: trunk/dports/java/hamcrest-core/Portfile @ 69969

Last change on this file since 69969 was 69969, checked in by nox@…, 10 years ago

Relinquish maintainership of various ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 69969 2010-07-24 12:49:28Z nox@macports.org $
3
4PortSystem      1.0
5
6name            hamcrest-core
7set my_name     hamcrest
8version         1.2
9categories      java devel
10platforms       darwin
11maintainers     nomaintainer
12description     library of matchers for building test expressions
13
14long_description \
15    Provides a library of matcher objects (also known as constraints \
16    or predicates) allowing 'match' rules to be defined declaratively, \
17    to be used in other frameworks. Typical scenarios include testing \
18    frameworks, mocking libraries and UI validation rules.
19
20homepage        http://code.google.com/p/hamcrest/
21master_sites    googlecode:${my_name}
22dist_subdir     ${my_name}
23distname        ${my_name}-${version}
24extract.suffix  .tgz
25
26checksums       md5     b4bd43f44d082d77daf7ec564d304cdf \
27                sha1    236b0e01ed002f5c889eb3152e34677363ea1e83 \
28                rmd160  6e6c747a467c0864a625048cd516b37153cd3a72
29
30depends_build   port:apache-ant
31
32use_configure   no
33
34build.cmd       ant
35build.target    core
36build.args      -Dversion=${version}
37
38destroot {
39    set javadir ${prefix}/share/java
40    set docdir ${prefix}/share/doc/${name}-${version}
41   
42    xinstall -d ${destroot}${javadir} ${destroot}${docdir}
43    xinstall -m 0644 ${worksrcpath}/build/${name}-${version}.jar ${destroot}${javadir}/${name}.jar
44    xinstall -m 0644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
45        ${destroot}${docdir}
46}   
47
48universal_variant   no
49
50livecheck.type  regex
51livecheck.regex $name-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.