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

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

hamcrest-core: noarch

  • 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 112409 2013-10-22 10:24:40Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            hamcrest-core
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
32depends_build   port:apache-ant
33
34use_configure   no
35
36build.cmd       ant
37build.target    core
38build.args      -Dversion=${version}
39
40destroot {
41    set javadir ${prefix}/share/java
42    set docdir ${prefix}/share/doc/${name}-${version}
43   
44    xinstall -d ${destroot}${javadir} ${destroot}${docdir}
45    xinstall -m 0644 ${worksrcpath}/build/${name}-${version}.jar ${destroot}${javadir}/${name}.jar
46    xinstall -m 0644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
47        ${destroot}${docdir}
48}
49
50livecheck.type  regex
51livecheck.regex $name-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.