Changeset 72276 for trunk/dports/java


Ignore:
Timestamp:
Oct 9, 2010, 5:28:07 PM (9 years ago)
Author:
blair@…
Message:

maven2: Whitespace cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/maven2/Portfile

    r61449 r72276  
    44PortSystem 1.0
    55
    6 name                    maven2
    7 version                 2.2.1
     6name            maven2
     7version         2.2.1
    88
    9 categories              java devel
    10 maintainers             kickstyle.net:gk5885
    11 platforms               darwin
     9categories      java devel
     10maintainers     kickstyle.net:gk5885
     11platforms       darwin
    1212
    13 description             A java-based build and project management environment.
    14 long_description        Maven is a Java project management and project comprehension \
    15                                 tool. Maven is based on the concept of a project object model (POM) \
    16                                 in that all the artifacts produced by Maven are a result of consulting \
    17                                 a well defined model for your project. Builds, documentation, source \
    18                                 metrics, and source  cross-references are all controlled by your POM.  \
    19                                 Maven 2.0 is a complete rewrite of Maven 1.0 and as such is better organized, \
    20                                 faster and easier to use.
    21 homepage                http://maven.apache.org/
     13description     A java-based build and project management environment.
     14long_description \
     15                Maven is a Java project management and project \
     16                comprehension tool.  Maven is based on the \
     17                concept of a project object model (POM) in that \
     18                all the artifacts produced by Maven are a result \
     19                of consulting a well defined model for your \
     20                project.Builds, documentation, source metrics, \
     21                and source cross-references are all controlled by \
     22                your POM.  Maven 2.0 is a complete rewrite of \
     23                Maven 1.0 and as such is better organized, faster \
     24                and easier to use.
     25               
     26homepage        http://maven.apache.org/
    2227
    23 master_sites            apache:maven/binaries
    24 distname                apache-maven-${version}-bin
    25 worksrcdir              apache-maven-${version}
    26 use_bzip2               yes
    27 checksums           md5     c581a15cb0001d9b771ad6df7c8156f8 \
    28                     sha1    47ac0417a200cbc6d1b967d6b7c6ae1138e9e3e0 \
    29                     rmd160 25d523d3dc86cf4695b0e343cf0f6e58ea8a54e3
     28master_sites    apache:maven/binaries
     29distname        apache-maven-${version}-bin
     30worksrcdir      apache-maven-${version}
     31use_bzip2       yes
     32checksums       md5    c581a15cb0001d9b771ad6df7c8156f8 \
     33                sha1   47ac0417a200cbc6d1b967d6b7c6ae1138e9e3e0 \
     34                rmd160 25d523d3dc86cf4695b0e343cf0f6e58ea8a54e3
    3035
     36depends_build   bin:java:kaffe
    3137
    32 depends_build           bin:java:kaffe
    33 
    34 use_configure           no
    35 universal_variant       no
    36 use_bzip2               yes
     38use_configure   no
     39universal_variant no
     40use_bzip2       yes
    3741
    3842# Source builds of maven are not possible. So, the default build is a binary
    3943# install of the jars.
    40 build.cmd               true
     44build.cmd       true
    4145
    4246destroot {
    43         # Create the target java directory exists
    44         xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
    45        
    46         # Copy over the needed elements of our directory tree
    47         file copy \
    48                 ${worksrcpath}/bin \
    49                 ${worksrcpath}/boot \
    50                 ${worksrcpath}/conf \
    51                 ${worksrcpath}/lib \
    52                 ${destroot}${prefix}/share/java/${name}
    53                
    54         # Remove extraneous bat files
    55         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
    56                 file delete $f
    57         }
    58        
    59         # Fix permissions on shell scripts
    60         foreach f { maven install_repo.sh } {
    61                 if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
    62                         file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
    63                 }
    64         }
    65        
    66         # Symlink maven into the bin directory
    67         system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn"
     47        # Create the target java directory exists
     48        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     49       
     50        # Copy over the needed elements of our directory tree
     51        file copy \
     52                ${worksrcpath}/bin \
     53                ${worksrcpath}/boot \
     54                ${worksrcpath}/conf \
     55                ${worksrcpath}/lib \
     56                ${destroot}${prefix}/share/java/${name}
     57               
     58        # Remove extraneous bat files
     59        foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
     60                file delete $f
     61        }
     62       
     63        # Fix permissions on shell scripts
     64        foreach f { maven install_repo.sh } {
     65                if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
     66                        file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
     67                }
     68        }
     69       
     70        # Symlink maven into the bin directory
     71        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn"
    6872}
    6973
    70 livecheck.type          regex
    71 livecheck.url           ${homepage}download.html
    72 livecheck.regex         apache-maven-(\[0-9.\]+)-bin\\.tar
     74livecheck.type  regex
     75livecheck.url   ${homepage}download.html
     76livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar
Note: See TracChangeset for help on using the changeset viewer.