Changeset 72376 for trunk/dports/java


Ignore:
Timestamp:
Oct 12, 2010, 3:56:33 PM (9 years ago)
Author:
jberry@…
Message:

maven: Set David Hudson as maintainer; adds modeline and fixes tabs. No version change.

File:
1 edited

Legend:

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

    r72252 r72376  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem 1.0
    45
    5 name                    maven
    6 version                 1.0.2
     6name                maven
     7version             1.0.2
    78
    8 categories              java devel
    9 maintainers             nomaintainer
    10 platforms               darwin
     9categories          java devel
     10maintainers         yahoo.com:jendave
     11platforms           darwin
    1112
    12 description             A java-based build and project management environment.
    13 long_description        Maven is a Java project management and project comprehension \
    14                                         tool. Maven is based on the concept of a project object model (POM) \
    15                                         in that all the artifacts produced by Maven are a result of consulting \
    16                                         a well defined model for your project. Builds, documentation, source \
    17                                         metrics, and source  cross-references are all controlled by your POM.
    18 homepage                        http://maven.apache.org/
     13description         A java-based build and project management environment.
     14long_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.
    1919
    20 master_sites            apache:maven/binaries
    21 checksums               md5 81a6b4393e550635efe19e95cea38718
     20homepage            http://maven.apache.org/
    2221
    23 depends_build           bin:java:kaffe \
    24                                         bin:ant:apache-ant
    25                                        
    26 patchfiles                      patch-maven
     22master_sites        apache:maven/binaries
     23checksums           md5 81a6b4393e550635efe19e95cea38718
    2724
    28 use_configure           no
    29 use_bzip2                       yes
     25depends_build       bin:java:kaffe \
     26                    bin:ant:apache-ant
     27                   
     28patchfiles          patch-maven
     29
     30use_configure       no
     31use_bzip2           yes
    3032
    3133# Source builds of maven are not possible, except using the cvs head as in the
     
    3335# tagged source for the project. So the default build is a binary install of the
    3436# jars.
    35 build.cmd                       true
     37build.cmd           true
    3638
    3739destroot {
    38         # Create the target java directory exists
    39         xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
    40        
    41         # Copy over the needed elements of our directory tree
    42         file copy \
    43                 ${worksrcpath}/bin \
    44                 ${worksrcpath}/lib \
    45                 ${worksrcpath}/plugins \
    46                 ${worksrcpath}/maven-navigation-1.0.xsd \
    47                 ${destroot}${prefix}/share/java/${name}
    48                
    49         # Remove extraneous bat files
    50         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
    51                 file delete $f
    52         }
    53        
    54         # Fix permissions on shell scripts
    55         foreach f { maven install_repo.sh } {
    56                 if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
    57                         file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
    58                 }
    59         }
    60        
    61         # Symlink maven into the bin directory
    62         system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}"
     40    # Create the target java directory exists
     41    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     42   
     43    # Copy over the needed elements of our directory tree
     44    file copy \
     45        ${worksrcpath}/bin \
     46        ${worksrcpath}/lib \
     47        ${worksrcpath}/plugins \
     48        ${worksrcpath}/maven-navigation-1.0.xsd \
     49        ${destroot}${prefix}/share/java/${name}
     50       
     51    # Remove extraneous bat files
     52    foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
     53        file delete $f
     54    }
     55   
     56    # Fix permissions on shell scripts
     57    foreach f { maven install_repo.sh } {
     58        if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
     59            file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
     60        }
     61    }
     62   
     63    # Symlink maven into the bin directory
     64    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}"
    6365}
    6466
    6567# The devel variant builds from source using cvs head
    6668variant devel {
    67         worksrcdir              ${name}
    68        
    69         fetch.type              cvs
    70         cvs.root                :pserver:anoncvs@cvs.apache.org:/home/cvspublic
    71         cvs.module              maven maven-plugins
     69    worksrcdir      ${name}
     70   
     71    fetch.type      cvs
     72    cvs.root        :pserver:anoncvs@cvs.apache.org:/home/cvspublic
     73    cvs.module      maven maven-plugins
    7274
    73         build.env               MAVEN_HOME=${worksrcpath}
    74         build.cmd               ant
    75         build.pre_args  -f build-bootstrap.xml 
     75    build.env       MAVEN_HOME=${worksrcpath}
     76    build.cmd       ant
     77    build.pre_args  -f build-bootstrap.xml 
    7678}
    7779
Note: See TracChangeset for help on using the changeset viewer.