[61084] trunk/dports/science/cdf/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Dec 1 12:03:47 PST 2009


Revision: 61084
          http://trac.macports.org/changeset/61084
Author:   ryandesign at macports.org
Date:     2009-12-01 12:03:45 -0800 (Tue, 01 Dec 2009)
Log Message:
-----------
cdf: whitespace changes / reformatting only

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

Modified: trunk/dports/science/cdf/Portfile
===================================================================
--- trunk/dports/science/cdf/Portfile	2009-12-01 19:55:07 UTC (rev 61083)
+++ trunk/dports/science/cdf/Portfile	2009-12-01 20:03:45 UTC (rev 61084)
@@ -1,70 +1,72 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem              1.0
 
-name		cdf
-epoch		1
-version		3.3.0
-set my_branch	[join [lrange [split ${version} .] 0 1] ""]
-set my_version	${my_branch}_[lindex [split ${version} .] 2]
-maintainers	nomaintainer
-platforms	darwin
-categories	science
+name                    cdf
+epoch                   1
+version                 3.3.0
+set my_branch           [join [lrange [split ${version} .] 0 1] ""]
+set my_version          ${my_branch}_[lindex [split ${version} .] 2]
+maintainers             nomaintainer
+platforms               darwin
+categories              science
 
-description	CDF: Common Data Format
-long_description	\
-		The Common Data Format (CDF) is a self-describing data	\
-		format for the storage and manipulation of scalar and	\
-		multidimensional data in a platform and discipline	\
-		independent fashion. 
+description             CDF: Common Data Format
 
-homepage	http://cdf.gsfc.nasa.gov/
-master_sites	ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/${name}${my_version}/unix \
-		ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/obsolete/${name}${my_branch}/${name}${my_version}/unix
+long_description        The Common Data Format (CDF) is a self-describing \
+                        data format for the storage and manipulation of \
+                        scalar and multidimensional data in a platform and \
+                        discipline independent fashion.
 
-distname	${name}${my_version}-dist
-extract.suffix	-all${extract.suffix}
+homepage                http://cdf.gsfc.nasa.gov/
+master_sites            ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/${name}${my_version}/unix \
+                        ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/obsolete/${name}${my_branch}/${name}${my_version}/unix
 
-checksums	md5     3ce6409c616675611cb8050c0496b071 \
-		sha1    8ae0a2585a580394a41a746ac53808a408fa0c01 \
-		rmd160  280ef2b91f8b39df7daa4149202965f07dbb3118
+fetch.use_epsv          no
+distname                ${name}${my_version}-dist
+extract.suffix          -all${extract.suffix}
 
-configure.compiler	macports-gcc-4.4
-depends_lib	port:gcc44 \
-		port:ncurses
+checksums               md5     3ce6409c616675611cb8050c0496b071 \
+                        sha1    8ae0a2585a580394a41a746ac53808a408fa0c01 \
+                        rmd160  280ef2b91f8b39df7daa4149202965f07dbb3118
 
-fetch.use_epsv	no
-use_configure	no
-use_parallel_build	no
+configure.compiler      macports-gcc-4.4
+depends_lib             port:gcc44 \
+                        port:ncurses
 
-post-patch	{
-		  reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
-		  reinplace "s|-lgcc|`${configure.cc} -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
-		  reinplace "s|\\\$(INSTALLDIR)/bin/definitions\\.\\(\[BCK\]\\)|${prefix}/bin/definitions.\\1|" ${worksrcpath}/Makefile
-		}
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+    reinplace "s|-lgcc|`${configure.cc} -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
+    reinplace "s|\\\$(INSTALLDIR)/bin/definitions\\.\\(\[BCK\]\\)|${prefix}/bin/definitions.\\1|" ${worksrcpath}/Makefile
+}
 
-build.args	FORTRAN=yes
+use_configure           no
 
+use_parallel_build      no
+
+build.args              FORTRAN=yes
+
 platform darwin {
-	patchfiles-append patch-Makefile
-	build.args-append OS=macosx
+    patchfiles-append patch-Makefile
+    build.args-append OS=macosx
 }
 
 if {[info exists build_arch]} {
-	build.args-append ENV=${configure.build_arch}
+    build.args-append ENV=${configure.build_arch}
 }
 
-pre-build	{
-		  build.args-append CC=${configure.cc} FC=${configure.fc}
-		}
+pre-build {
+    build.args-append CC=${configure.cc} FC=${configure.fc}
+}
 
-destroot.destdir INSTALLDIR=${destroot}${prefix}
+destroot.destdir        INSTALLDIR=${destroot}${prefix}
 
-post-destroot	{
-		  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.B \
-			  ${destroot}${prefix}/bin/definitions.C \
-			  ${destroot}${prefix}/bin/definitions.K
+post-destroot {
+    reinplace "s|${destroot}${prefix}|${prefix}|" \
+        ${destroot}${prefix}/bin/definitions.B \
+        ${destroot}${prefix}/bin/definitions.C \
+        ${destroot}${prefix}/bin/definitions.K
+    
+    system "install_name_tool -id ${prefix}/lib/libcdf.dylib ${destroot}${prefix}/lib/libcdf.dylib"
+}
 
-		  system "install_name_tool -id ${prefix}/lib/libcdf.dylib ${destroot}${prefix}/lib/libcdf.dylib"
-		}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091201/47a03ab8/attachment-0001.html>


More information about the macports-changes mailing list