==== Patch <dports_java_pmd> level 1
Source: f4683a9b-5f3c-4ec4-b7f8-a7e21da36217:/local/trunk/dports/java:20087 [local]
Target: d073be05-634f-4543-b044-5fe20cf6d1d6:/trunk/dports/java:20583 [mirrored]
(http://svn.macports.org/repository/macports/trunk)
Log:
r19897@entropy: mark | 2006-11-08 11:01:13 -0800
Copy the mirrored repository to a local repository.
r20087@entropy: mark | 2006-11-25 03:58:42 -0800
UPDATE: pmd-3.8
=== pmd/Portfile
==================================================================
|
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | | name pmd |
6 | | version 3.0 |
7 | | revision 1 |
| 5 | name pmd |
| 6 | version 3.8 |
8 | 7 | |
9 | | categories java lang |
10 | | platforms darwin |
11 | | maintainers mww@opendarwin.org |
| 8 | categories java lang |
| 9 | platforms darwin |
| 10 | maintainers mww@opendarwin.org |
12 | 11 | |
13 | | description PMD is a Java source code analyzer |
14 | | long_description PMD is a Java source code analyzer. It finds unused \ |
15 | | variables, empty catch blocks, unnecessary object \ |
16 | | creation, and so forth. |
| 12 | description PMD is a Java source code analyzer |
| 13 | long_description PMD is a Java source code analyzer. It finds unused \ |
| 14 | variables, empty catch blocks, unnecessary object \ |
| 15 | creation, and so forth. |
17 | 16 | |
18 | | homepage http://pmd.sourceforge.net/ |
19 | | master_sites sourceforge |
20 | | distname ${name}-src-${version} |
21 | | checksums md5 f7b1e8c638e8ddd86c88282b5ce8bc96 |
22 | | use_zip yes |
| 17 | homepage http://pmd.sourceforge.net/ |
| 18 | master_sites sourceforge |
| 19 | distname ${name}-src-${version} |
| 20 | checksums md5 49c4f6341d035173ba6a7d5d899bb2b1 |
| 21 | use_zip yes |
23 | 22 | |
24 | | depends_build bin:ant:apache-ant |
25 | | depends_lib bin:java:kaffe |
26 | | depends_run port:jaxen \ |
27 | | port:xercesj \ |
28 | | port:saxpath \ |
29 | | port:junit |
| 23 | depends_build bin:ant:apache-ant |
| 24 | depends_lib bin:java:kaffe |
| 25 | depends_run port:jaxen \ |
| 26 | port:xercesj \ |
| 27 | port:saxpath \ |
| 28 | port:junit |
30 | 29 | |
31 | | worksrcdir ${name}-${version} |
| 30 | worksrcdir ${name}-${version} |
32 | 31 | |
33 | | post-extract { |
34 | | file delete ${worksrcpath}/lib/saxpath-1.0-fcs.jar \ |
35 | | ${worksrcpath}/lib/xercesImpl-2.0.2.jar \ |
36 | | ${worksrcpath}/lib/xmlParserAPIs-2.0.2.jar \ |
37 | | ${worksrcpath}/lib/jaxen-core-1.0-fcs.jar \ |
38 | | ${worksrcpath}/lib/pmd-2.0.jar |
| 32 | post-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 |
39 | 38 | } |
40 | 39 | |
41 | | use_configure no |
| 40 | use_configure no |
42 | 41 | |
43 | | build.cmd ant |
44 | | build.target jar |
45 | | build.dir ${worksrcpath}/bin |
46 | | build.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 |
| 42 | build.cmd ant |
| 43 | build.target jar |
| 44 | build.dir ${worksrcpath}/bin |
| 45 | build.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 |
47 | 46 | |
48 | | destroot { |
49 | | xinstall -m 755 ${filespath}/pmd ${destroot}${prefix}/bin |
50 | | reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/pmd |
51 | | xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
52 | | ${destroot}${prefix}/share/doc |
53 | | xinstall -m 644 ${worksrcpath}/lib/pmd-${version}.jar \ |
54 | | ${destroot}${prefix}/share/java/pmd.jar |
55 | | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
56 | | file copy ${worksrcpath}/rulesets ${destroot}${prefix}/share/${name} |
| 47 | destroot { |
| 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} |
57 | 56 | } |