Ticket #11063: dports_java_pmd_3_8.patch

File dports_java_pmd_3_8.patch, 4.1 KB (added by mark@…, 18 years ago)
  • pmd/Portfile

    ==== 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
    ==================================================================
     
    22
    33PortSystem 1.0
    44
    5 name                    pmd
    6 version                 3.0
    7 revision                1
     5name             pmd
     6version          3.8
    87
    9 categories              java lang
    10 platforms               darwin
    11 maintainers             mww@opendarwin.org
     8categories       java lang
     9platforms        darwin
     10maintainers      mww@opendarwin.org
    1211
    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.
     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.
    1716
    18 homepage                http://pmd.sourceforge.net/
    19 master_sites    sourceforge
    20 distname                ${name}-src-${version}
    21 checksums               md5 f7b1e8c638e8ddd86c88282b5ce8bc96
    22 use_zip                 yes
     17homepage         http://pmd.sourceforge.net/
     18master_sites     sourceforge
     19distname         ${name}-src-${version}
     20checksums        md5 49c4f6341d035173ba6a7d5d899bb2b1
     21use_zip          yes
    2322
    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
     23depends_build    bin:ant:apache-ant
     24depends_lib      bin:java:kaffe
     25depends_run      port:jaxen \
     26                 port:xercesj \
     27                 port:saxpath \
     28                 port:junit
    3029
    31 worksrcdir              ${name}-${version}
     30worksrcdir       ${name}-${version}
    3231
    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
     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
    3938}
    4039
    41 use_configure   no
     40use_configure  no
    4241
    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
     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
    4746
    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}
     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}
    5756}