Skip to content
Permalink
Browse files

hs-plugins: remove use of cd

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@40558 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Oct 6, 2008
1 parent 96c7fd1 commit 62b5814aca75356277df66bd28c624d520d16b87
Showing with 12 additions and 12 deletions.
  1. +12 −12 devel/hs-plugins/Portfile
@@ -34,21 +34,21 @@ use_autoconf yes

destroot.destdir PREFIX=${destroot}${prefix}

post-activate { cd ${worksrcpath}
post-activate {

# start by unregistering old versions

system "ghc-pkg -r printf || true"
system "ghc-pkg -r eval || true"
system "ghc-pkg -r plugins || true"
system "ghc-pkg -r hi || true"
system "ghc-pkg -r altdata || true"

system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/altdata/altdata.conf.in"
system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/hi/hi.conf.in"
system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/plugins/plugins.conf.in"
system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/eval/eval.conf.in"
system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/printf/printf.conf.in"
system "cd ${worksrcpath} && ghc-pkg -r printf || true"
system "cd ${worksrcpath} && ghc-pkg -r eval || true"
system "cd ${worksrcpath} && ghc-pkg -r plugins || true"
system "cd ${worksrcpath} && ghc-pkg -r hi || true"
system "cd ${worksrcpath} && ghc-pkg -r altdata || true"

system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/altdata/altdata.conf.in"
system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/hi/hi.conf.in"
system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/plugins/plugins.conf.in"
system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/eval/eval.conf.in"
system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/printf/printf.conf.in"

system "ranlib ${prefix}/lib/${name}/libHSplugins.a"
system "ranlib ${prefix}/lib/${name}/libHShi.a"

0 comments on commit 62b5814

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