Changeset 40560


Ignore:
Timestamp:
Oct 6, 2008, 9:15:03 PM (12 years ago)
Author:
jmr@…
Message:

java_memcached: remove use of cd

File:
1 edited

Legend:

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

    r37910 r40560  
    3131
    3232build {
    33         cd ${worksrcpath}
    3433        system "echo Running: ${build.cmd} ${build.args} jar"
    35         system "${build.cmd} ${build.args} jar"
    36         file copy java_memcached-${version}/java_memcached-${version}.jar ${name}.jar
     34        system "cd ${worksrcpath} && ${build.cmd} ${build.args} jar"
     35        file copy ${worksrcpath}/java_memcached-${version}/java_memcached-${version}.jar ${worksrcpath}/${name}.jar
    3736        system "echo Running: ${build.cmd} ${build.args} javadoc"
    38         system "${build.cmd} ${build.args} javadoc"
    39         file rename java_memcached-${version}/javadocs javadocs
     37        system "cd ${worksrcpath} && ${build.cmd} ${build.args} javadoc"
     38        file rename ${worksrcpath}/java_memcached-${version}/javadocs ${worksrcpath}/javadocs
    4039}
    4140
    4241destroot {
    43         cd ${worksrcpath}
    44 
    4542        set javadir ${destroot}${prefix}/share/java
    4643        set docdir ${destroot}${prefix}/share/doc/${name}
     
    4946        xinstall -d -m 755 ${docdir}
    5047
    51         file copy ${name}.jar ${javadir}/
    52         file copy javadocs ${docdir}/
     48        file copy ${worksrcpath}/${name}.jar ${javadir}/
     49        file copy ${worksrcpath}/javadocs ${docdir}/
    5350
    54         foreach f [glob doc/*] {
     51        foreach f [glob ${worksrcpath}/doc/*] {
    5552                file copy ${f} ${docdir}/
    5653        }
Note: See TracChangeset for help on using the changeset viewer.