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

snc at macports.org snc at macports.org
Thu Oct 15 13:58:09 PDT 2009


Revision: 59503
          http://trac.macports.org/changeset/59503
Author:   snc at macports.org
Date:     2009-10-15 13:58:08 -0700 (Thu, 15 Oct 2009)
Log Message:
-----------
use workpath/worksrcpath instead of 'cd', comment out missing files

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

Modified: trunk/dports/science/afni/Portfile
===================================================================
--- trunk/dports/science/afni/Portfile	2009-10-15 20:54:33 UTC (rev 59502)
+++ trunk/dports/science/afni/Portfile	2009-10-15 20:58:08 UTC (rev 59503)
@@ -36,25 +36,23 @@
 		3dClustBust.c md5 e5f890f4e0894d6e16e3579d3ff89f49 \
 		libGLw.a.tiger md5 c6c30011f603f7c055ba36156ca64d38
 
-patchfiles	patch-Makefile.INCLUDE
+#patchfiles	patch-Makefile.INCLUDE
 
 platform powerpc {
 post-patch      {
-		cd ${workpath}/afni_src
-                file copy ${filespath}/Makefile.macosx_PowerPC_darwinports \
-			Makefile
-                file copy ${distpath}/3dClustBust.c .
-		reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
+                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      {
-		cd ${workpath}/afni_src
-                file copy ${filespath}/Makefile.macosx_Intel_darwinports \
-			Makefile
-                file copy ${distpath}/3dClustBust.c .
-		reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
+                file copy ${filespath}/Makefile.i386 \
+			${worksrcpath}/Makefile
+                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
+		reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
 }
 }
 
@@ -63,52 +61,50 @@
 		    file copy ${distpath}/libGLw.a.tiger /usr/X11R6/lib/libGLw.a
 		}
 		file copy -force ${distpath}/afni.1 ${workpath}
-		file copy -force ${filespath}/afni.cshrc ${workpath}
-		file copy -force ${filespath}/afni.profile ${workpath}
+#		file copy -force ${filespath}/afni.cshrc ${workpath}
+#		file copy -force ${filespath}/afni.profile ${workpath}
 		reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.1
-		reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.cshrc
-		reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.profile
-		reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.cshrc
-		reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.profile
+#		reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.cshrc
+#		reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.profile
+#		reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.cshrc
+#		reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.profile
 		}
 
 destroot {
 # First, separate files that were all dumped into macosx_bin by the Makefile
-		cd ${workpath}/afni_src
-		file mkdir macosx_lib
-		eval file rename [glob macosx_bin/*.a] macosx_lib
-		eval file rename [glob macosx_bin/*.so] macosx_lib
-		file mkdir macosx_include
+		file mkdir ${worksrcpath}/macosx_lib
+		eval file rename [glob ${worksrcpath}/macosx_bin/*.a] ${worksrcpath}/macosx_lib
+		eval file rename [glob ${worksrcpath}macosx_bin/*.so] ${worksrcpath}/macosx_lib
+		file mkdir ${worksrcpath}/macosx_include
 		eval file rename [glob macosx_bin/*.h] macosx_include
-		file mkdir macosx_share
-		eval file rename [glob macosx_bin/*.jpg] macosx_share
-		eval file rename [glob macosx_bin/*.txt] macosx_share
+		file mkdir ${worksrcpath}/macosx_share
+		eval file rename [glob ${worksrcpath}/macosx_bin/*.jpg] ${worksrcpath}/macosx_share
+		eval file rename [glob ${worksrcpath}/macosx_bin/*.txt] ${worksrcpath}/macosx_share
 
 # Delete files that conflict with other ports
-		eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
-			macosx_bin/whirlgif
-		file rename macosx_bin/abut macosx_bin/afni_abut
+		eval file delete ${worksrcpath}/macosx_bin/cjpeg ${worksrcpath}/macosx_bin/djpeg \
+			${worksrcpath}/macosx_bin/whirlgif
+		file rename ${worksrcpath}/macosx_bin/abut ${worksrcpath}/macosx_bin/afni_abut
 
 # Install binaries and scripts
 		xinstall -d -m 755 ${destroot}${prefix}/bin
-		eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
+		eval xinstall -m 755 [glob ${worksrcpath}/macosx_bin/*] ${destroot}${prefix}/bin
 # Install libraries and plugins
 		xinstall -d -m 755 ${destroot}${prefix}/lib/afni
-		eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
+		eval xinstall -m 644 [glob ${worksrcpath}/macosx_lib/*] ${destroot}${prefix}/lib/afni
 # Install headers
 		xinstall -d -m 755 ${destroot}${prefix}/include/afni
-		eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
+		eval xinstall -m 644 [glob ${worksrcpath}/macosx_include/*] ${destroot}${prefix}/include/afni
 
 # Install miscellaneous files
 		xinstall -d -m 755 ${destroot}${prefix}/share/afni
-		eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
+		eval xinstall -m 644 [glob ${worksrcpath}/macosx_share/*] ${destroot}${prefix}/share/afni
 		eval xinstall -m 644 [glob ${distpath}/TTatlas*] ${destroot}${prefix}/share/afni
-		cd ${workpath}
-		eval xinstall -m 644 [glob CA_EZ_v1.5-July3107/*] ${destroot}${prefix}/share/afni
+		eval xinstall -m 644 [glob ${workpath}/CA_EZ_v1.5-July3107/*] ${destroot}${prefix}/share/afni
 
 # Install docs
 		xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
-		eval xinstall -m 644 [glob afni_src/README.*] ${destroot}${prefix}/share/doc/afni
+		eval xinstall -m 644 [glob ${worksrcpath}/README.*] ${destroot}${prefix}/share/doc/afni
 		xinstall -d -m 755 ${destroot}${prefix}/share/man/man1
 		eval xinstall -m 644 ${workpath}/afni.1 ${destroot}${prefix}/share/man/man1
 		xinstall -d -m 755 ${destroot}${prefix}/etc/mri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091015/d0c5ff54/attachment-0001.html>


More information about the macports-changes mailing list