Changeset 22004


Ignore:
Timestamp:
Feb 13, 2007, 8:50:43 PM (14 years ago)
Author:
pipping@…
Message:
  • avoid system calls
Location:
trunk/dports
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/db41/Portfile

    r20605 r22004  
    3838
    3939post-destroot {
    40         file delete -force ${destroot}${prefix}/share
     40        delete ${destroot}${prefix}/share
    4141        foreach lib { libdb.a libdb_cxx.a } {
    42                 file delete ${destroot}${prefix}/lib/db41/${lib}
     42                delete ${destroot}${prefix}/lib/db41/${lib}
    4343        }
    4444        foreach bin { archive dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } {
  • trunk/dports/databases/db42/Portfile

    r20605 r22004  
    3838
    3939post-destroot {
    40         file delete -force ${destroot}${prefix}/share
     40        delete ${destroot}${prefix}/share
    4141        foreach lib { libdb.a libdb_cxx.a } {
    42                 file delete ${destroot}${prefix}/lib/db42/${lib}
     42                delete ${destroot}${prefix}/lib/db42/${lib}
    4343        }
    4444        foreach bin { archive dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } {
  • trunk/dports/databases/db43/Portfile

    r20605 r22004  
    3838
    3939post-destroot {
    40         file delete -force ${destroot}${prefix}/share
     40        delete ${destroot}${prefix}/share
    4141        foreach lib { libdb.a libdb_cxx.a } {
    42                 file delete ${destroot}${prefix}/lib/db43/${lib}
     42                delete ${destroot}${prefix}/lib/db43/${lib}
    4343        }
    4444        foreach bin { archive dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } {
  • trunk/dports/databases/db45/Portfile

    r20606 r22004  
    4141
    4242post-destroot {
    43         file delete -force ${destroot}${prefix}/share
     43        delete ${destroot}${prefix}/share
    4444        foreach lib { libdb.a libdb_cxx.a } {
    45                 file delete ${destroot}${prefix}/lib/db45/${lib}
     45                delete ${destroot}${prefix}/lib/db45/${lib}
    4646        }
    4747        foreach bin { archive hotbackup dump dump185 printlog upgrade checkpoint recover verify deadlock load stat } {
  • trunk/dports/devel/bison1/Portfile

    r20403 r22004  
    3232
    3333post-destroot {
    34         file delete -force ${destroot}${prefix}/share/info
     34        delete ${destroot}${prefix}/share/info
    3535}
    3636
  • trunk/dports/devel/libsigcxx2/Portfile

    r20406 r22004  
    2020
    2121post-destroot {
    22         system "rm -r ${destroot}${prefix}/share"
     22        delete ${destroot}${prefix}/share
    2323}
    2424platform darwin 8 {
  • trunk/dports/editors/emacs-devel/Portfile

    r21859 r22004  
    4343post-destroot {
    4444        cd ${destroot}${prefix}
    45         file mkdir share/emacs/${version}/leim
     45        xinstall -d share/emacs/${version}/leim
    4646        if {[variant_isset carbon]} {
    4747                global version
    48                 file delete bin/emacs
    49                 file delete bin/emacs-${version}
     48                delete bin/emacs bin/emacs-${version}
    5049        }
    5150}
  • trunk/dports/editors/emacs/Portfile

    r20431 r22004  
    3131
    3232post-destroot {
    33         cd ${destroot}${prefix}
    34         file delete info/dir
    35         file delete share/info
    36         file rename info share/info
    37         system "rm -rf share/man"
    38         file rename man share/man
    39         file mkdir share/emacs/$version/leim
    40         if {[variant_isset carbon]} {
    41                 global destroot prefix version
    42 
    43                 file delete bin/emacs
    44                 file delete bin/emacs-$version
    45         }
     33    cd ${destroot}${prefix}
     34        delete info/dir share/info share/man
     35        file rename info share/info
     36        file rename man share/man
     37        xinstall -d share/emacs/$version/leim
     38        if {[variant_isset carbon]} {
     39            global destroot prefix version
     40            delete bin/emacs bin/emacs-$version
     41        }
    4642}
    4743
  • trunk/dports/gnome/gcalctool/Portfile

    r21321 r22004  
    3232
    3333post-destroot {
    34         system "rm -rf ${destroot}${prefix}/var/lib/scrollkeeper"
    35         system "rm -rf ${destroot}${prefix}/var/scrollkeeper"
     34        delete ${destroot}${prefix}/var/lib/scrollkeeper
     35        delete ${destroot}${prefix}/var/scrollkeeper
    3636}
    3737
  • trunk/dports/lang/ficl/Portfile

    r20413 r22004  
    1919build           { system "cd ${worksrcpath} && make -f Makefile.ansi" }
    2020destroot        {
    21                   system "cp ${worksrcpath}/ficl ${destroot}${prefix}/bin"
    22                   system "cp ${worksrcpath}/libficl.a ${destroot}${prefix}/lib"
    23                   system "rm -f ${destroot}${prefix}/share/man"
     21                  file copy ${worksrcpath}/ficl ${destroot}${prefix}/bin
     22                  file copy ${worksrcpath}/libficl.a ${destroot}${prefix}/lib
     23                  delete ${destroot}${prefix}/share/man
    2424                }
  • trunk/dports/lang/g-wrap/Portfile

    r20413 r22004  
    2121
    2222post-destroot {
    23         system "mkdir -p ${destroot}${prefix}/share/info"
    24         system "mv ${destroot}${prefix}/info/* ${destroot}${prefix}/share/info"
    25         system "rmdir ${destroot}${prefix}/info"
    26         system "rm -r ${destroot}${prefix}/share/man"
     23        xinstall -d ${destroot}${prefix}/share/info
     24        file rename ${destroot}${prefix}/info/* ${destroot}${prefix}/share/info
     25        delete ${destroot}${prefix}/info
     26        delete ${destroot}${prefix}/share/man
    2727}
  • trunk/dports/sysutils/cdrtools/Portfile

    r20466 r22004  
    3030}
    3131
    32 configure       { cd ${worksrcpath}
    33                   system "rm INSTALL" }
     32configure       { delete ${worksrcpath}/INSTALL }
    3433
    3534destroot.args    DEFINSUSR=root DEFINSGRP=wheel INS_BASE=${destroot}/${prefix}
  • trunk/dports/sysutils/cfengine/Portfile

    r20466 r22004  
    119119                || ![file exists ${cfworkdir}/ppkeys/localhost.pub]} {
    120120                if {[file exists ${cfworkdir}/ppkeys/localhost.priv]} {
    121                         file delete -force ${cfworkdir}/ppkeys/localhost.priv
     121                        delete ${cfworkdir}/ppkeys/localhost.priv
    122122                }
    123123                if {[file exists ${cfworkdir}/ppkeys/localhost.pub]} {
    124                         file delete -force ${cfworkdir}/ppkeys/localhost.pub
     124                        delete ${cfworkdir}/ppkeys/localhost.pub
    125125                }
    126126                system "${prefix}/sbin/cfkey"
Note: See TracChangeset for help on using the changeset viewer.