source: trunk/dports/java/pmd/Portfile @ 22478

Last change on this file since 22478 was 22478, checked in by pipping@…, 14 years ago
  • Spring-cleaning @opendarwin.org addresses

see #11465
see http://www.mail-archive.com/macports-dev@lists.macosforge.org/msg00309.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4
5name             pmd
6version          3.9
7
8categories       java lang
9platforms        darwin
10maintainers      nomaintainer@macports.org
11
12description      PMD is a Java source code analyzer
13long_description PMD is a Java source code analyzer. It finds unused \
14                 variables, empty catch blocks, unnecessary object \
15                 creation, and so forth.
16
17homepage         http://pmd.sourceforge.net/
18master_sites     sourceforge
19distname         ${name}-src-${version}
20checksums        md5 2ddefa2c0aa890693e2ce07a548b189f
21use_zip          yes
22
23depends_build    bin:ant:apache-ant
24depends_lib      bin:java:kaffe
25depends_run      port:jaxen \
26                 port:xercesj \
27                 port:saxpath \
28                 port:junit
29
30worksrcdir       ${name}-${version}
31
32post-extract   {
33   file delete ${worksrcpath}/lib/saxpath-1.0-fcs.jar \
34      ${worksrcpath}/lib/xercesImpl-2.0.2.jar \
35      ${worksrcpath}/lib/xmlParserAPIs-2.0.2.jar \
36      ${worksrcpath}/lib/jaxen-core-1.0-fcs.jar \
37      ${worksrcpath}/lib/pmd-2.0.jar
38}
39
40use_configure  no
41
42build.cmd      ant
43build.target   jar
44build.dir      ${worksrcpath}/bin
45build.env      CLASSPATH=${prefix}/share/java/junit.jar:${prefix}/share/java/saxpath.jar:${prefix}/share/java/xercesImpl.jar:${prefix}/share/java/xml-apis.jar:${prefix}/share/java/jaxen.jar
46
47destroot {
48   xinstall -m 755 ${filespath}/pmd ${destroot}${prefix}/bin
49   reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/pmd
50   xinstall -m 755 -d ${destroot}${prefix}/share/java \
51      ${destroot}${prefix}/share/doc
52   xinstall -m 644 ${worksrcpath}/lib/pmd-${version}.jar \
53      ${destroot}${prefix}/share/java/pmd.jar
54   file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
55   file copy ${worksrcpath}/rulesets ${destroot}${prefix}/share/${name}
56}
Note: See TracBrowser for help on using the repository browser.