Skip to content
Permalink
Browse files

hsshellscript: remove use of cd

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@40559 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Oct 6, 2008
1 parent 62b5814 commit 9785672e6f29445a10e2725b69734dbe9e59a969
Showing with 5 additions and 5 deletions.
  1. +5 −5 devel/hsshellscript/Portfile
@@ -23,19 +23,19 @@ depends_build bin:c2hs:c2hs \

patchfiles patch-Makefile

configure { cd ${worksrcpath}
configure {
set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
reinplace s|/usr/local/imports|${prefix}/lib/ghc-${ghcversion}/imports| Makefile
reinplace s|/usr/local|${prefix}|g Makefile
reinplace s|/usr/local/imports|${prefix}/lib/ghc-${ghcversion}/imports| ${worksrcpath}/Makefile
reinplace s|/usr/local|${prefix}|g ${worksrcpath}/Makefile
}

build.target { }

post-destroot { system "ranlib ${destroot}${prefix}/lib/libhsshellscript.a" }

post-activate { cd ${worksrcpath}
post-activate {
set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
system "DEST_IMPORTS=${prefix}/lib/ghc-${ghcversion}/imports/hsshellscript \
system "cd ${worksrcpath} && DEST_IMPORTS=${prefix}/lib/ghc-${ghcversion}/imports/hsshellscript \
DEST_LIB=${prefix}/lib \
ghc-pkg -i lib/hsshellscript.pkg --update-package --auto-ghci-libs"
}

0 comments on commit 9785672

Please sign in to comment.
You can’t perform that action at this time.