[66953] trunk/dports/science/afni/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Apr 26 13:35:21 PDT 2010


Revision: 66953
          http://trac.macports.org/changeset/66953
Author:   ryandesign at macports.org
Date:     2010-04-26 13:35:19 -0700 (Mon, 26 Apr 2010)
Log Message:
-----------
afni: move common parts out of powerpc and i386 platform sections

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

Modified: trunk/dports/science/afni/Portfile
===================================================================
--- trunk/dports/science/afni/Portfile	2010-04-26 20:33:34 UTC (rev 66952)
+++ trunk/dports/science/afni/Portfile	2010-04-26 20:35:19 UTC (rev 66953)
@@ -40,22 +40,23 @@
 #patchfiles	patch-Makefile.INCLUDE
 
 platform powerpc {
-post-patch      {
+	post-extract {
                 file copy ${filespath}/Makefile.ppc \
 			${worksrcpath}/Makefile
-                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
-		reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
+	}
 }
-}
 
 platform i386 {
-post-patch      {
+	post-extract {
                 file copy ${filespath}/Makefile.i386 \
 			${worksrcpath}/Makefile
-                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
+	}
+}
+
+post-patch {
+		file copy ${distpath}/3dClustBust.c ${worksrcpath}/
 		reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
 }
-}
 
 pre-build	{
 		if { ! [file exists "/usr/X11R6/lib/libGLw.a"] } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100426/c2826ee7/attachment.html>


More information about the macports-changes mailing list