[29575] trunk/dports/aqua/aquaterm/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 30 07:37:26 PDT 2007


Revision: 29575
          http://trac.macosforge.org/projects/macports/changeset/29575
Author:   yves at macports.org
Date:     2007-09-30 07:37:26 -0700 (Sun, 30 Sep 2007)

Log Message:
-----------
Remove cd command

Modified Paths:
--------------
    trunk/dports/aqua/aquaterm/Portfile

Modified: trunk/dports/aqua/aquaterm/Portfile
===================================================================
--- trunk/dports/aqua/aquaterm/Portfile	2007-09-30 11:54:22 UTC (rev 29574)
+++ trunk/dports/aqua/aquaterm/Portfile	2007-09-30 14:37:26 UTC (rev 29575)
@@ -4,7 +4,6 @@
 
 name			aquaterm
 version			1.0.1
-revision		0
 categories		aqua math science
 maintainers		davidm at astro.berkeley.edu
 description		AquaTerm is a viewer that displays vector graphics on Mac OS X
@@ -30,25 +29,29 @@
 }
 
 configure {
-	cd ${workpath}/${name}
 	reinplace "s|/Users/per/Documents/Source/aquaterm/||" \
-		AquaTerm.pbproj/project.pbxproj
+		${workpath}/${name}/AquaTerm.pbproj/project.pbxproj
 	reinplace "s|/tmp/AquaTerm.dst||" \
-		AquaTerm.pbproj/project.pbxproj
+		${workpath}/${name}/AquaTerm.pbproj/project.pbxproj
 	reinplace "s|/usr/local/lib|${prefix}/lib|" \
-		AquaTerm.pbproj/project.pbxproj
-	file mkdir build/include
-	system "ln -s ../.. build/include/aquaterm"
+		${workpath}/${name}/AquaTerm.pbproj/project.pbxproj
+	file mkdir ${workpath}/${name}/build/include
+	system "cd ${workpath}/${name} &&
+	    ln -s ../.. build/include/aquaterm"
 
-	cd ${workpath}/adapters
 	reinplace "s|/usr/local|${prefix}|g" \
-		pgplot/ChangeLog pgplot/g77_gcc_AQT.conf pgplot/xlf_gcc_AQT.conf
+		${workpath}/adapters/pgplot/ChangeLog \
+		${workpath}/adapters/pgplot/g77_gcc_AQT.conf \
+		${workpath}/adapters/pgplot/xlf_gcc_AQT.conf
 	reinplace "s|\$(HOME)|${prefix}|g" \
-		c/Makefile fortran/Makefile
+		${workpath}/adapters/c/Makefile \
+		${workpath}/adapters/fortran/Makefile
 	reinplace "s|/*<PREFIX>|${prefix}|g" \
-		pgplot/g77_cc_AQT.conf pgplot/g77_gcc_AQT.conf pgplot/xlf_gcc_AQT.conf
+		${workpath}/adapters/pgplot/g77_cc_AQT.conf \
+		${workpath}/adapters/pgplot/g77_gcc_AQT.conf \
+		${workpath}/adapters/pgplot/xlf_gcc_AQT.conf
 	reinplace "s|/sw|${prefix}|g" \
-		pgplot/ReadMe
+		${workpath}/adapters/pgplot/ReadMe
 }
 
 set xcodebuilddir		build
@@ -77,26 +80,29 @@
 }
 
 destroot {
-	cd ${workpath}/${name}
+	xinstall -d -m 0755 ${destroot}/Applications/MacPorts
+	xinstall -d -m 0755 ${destroot}/Library/Frameworks
 	xinstall -d -m 0755 ${destroot}${prefix}/include/${name}
-	xinstall -m 0644 AQTAdapter.h aquaterm.h \
+	xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
+
+	xinstall -m 0644 -W ${workpath}/${name} AQTAdapter.h aquaterm.h \
 		${destroot}${prefix}/include/${name}
 
-	cd ${workpath}/${name}/${xcodebuilddir}
-	system "ln AquaTerm.framework/Versions/Current/AquaTerm libaquaterm.${version}.dylib"
-	xinstall -m 0755 libaquaterm.${version}.dylib ${destroot}${prefix}/lib
-	system "ln -s libaquaterm.${version}.dylib \
-		${destroot}${prefix}/lib/libaquaterm.dylib"
-	system "ln -s libaquaterm.${version}.dylib \
-		${destroot}${prefix}/lib/libaquaterm.1.dylib"
-	xinstall -d -m 0755 ${destroot}/Applications/MacPorts
-	system "cp -R AquaTerm.app ${destroot}/Applications/MacPorts"
-	xinstall -d -m 0755 ${destroot}/Library/Frameworks
-	system "cp -R AquaTerm.framework ${destroot}/Library/Frameworks"
+	system "cd ${workpath}/${name}/${xcodebuilddir} &&
+	    ln AquaTerm.framework/Versions/Current/AquaTerm libaquaterm.${version}.dylib &&
+	    ln -s libaquaterm.${version}.dylib ${destroot}${prefix}/lib/libaquaterm.dylib &&
+	    ln -s libaquaterm.${version}.dylib ${destroot}${prefix}/lib/libaquaterm.1.dylib"
+	    
+	xinstall -m 0755 ${workpath}/${name}/${xcodebuilddir}/libaquaterm.${version}.dylib \
+	    ${destroot}${prefix}/lib
+	copy ${workpath}/${name}/${xcodebuilddir}/AquaTerm.app \
+	    ${destroot}/Applications/MacPorts
+	copy ${workpath}/${name}/${xcodebuilddir}/AquaTerm.framework \
+	    ${destroot}/Library/Frameworks
 
-	cd ${workpath}/adapters
-	xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
-	system "cp -R c fortran gnuplot pgplot plplot \
-		${destroot}${prefix}/share/${name}"
+	
+	foreach f {c fortran gnuplot pgplot plplot} {
+	    copy ${workpath}/adapters/$f ${destroot}${prefix}/share/${name}
+	}
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070930/007612fe/attachment.html


More information about the macports-changes mailing list