Changeset 112830 for trunk/dports/java


Ignore:
Timestamp:
Nov 2, 2013, 2:17:50 PM (5 years ago)
Author:
easieste@…
Message:

Update to apache-maven-3.1.1.

Change the install path to the more recognizable 'apache-maven-3.1.1'
instead of 'maven-devel'.

Whether/when we should replace java/maven3 with this port is still up
in air depending on how things shake out with compatibility with
existing Maven usages. Maybe make an java/maven31 port?

File:
1 edited

Legend:

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

    r109477 r112830  
    66
    77name            maven-devel
    8 version         3.1.0
     8version         3.1.1
    99
    1010categories      java devel
     
    3535worksrcdir      apache-maven-${version}
    3636
    37 checksums       md5     e251cf1a584b4a5f13ae118abaacd08a \
    38                 sha1    af0867027f0907631c1f85ecf668f74c08f5d5e9 \
    39                 sha256  59088c62c14b996d597bbd55e720866b0e13e36daed8a46a81c01058ee74bd54
     37checksums           md5     6342fdf6b0aabc1457c7f8cc218127ed \
     38                    sha1    630eea2107b0742acb315b214009ba08602dda5f \
     39                    sha256  077ed466455991d5abb4748a1d022e2d2a54dc4d557c723ecbacdc857c61d51b
    4040
    4141depends_run     port:maven_select
     
    4646
    4747select.group    maven
    48 select.file     ${filespath}/${name}
     48select.file     ${filespath}/maven3
    4949
    5050# Source builds of maven are not possible. So, the default build is a binary
     
    5454
    5555destroot {
    56     set mavendir ${destroot}${prefix}/share/java/${name}
     56    set maven_dir    apache-maven-${version}
     57    set maven_path   ${destroot}${prefix}/share/java/${maven_dir}
    5758
    5859    # Create the target java directory exists
    59     xinstall -m 755 -d ${mavendir}
     60    xinstall -m 755 -d ${maven_path}
    6061
    6162    # Copy over the needed elements of our directory tree
     
    6566        ${worksrcpath}/conf \
    6667        ${worksrcpath}/lib \
    67         ${mavendir}
     68        ${maven_path}
    6869
    6970    # Remove extraneous bat files
    70     foreach f [glob -directory ${mavendir}/bin *.bat] {
     71    foreach f [glob -directory ${maven_path}/bin *.bat] {
    7172        file delete $f
    7273    }
     
    7475    # Fix permissions on shell scripts
    7576    foreach f { maven install_repo.sh } {
    76         if [file exists ${mavendir}/bin/$f] {
    77             file attributes ${mavendir}/bin/$f -permissions +x
     77        if [file exists ${maven_path}/bin/$f] {
     78            file attributes ${maven_path}/bin/$f -permissions +x
    7879        }
    7980    }
    8081
    8182    # Reduce the permissions on the distribution files.
    82     file attributes ${mavendir}/conf -permissions 0755
    83     file attributes ${mavendir}/conf/settings.xml -permissions 0644
    84     foreach f [glob -directory ${mavendir}/boot *.jar] {
     83    file attributes ${maven_path}/conf -permissions 0755
     84    file attributes ${maven_path}/conf/settings.xml -permissions 0644
     85    foreach f [glob -directory ${maven_path}/boot *.jar] {
    8586        file attributes $f -permissions 0644
    8687    }
    87     foreach f [glob -directory ${mavendir}/lib *.jar] {
     88    foreach f [glob -directory ${maven_path}/lib *.jar] {
    8889        file attributes $f -permissions 0644
    8990    }
    9091
    9192    # Symlink maven into the bin directory
    92     system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn3"
     93    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${maven_dir}/bin/mvn mvn3"
    9394}
    9495
Note: See TracChangeset for help on using the changeset viewer.