Changeset 72309 for trunk/dports/java


Ignore:
Timestamp:
Oct 10, 2010, 2:25:58 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/maven2/Portfile

    r72308 r72309  
    4545
    4646destroot {
     47        set mavendir ${destroot}${prefix}/share/java/${name}
     48
    4749        # Create the target java directory exists
    48         xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     50        xinstall -m 755 -d ${mavendir}
    4951       
    5052        # Copy over the needed elements of our directory tree
     
    5456                ${worksrcpath}/conf \
    5557                ${worksrcpath}/lib \
    56                 ${destroot}${prefix}/share/java/${name}
     58                ${mavendir}
    5759               
    5860        # Remove extraneous bat files
    59         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
     61        foreach f [glob -directory ${mavendir}/bin *.bat] {
    6062                file delete $f
    6163        }
     
    6365        # Fix permissions on shell scripts
    6466        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                if [file exists ${mavendir}/bin/$f] {
     68                        file attributes ${mavendir}/bin/$f -permissions +x
    6769                }
    6870        }
    6971
    7072        # Reduce the permissions on the distribution files.
    71         file attributes ${destroot}${prefix}/share/java/${name}/conf -permissions 0755
    72         file attributes ${destroot}${prefix}/share/java/${name}/conf/settings.xml -permissions 0644
    73         foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/lib *.jar] {
     73        file attributes ${mavendir}/conf -permissions 0755
     74        file attributes ${mavendir}/conf/settings.xml -permissions 0644
     75        foreach f [glob -directory ${mavendir}/lib *.jar] {
    7476                file attributes $f -permissions 0644
    7577        }
Note: See TracChangeset for help on using the changeset viewer.