[40659] trunk/dports/science/triangle/Portfile

jmr at macports.org jmr at macports.org
Thu Oct 9 16:08:54 PDT 2008


Revision: 40659
          http://trac.macports.org/changeset/40659
Author:   jmr at macports.org
Date:     2008-10-09 16:08:53 -0700 (Thu, 09 Oct 2008)
Log Message:
-----------
triangle: remove use of cd

Modified Paths:
--------------
    trunk/dports/science/triangle/Portfile

Modified: trunk/dports/science/triangle/Portfile
===================================================================
--- trunk/dports/science/triangle/Portfile	2008-10-09 23:04:29 UTC (rev 40658)
+++ trunk/dports/science/triangle/Portfile	2008-10-09 23:08:53 UTC (rev 40659)
@@ -29,10 +29,9 @@
 extract.post_args	"| sh"
 
 post-extract	{
-    cd ${workpath}
-    file mkdir ${worksrcdir}
-    eval file rename [glob \[A-s\]* t*.?] ${worksrcdir}
-    reinplace "s/-DLINUX//" ${worksrcdir}/makefile
+    file mkdir ${worksrcpath}
+    eval file rename [glob -directory ${workpath} \[A-s\]* t*.?] ${worksrcpath}
+    reinplace "s/-DLINUX//" ${worksrcpath}/makefile
 }
 
 depends_lib		lib:libX11.6:XFree86
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081009/70e2d5ec/attachment.html 


More information about the macports-changes mailing list