source: trunk/dports/java/hamcrest-library/Portfile

Last change on this file was 112410, checked in by jmr@…, 4 years ago

hamcrest-library: license, noarch

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