[40558] trunk/dports/devel/hs-plugins/Portfile

jmr at macports.org jmr at macports.org
Mon Oct 6 14:09:40 PDT 2008


Revision: 40558
          http://trac.macports.org/changeset/40558
Author:   jmr at macports.org
Date:     2008-10-06 14:09:40 -0700 (Mon, 06 Oct 2008)
Log Message:
-----------
hs-plugins: remove use of cd

Modified Paths:
--------------
    trunk/dports/devel/hs-plugins/Portfile

Modified: trunk/dports/devel/hs-plugins/Portfile
===================================================================
--- trunk/dports/devel/hs-plugins/Portfile	2008-10-06 21:07:41 UTC (rev 40557)
+++ trunk/dports/devel/hs-plugins/Portfile	2008-10-06 21:09:40 UTC (rev 40558)
@@ -34,21 +34,21 @@
 
 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 "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 "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} && 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081006/7d29e9a9/attachment.html 


More information about the macports-changes mailing list