[40559] trunk/dports/devel/hsshellscript/Portfile

jmr at macports.org jmr at macports.org
Mon Oct 6 14:11:50 PDT 2008


Revision: 40559
          http://trac.macports.org/changeset/40559
Author:   jmr at macports.org
Date:     2008-10-06 14:11:49 -0700 (Mon, 06 Oct 2008)
Log Message:
-----------
hsshellscript: remove use of cd

Modified Paths:
--------------
    trunk/dports/devel/hsshellscript/Portfile

Modified: trunk/dports/devel/hsshellscript/Portfile
===================================================================
--- trunk/dports/devel/hsshellscript/Portfile	2008-10-06 21:09:40 UTC (rev 40558)
+++ trunk/dports/devel/hsshellscript/Portfile	2008-10-06 21:11:49 UTC (rev 40559)
@@ -23,19 +23,19 @@
 
 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"
 		}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081006/f53bce5a/attachment.html 


More information about the macports-changes mailing list