Changeset 40559


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

hsshellscript: remove use of cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/hsshellscript/Portfile

    r30224 r40559  
    2424patchfiles      patch-Makefile
    2525
    26 configure       { cd ${worksrcpath}
     26configure       {
    2727                  set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
    28                   reinplace s|/usr/local/imports|${prefix}/lib/ghc-${ghcversion}/imports| Makefile
    29                   reinplace s|/usr/local|${prefix}|g Makefile
     28                  reinplace s|/usr/local/imports|${prefix}/lib/ghc-${ghcversion}/imports| ${worksrcpath}/Makefile
     29                  reinplace s|/usr/local|${prefix}|g ${worksrcpath}/Makefile
    3030                }
    3131
     
    3434post-destroot   { system "ranlib ${destroot}${prefix}/lib/libhsshellscript.a" }
    3535
    36 post-activate   { cd ${worksrcpath}
     36post-activate   {
    3737                  set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
    38                   system "DEST_IMPORTS=${prefix}/lib/ghc-${ghcversion}/imports/hsshellscript \
     38                  system "cd ${worksrcpath} && DEST_IMPORTS=${prefix}/lib/ghc-${ghcversion}/imports/hsshellscript \
    3939                          DEST_LIB=${prefix}/lib \
    4040                          ghc-pkg -i lib/hsshellscript.pkg --update-package --auto-ghci-libs"
Note: See TracChangeset for help on using the changeset viewer.