[33042] trunk/dports/lang/ghc/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jan 16 20:57:59 PST 2008


Revision: 33042
          http://trac.macosforge.org/projects/macports/changeset/33042
Author:   ryandesign at macports.org
Date:     2008-01-16 20:57:58 -0800 (Wed, 16 Jan 2008)

Log Message:
-----------
ghc: no longer use the deprecated 'cd' command; maintainer timeout; closes #13905

Modified Paths:
--------------
    trunk/dports/lang/ghc/Portfile

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2008-01-17 04:57:01 UTC (rev 33041)
+++ trunk/dports/lang/ghc/Portfile	2008-01-17 04:57:58 UTC (rev 33042)
@@ -75,8 +75,7 @@
 		depends_lib-append	port:readline-5
 
 		pre-configure	{
-			cd ${worksrcpath}
-			system "autoreconf"
+			system "cd ${worksrcpath} && autoreconf"
 
 			set cfg [open "${worksrcpath}/mk/build.mk" w]
 		  	puts $cfg "#"
@@ -124,8 +123,7 @@
 					${name}-${ghc_bootversion}-darwin-bootstrap-tiger.tar.bz2
 
 		pre-configure	{
-			cd ${worksrcpath}
-			system "autoreconf"
+			system "cd ${worksrcpath} && autoreconf"
 
 			set cfg [open "${worksrcpath}/mk/build.mk" w]
 		  	puts $cfg "#"
@@ -172,8 +170,7 @@
 					${name}-${ghc_bootversion}-i386-apple-darwin-bootstrap.tar.bz2
 
 		pre-configure	{
-			cd ${worksrcpath}
-			system "autoreconf"
+			system "cd ${worksrcpath} && autoreconf"
 
 			set cfg [open "${worksrcpath}/mk/build.mk" w]
 		  	puts $cfg "#"
@@ -244,6 +241,5 @@
 
 	reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}${prefix}/lib/${name}-${version}/package.conf
 
-	cd ${destroot}${prefix}/lib/ghc-${version}
-        system "ranlib *.a"
+	system "cd ${destroot}${prefix}/lib/ghc-${version} && ranlib *.a"
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080116/053ea7bb/attachment.html


More information about the macports-changes mailing list