Changeset 49645


Ignore:
Timestamp:
Apr 14, 2009, 7:58:36 AM (11 years ago)
Author:
blb@…
Message:

Multiple ports - remove use of cd (ticket #12914) in some ports where it is
simple; not waiting for maintainers as cd doesn't work with current MacPorts

Location:
trunk/dports
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/GPGAppKit/Portfile

    r19466 r49645  
    2828
    2929destroot        {
    30         cd ${worksrcpath}
    31         system "${build.cmd} install ${build.target}                    \
     30        system "cd ${worksrcpath} && ${build.cmd} install ${build.target}                       \
    3231                INSTALL_PATH=${prefix}/Library/Frameworks               \
    3332                FRAMEWORK_SEARCH_PATHS=${prefix}/Library/Frameworks     \
  • trunk/dports/devel/gpgme-objc/Portfile

    r20274 r49645  
    2626depends_lib     port:gpgme
    2727patch   {
    28         cd ${worksrcpath}
    2928        reinplace "s|/usr/local|${prefix}|g"    \
    30                 ${rname}.xcode/project.pbxproj  \
    31                 ${rname}.pbproj/project.pbxproj
     29                ${worksrcpath}/${rname}.xcode/project.pbxproj   \
     30                ${worksrcpath}/${rname}.pbproj/project.pbxproj
    3231}
    3332use_configure   no
     
    3736
    3837destroot        {
    39         cd ${worksrcpath}
    40         system "${build.cmd} install INSTALL_MODE_FLAG=go-w,a+rX        \
     38        system "cd ${worksrcpath} && ${build.cmd} install INSTALL_MODE_FLAG=go-w,a+rX   \
    4139                INSTALL_PATH=${prefix}/Library/Frameworks               \
    4240                DSTROOT=${destroot} ${build.target}                     \
  • trunk/dports/devel/lua-lunit/Portfile

    r26783 r49645  
    2727build               {}
    2828destroot            {
    29     cd ${workpath}/${worksrcdir}
    3029    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    31     file copy ANNOUNCE DOCUMENTATION README README.alpha CHANGES LICENSE TODO ${destroot}${prefix}/share/doc/${name}
     30    xinstall -W ${worksrcpath} ANNOUNCE DOCUMENTATION README README.alpha CHANGES LICENSE TODO ${destroot}${prefix}/share/doc/${name}
    3231    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    33     foreach luaexamp [glob examples/*] {
     32    foreach luaexamp [glob ${worksrcpath}/examples/*] {
    3433        xinstall -m 0644 ${luaexamp} ${destroot}${prefix}/share/doc/${name}/examples
    3534    }
    3635
    3736    xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1
    38     foreach luadat [glob *.lua] {
     37    foreach luadat [glob ${worksrcpath}/*.lua] {
    3938        xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1
    4039    }
  • trunk/dports/devel/spin/Portfile

    r40614 r49645  
    3838
    3939build       {
    40     cd ${worksrcpath}/Src${version}
    41     exec make
     40    system "cd ${worksrcpath}/Src${version} && make"
    4241}
    4342
  • trunk/dports/devel/xmlwrapp/Portfile

    r49143 r49645  
    3030
    3131configure {
    32         cd ${worksrcpath}
    33 
    3432        system "cd ${worksrcpath} && perl configure.pl --xml2-config=${prefix}/bin/xml2-config --xslt-config=${prefix}/bin/xslt-config --prefix=${prefix}"
    3533
  • trunk/dports/java/javancss/Portfile

    r25328 r49645  
    3333
    3434post-patch {
    35            cd ${worksrcpath}
    36            reinplace s|/usr/local/java/javacc|${prefix}/bin/javacc| build.xml
     35           reinplace s|/usr/local/java/javacc|${prefix}/bin/javacc| ${worksrcpath}/build.xml
    3736}
    3837
  • trunk/dports/java/objectweb-asm/Portfile

    r20318 r49645  
    3131
    3232pre-build {
    33           cd ${worksrcpath}
    34           reinplace s|^.*objectweb.ant.tasks.path.*ow_util_ant_tasks.jar|objectweb.ant.tasks.path\ ${prefix}/share/java/objectweb-anttasks.jar| build.properties
     33          reinplace s|^.*objectweb.ant.tasks.path.*ow_util_ant_tasks.jar|objectweb.ant.tasks.path\ ${prefix}/share/java/objectweb-anttasks.jar| ${worksrcpath}/build.properties
    3534}
    3635
  • trunk/dports/lang/jikespg/Portfile

    r20322 r49645  
    2121
    2222configure       {
    23         cd ${worksrcpath}
    24         reinplace "s|-s -o|-o|g" Makefile
     23        reinplace "s|-s -o|-o|g" ${worksrcpath}/Makefile
    2524}
    2625
  • trunk/dports/lang/jlint/Portfile

    r19465 r49645  
    2222
    2323destroot        {
    24         cd ${worksrcpath}
    25         xinstall -m 755 antic ${destroot}${prefix}/bin
    26         xinstall -m 755 jlint ${destroot}${prefix}/bin
     24        xinstall -m 755 -W ${worksrcpath} antic jlint ${destroot}${prefix}/bin
    2725}
  • trunk/dports/math/DoCon/Portfile

    r37662 r49645  
    3737
    3838                  post-destroot {
    39                         cd ${workpath}/${shortname}
    40                         system "latex manual.lat"
    41                         system "latex manual.lat"
    42                         system "latex manual.lat"
    43                         system "dvipdf manual"
    44                         file mkdir ${destroot}${prefix}/share/${shortname}-${version}
    45                         file copy manual.pdf ${destroot}${prefix}/share/${shortname}-${version}/
     39                        system "cd ${workpath}/${shortname} && latex manual.lat"
     40                        system "cd ${workpath}/${shortname} && dvipdf manual"
     41                        file mkdir ${destroot}${prefix}/share/doc/${shortname}-${version}
     42                        file copy ${workpath}/${shortname}/manual.pdf ${destroot}${prefix}/share/doc/${shortname}-${version}/
    4643                  }
    4744                }
  • trunk/dports/net/binkd/Portfile

    r20337 r49645  
    2121                       
    2222destroot        {
    23                 cd ${worksrcpath}
    24                 system "install -o root -m 755 binkd ${destroot}/${prefix}/sbin/"
    25                 system "install -o root -m 644 binkd.8 ${destroot}/${prefix}/share/man/man8"
    26                 system "install -o root -m 644 binkd.cfg ${destroot}/${prefix}/etc/binkd.cfg.sample"
     23                xinstall -m 755 ${worksrcpath}/binkd ${destroot}${prefix}/sbin/
     24                xinstall -m 644 ${worksrcpath}/binkd.8 ${destroot}${prefix}/share/man/man8
     25                xinstall -m 644 ${worksrcpath}/binkd.cfg ${destroot}${prefix}/etc/binkd.cfg.sample
    2726                }
  • trunk/dports/net/http-replicator/Portfile

    r30184 r49645  
    1919master_sites    ${homepage}
    2020distname                ${name}_${version}
     21worksrcdir              ${name}-${version}
    2122checksums               md5 7d8d69175a5dc3d470273b1e508a27f3
    2223
     
    2425
    2526configure       {
    26         cd ${worksrcpath}
    27         reinplace "s| /usr/bin/python|/usr/bin/env pyhton|g" http-replicator \
    28                 http-replicator_maintenance
     27        reinplace "s| /usr/bin/python|/usr/bin/env python|g" ${worksrcpath}/http-replicator \
     28                ${worksrcpath}/http-replicator_maintenance
    2929}
    3030
  • trunk/dports/net/sclj/Portfile

    r43038 r49645  
    2121
    2222configure {
    23         cd ${worksrcpath}/src
    2423        reinplace "s|\/usr\/bin\/perl|${prefix}\/bin\/perl|" \
    25                 sclj scljconv scljed
     24                ${worksrcpath}/src/sclj ${worksrcpath}/src/scljconv ${worksrcpath}/src/scljed
    2625}
    2726
Note: See TracChangeset for help on using the changeset viewer.