Changeset 72311 for trunk/dports/java


Ignore:
Timestamp:
Oct 10, 2010, 2:32:04 PM (9 years ago)
Author:
blair@…
Message:

Set and use ${mavendir} to make the port shorter and easier to read.

File:
1 edited

Legend:

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

    r72310 r72311  
    4646
    4747destroot {
     48        set mavendir ${destroot}${prefix}/share/java/${name}
     49
    4850        # Create the target java directory exists
    49         xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     51        xinstall -m 755 -d ${mavendir}
    5052       
    5153        # Copy over the needed elements of our directory tree
     
    5557                ${worksrcpath}/conf \
    5658                ${worksrcpath}/lib \
    57                 ${destroot}${prefix}/share/java/${name}
     59                ${mavendir}
    5860               
    5961        # Remove extraneous bat files
    60         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
     62        foreach f [glob -directory ${mavendir}/bin *.bat] {
    6163                file delete $f
    6264        }
     
    6466        # Fix permissions on shell scripts
    6567        foreach f { maven install_repo.sh } {
    66                 if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
    67                         file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
     68                if [file exists ${mavendir}/bin/$f] {
     69                        file attributes ${mavendir}/bin/$f -permissions +x
    6870                }
    6971        }
    7072
    7173        # Reduce the permissions on the distribution files.
    72         file attributes ${destroot}${prefix}/share/java/${name}/conf -permissions 0755
    73         file attributes ${destroot}${prefix}/share/java/${name}/conf/settings.xml -permissions 0644
    74         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/boot *.jar] {
     74        file attributes ${mavendir}/conf -permissions 0755
     75        file attributes ${mavendir}/conf/settings.xml -permissions 0644
     76        foreach f [glob -directory ${mavendir}/boot *.jar] {
    7577                file attributes $f -permissions 0644
    7678        }
    77         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/lib *.jar] {
     79        foreach f [glob -directory ${mavendir}/lib *.jar] {
    7880                file attributes $f -permissions 0644
    7981        }
Note: See TracChangeset for help on using the changeset viewer.