Ticket #16553: slime-nocd.diff

File slime-nocd.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)

Untested fix; before committing, confirm that the list of files installed by the port before and after applying this patch is identical

  • Portfile

     
    9999}
    100100
    101101build {
    102     cd ${worksrcpath}
    103 
    104102    if { ${slime_byte_compile_p} } {
    105         system "${slime_emacs_binary} \
     103        system "cd ${worksrcpath} && ${slime_emacs_binary} \
    106104                --batch  \
    107105                --directory ${worksrcpath}  \
    108106                --directory ${worksrcpath}/contrib \
    109107                --funcall batch-byte-compile \
    110108                contrib/*.el"
    111         system "${slime_emacs_binary} \
     109        system "cd ${worksrcpath} && ${slime_emacs_binary} \
    112110                --batch  \
    113111                --directory ${worksrcpath}  \
    114112                --directory ${worksrcpath}/contrib \
     
    116114                *.el"
    117115    }
    118116
    119     cd ${worksrcpath}/doc
    120     system "make slime.info"
     117    system "cd ${worksrcpath}/doc && make slime.info"
    121118}
    122119
    123120destroot    {
    124     cd ${worksrcpath}
    125121    xinstall -m 755 -d ${slime_site_lisp_dir}
    126 
    127     foreach file [glob *.el *.elc *.lisp ChangeLog] {
     122    foreach file [glob -directory ${worksrcpath} *.el *.elc *.lisp ChangeLog] {
    128123        xinstall -m 644 ${file} ${slime_site_lisp_dir}
    129124    }
    130125
    131     cd ${worksrcpath}/contrib
    132126    xinstall -m 755 -d ${slime_site_lisp_contrib_dir}
    133     foreach file [glob *.el *.elc *.lisp ChangeLog] {
     127    foreach file [glob -directory ${worksrcpath}/contrib *.el *.elc *.lisp ChangeLog] {
    134128        xinstall -m 644 ${file} ${slime_site_lisp_contrib_dir}
    135129    }
    136130