Changeset 83997 for trunk/dports/java


Ignore:
Timestamp:
Sep 14, 2011, 8:16:44 PM (8 years ago)
Author:
jmr@…
Message:

maven: rename to maven1 and update to 1.1 (#26822, #26832)

Location:
trunk/dports/java
Files:
2 deleted
2 edited
1 copied

Legend:

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

    r75115 r83997  
    55
    66name                maven
     7replaced_by         maven1
    78version             1.0.2
     9revision            1
    810
    911categories          java devel
    10 maintainers         yahoo.com:jendave
     12maintainers         nomaintainer
    1113platforms           darwin
    1214
    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.
     15description         stub port, use maven1 instead
     16long_description    ${description}
    1917
    2018homepage            http://maven.apache.org/
    2119
    22 master_sites        apache:maven/binaries
    23 checksums           md5 81a6b4393e550635efe19e95cea38718
     20distfiles
     21archive_sites
     22use_configure       no
    2423
    25 depends_build       bin:java:kaffe \
    26                     bin:ant:apache-ant
    27 
    28 patchfiles          patch-maven
    29 
    30 use_configure       no
    31 use_bzip2           yes
    32 
    33 # Source builds of maven are not possible, except using the cvs head as in the
    34 # devel variant below, because there is no available source archive or correctly
    35 # tagged source for the project. So the default build is a binary install of the
    36 # jars.
    37 build.cmd           true
    38 
    39 destroot {
    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}"
     24pre-configure {
     25    ui_error "$name is a stub, use $replaced_by instead."
     26    return -code error "obsolete port"
    6527}
    6628
    67 # The devel variant builds from source using cvs head
    68 variant devel {
    69     worksrcdir      ${name}
    70 
    71     fetch.type      cvs
    72     cvs.root        :pserver:anoncvs@cvs.apache.org:/home/cvspublic
    73     cvs.module      maven maven-plugins
    74 
    75     build.env       MAVEN_HOME=${worksrcpath}
    76     build.cmd       ant
    77     build.pre_args  -f build-bootstrap.xml
    78 }
    79 
    80 livecheck.type  regex
    81 livecheck.regex {Get Maven (\d+(?:\.\d+)*)}
     29livecheck.type  none
  • trunk/dports/java/maven1/Portfile

    r75115 r83997  
    44PortSystem 1.0
    55
    6 name                maven
    7 version             1.0.2
     6name                maven1
     7version             1.1
    88
    99categories          java devel
     
    2121
    2222master_sites        apache:maven/binaries
    23 checksums           md5 81a6b4393e550635efe19e95cea38718
     23distname            maven-${version}
     24checksums           md5    ec2b0ad8c78ba52497f63ee7f613b526 \
     25                    sha1   d9174675f0e846a225278949869fa2d979fa7f3b \
     26                    rmd160 82ef869218ac42d9132fc74316f0e8a5edcf9431
    2427
    2528depends_build       bin:java:kaffe \
    2629                    bin:ant:apache-ant
    2730
    28 patchfiles          patch-maven
     31use_configure       no
    2932
    30 use_configure       no
    31 use_bzip2           yes
    32 
    33 # Source builds of maven are not possible, except using the cvs head as in the
    34 # devel variant below, because there is no available source archive or correctly
    35 # tagged source for the project. So the default build is a binary install of the
    36 # jars.
     33# Source builds of maven are not possible. So, the default build is a binary
     34# install of the jars.
    3735build.cmd           true
    3836
    3937destroot {
     38    set mavendir ${destroot}${prefix}/share/java/${name}
    4039    # Create the target java directory exists
    41     xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     40    xinstall -m 755 -d ${mavendir}
    4241
    4342    # Copy over the needed elements of our directory tree
     
    4645        ${worksrcpath}/lib \
    4746        ${worksrcpath}/plugins \
    48         ${worksrcpath}/maven-navigation-1.0.xsd \
    49         ${destroot}${prefix}/share/java/${name}
     47        ${worksrcpath}/maven-project-3.xsd \
     48        ${mavendir}
    5049
    5150    # Remove extraneous bat files
    52     foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
     51    foreach f [glob -directory ${mavendir}/bin *.bat] {
    5352        file delete $f
    5453    }
     
    5655    # Fix permissions on shell scripts
    5756    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
     57        if [file exists ${mavendir}/bin/$f] {
     58            file attributes ${mavendir}/bin/$f -permissions +x
    6059        }
    6160    }
    6261
     62    # Reduce the permissions on the distribution files.
     63    foreach f [glob -directory ${mavendir}/lib *.jar] {
     64        file attributes $f -permissions 0644
     65    }
     66
     67    # Symlink maven executable to mvn in maven1 directory
     68    system "cd ${mavendir}/bin && ln -s maven mvn"
     69
    6370    # Symlink maven into the bin directory
    64     system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}"
    65 }
    66 
    67 # The devel variant builds from source using cvs head
    68 variant devel {
    69     worksrcdir      ${name}
    70 
    71     fetch.type      cvs
    72     cvs.root        :pserver:anoncvs@cvs.apache.org:/home/cvspublic
    73     cvs.module      maven maven-plugins
    74 
    75     build.env       MAVEN_HOME=${worksrcpath}
    76     build.cmd       ant
    77     build.pre_args  -f build-bootstrap.xml
     71    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn1"
    7872}
    7973
Note: See TracChangeset for help on using the changeset viewer.