source: trunk/dports/java/jmock2/Portfile

Last change on this file was 84512, checked in by snc@…, 6 years ago

modelines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 84512 2011-09-27 14:19:06Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    jmock2
6version                 2.5.1
7categories              java
8platforms               darwin
9maintainers             blair
10
11description             Library for testing Java code using mock objects
12long_description        jMock is a library that supports test-driven \
13                        development of Java code with mock objects.  Mock \
14                        objects help you design and test the interactions \
15                        between the objects in your programs.
16homepage                http://www.jmock.org/
17
18master_sites            ${homepage}dist
19distfiles               jmock-${version}-jars.zip \
20                        jmock-${version}-javadoc.zip
21checksums               jmock-${version}-jars.zip \
22                                md5 bc0e1a180a036217373b00f9a8914758 \
23                                sha1 3644908178f75fbd493fffa9926a0cb03677d415 \
24                                rmd160 2ef79aa199ee2621c7caf9a58bd7ec4d31fa33e5 \
25                        jmock-${version}-javadoc.zip \
26                                md5 00dc417d78c8768e51188e3a3997d567 \
27                                sha1 7d8b8ef1967c09db6bf9a45c27a8357966334cbc \
28                                rmd160 339968bc118da26f237ceecfe687b7861bcf2cbb
29use_zip                 yes
30
31worksrcdir              jmock-${version}
32
33depends_lib             bin:java:kaffe \
34                        port:cglib \
35                        port:hamcrest-core \
36                        port:objenesis
37
38use_configure           no
39
40build.cmd               true
41
42destroot {
43        set javadir ${destroot}${prefix}/share/java
44        set docdir ${destroot}${prefix}/share/doc/${name}
45
46        xinstall -d -m 755 ${javadir}
47        xinstall -d -m 755 ${docdir}
48
49        file copy ${worksrcpath}/jmock-${version}.jar \
50                ${javadir}/jmock2.jar
51        file copy ${worksrcpath}/jmock-junit3-${version}.jar \
52                ${javadir}/jmock2-junit3.jar
53        file copy ${worksrcpath}/jmock-junit4-${version}.jar \
54                ${javadir}/jmock2-junit4.jar
55        file copy ${worksrcpath}/jmock-legacy-${version}.jar \
56                ${javadir}/jmock2-legacy.jar
57        file copy ${worksrcpath}/doc ${docdir}/api
58}
Note: See TracBrowser for help on using the repository browser.