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

Last change on this file since 84649 was 84649, checked in by jmr@…, 9 years ago

hamcrest-core: license

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