[32768] trunk/dports/devel/hs-NewBinary/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jan 13 02:38:18 PST 2008


Revision: 32768
          http://trac.macosforge.org/projects/macports/changeset/32768
Author:   ryandesign at macports.org
Date:     2008-01-13 02:38:17 -0800 (Sun, 13 Jan 2008)

Log Message:
-----------
hs-NewBinary: no longer use the deprecated 'cd' command

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

Modified: trunk/dports/devel/hs-NewBinary/Portfile
===================================================================
--- trunk/dports/devel/hs-NewBinary/Portfile	2008-01-13 10:36:53 UTC (rev 32767)
+++ trunk/dports/devel/hs-NewBinary/Portfile	2008-01-13 10:38:17 UTC (rev 32768)
@@ -23,25 +23,20 @@
 
 worksrcdir	${shortname}
 
-pre-configure	{ cd ${worksrcpath}
-		  system "ghc -o Setup Setup.lhs -package Cabal"
+pre-configure	{ system "cd ${worksrcpath} && ghc -o Setup Setup.lhs -package Cabal"
 		}
 
-configure	{ cd ${worksrcpath}
-		  system "./Setup configure --ghc --prefix=${prefix}"
+configure	{ system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
 		}
 
-build		{ cd ${worksrcpath}
-		  system "./Setup build"
+build		{ system "cd ${worksrcpath} && ./Setup build"
 		}
 
-destroot	{ cd ${worksrcpath}
-		  system "./Setup copy --copy-prefix=${destroot}${prefix}"
+destroot	{ system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}"
                 }
 
-post-activate   { cd ${worksrcpath}
-		  catch {system "./Setup unregister"}
-		  system "./Setup register"
+post-activate   { catch {system "cd ${worksrcpath} && ./Setup unregister"}
+		  system "cd ${worksrcpath} && ./Setup register"
                 }
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080113/804ecf5a/attachment.html


More information about the macports-changes mailing list