[88551] trunk/dports/math/SuiteSparse/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jan 3 22:19:04 PST 2012


Revision: 88551
          http://trac.macports.org/changeset/88551
Author:   ryandesign at macports.org
Date:     2012-01-03 22:19:03 -0800 (Tue, 03 Jan 2012)
Log Message:
-----------
SuiteSparse: whitespace changes and reformatting to match modeline

Modified Paths:
--------------
    trunk/dports/math/SuiteSparse/Portfile

Modified: trunk/dports/math/SuiteSparse/Portfile
===================================================================
--- trunk/dports/math/SuiteSparse/Portfile	2012-01-04 06:06:10 UTC (rev 88550)
+++ trunk/dports/math/SuiteSparse/Portfile	2012-01-04 06:19:03 UTC (rev 88551)
@@ -1,32 +1,25 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-name		SuiteSparse
-version     3.7.0
-categories	math science
-license     GPL-2+ LGPL-2.1+
-maintainers     nomaintainer
-platforms	darwin
-description	Sparse matrix routines
-long_description \
-		SuiteSparse is a single archive that contains all packages \
-		authored by Tim Davis.
+name                SuiteSparse
+version             3.7.0
+categories          math science
+platforms           darwin
+maintainers         nomaintainer
+license             GPL-2+ LGPL-2.1+
 
-homepage	http://www.cise.ufl.edu/research/sparse/SuiteSparse/
-master_sites	http://www.cise.ufl.edu/research/sparse/SuiteSparse/
-distname	SuiteSparse-$version
-worksrcdir	${name}
+description         Sparse matrix routines
 
-use_parallel_build	no
+long_description    SuiteSparse is a single archive that contains all packages \
+                    authored by Tim Davis.
 
-# cflags recommended for Macs in ${worksrcpath}/UFconfig/UFconfig.mk
-configure.optflags -O3 -fno-common -fexceptions
+homepage            http://www.cise.ufl.edu/research/sparse/SuiteSparse/
+master_sites        http://www.cise.ufl.edu/research/sparse/SuiteSparse/
+distname            SuiteSparse-$version
+worksrcdir          ${name}
 
-use_configure	no
-build.target
-
 checksums           md5     e7579ba6ab4265b751753649cb63664d \
                     sha1    a1f57cb7f6bbea5d33911c6ca6acd77ba7dfa117 \
                     rmd160  981f8645000ab880d1208a6a543dc4c0d2ae8e4c
@@ -34,6 +27,11 @@
 patchfiles          makefiles.patch \
                     UFconfig_UFconfig.mk-patch
 
+use_configure       no
+
+# cflags recommended for Macs in ${worksrcpath}/UFconfig/UFconfig.mk
+configure.optflags  -O3 -fno-common -fexceptions
+
 variant universal {}
 if {[variant_isset universal]} {
     append configure.cflags " " ${configure.universal_cflags}
@@ -41,68 +39,67 @@
     append configure.cflags " " ${configure.cc_archflags}
 }
 
-variant metis description { Use METIS (not distributable) } {
-    depends_build         port:metis
-    patchfiles-delete     UFconfig_UFconfig.mk-patch
-}
+use_parallel_build  no
 
+build.target
+
 post-patch {
     if {[variant_isset metis]} {
         # Use the MacPorts version rather than extracting copy in source dir
-
+        
         # -I$(METIS_PATH)/Lib -> -I$(METIS_PATH)/include
         reinplace \
             "s|-I\$(METIS_PATH)/Lib|-I\$(METIS_PATH)/include|g" \
             ${worksrcpath}/CHOLMOD/Lib/Makefile
-
+        
         # #include "metis.h" -> #include <metis/metis.h>
         reinplace \
             "s|#include \"metis.h\"|#include <metis/metis.h>|g" \
             ${worksrcpath}/CHOLMOD/Partition/cholmod_metis.c
     }
-
-	# klu_version.h defines Real and Imag which conflicts with math.h on ppc
-	reinplace -E \
-		"s|(\[^a-zA-Z\])Real(\[^a-zA-Z\])|\\1RealPart\\2|g" \
-		${worksrcpath}/KLU/Include/klu_version.h
-	reinplace -E \
-		"s|(\[^a-zA-Z\])Imag(\[^a-zA-Z\])|\\1ImagPart\\2|g" \
-		${worksrcpath}/KLU/Include/klu_version.h
-        # ranlib after ar
-        reinplace "s|ccolamd_global\.o|ccolamd_global.o\\
-	- \$(RANLIB) libccolamd.a|" ${worksrcpath}/CCOLAMD/Lib/Makefile
-        reinplace "s|colamd_global\.o|colamd_global.o\\
-	- \$(RANLIB) libcolamd.a|" ${worksrcpath}/COLAMD/Lib/Makefile
+    
+    # klu_version.h defines Real and Imag which conflicts with math.h on ppc
+    reinplace -E \
+        "s|(\[^a-zA-Z\])Real(\[^a-zA-Z\])|\\1RealPart\\2|g" \
+        ${worksrcpath}/KLU/Include/klu_version.h
+    reinplace -E \
+        "s|(\[^a-zA-Z\])Imag(\[^a-zA-Z\])|\\1ImagPart\\2|g" \
+        ${worksrcpath}/KLU/Include/klu_version.h
+    # ranlib after ar
+    reinplace "s|ccolamd_global\.o|ccolamd_global.o\\
+        - \$(RANLIB) libccolamd.a|" ${worksrcpath}/CCOLAMD/Lib/Makefile
+    reinplace "s|colamd_global\.o|colamd_global.o\\
+        - \$(RANLIB) libcolamd.a|" ${worksrcpath}/COLAMD/Lib/Makefile
 }
 
-post-configure	{
-	# SuiteSparse does not use configure, so the variables must be
-	#    set manually.
-	# This is done in post-configure so that ${configure.cc} is
-	#    set to its default value.
-	reinplace -E \
-		"s|^CC = .*$|CC = ${configure.cc}|g" \
-		${worksrcpath}/UFconfig/UFconfig.mk \
-		${worksrcpath}/CSparse/Demo/Makefile \
-		${worksrcpath}/CSparse/Lib/Makefile
-	reinplace -E \
-		"s|^CPLUSPLUS = .*$|CPLUSPLUS = ${configure.cxx}|g" \
-		${worksrcpath}/UFconfig/UFconfig.mk
-	reinplace -E \
-		"s|^CFLAGS = .*$|CFLAGS = ${configure.cflags}|g" \
-		${worksrcpath}/UFconfig/UFconfig.mk
-	reinplace -E \
-		"s|^CFLAGS = -O|CFLAGS = ${configure.cflags}|g" \
-		${worksrcpath}/CSparse/Demo/Makefile \
-		${worksrcpath}/CSparse/Lib/Makefile
-	reinplace -E \
-		"s|^BLAS = .*$|BLAS = -framework Accelerate|g" \
-		${worksrcpath}/UFconfig/UFconfig.mk
-	reinplace -E \
-		"s|^LAPACK = .*$|LAPACK = -framework Accelerate|g" \
-		${worksrcpath}/UFconfig/UFconfig.mk
+post-configure {
+    # SuiteSparse does not use configure, so the variables must be
+    #    set manually.
+    # This is done in post-configure so that ${configure.cc} is
+    #    set to its default value.
+    reinplace -E \
+        "s|^CC = .*$|CC = ${configure.cc}|g" \
+        ${worksrcpath}/UFconfig/UFconfig.mk \
+        ${worksrcpath}/CSparse/Demo/Makefile \
+        ${worksrcpath}/CSparse/Lib/Makefile
+    reinplace -E \
+        "s|^CPLUSPLUS = .*$|CPLUSPLUS = ${configure.cxx}|g" \
+        ${worksrcpath}/UFconfig/UFconfig.mk
+    reinplace -E \
+        "s|^CFLAGS = .*$|CFLAGS = ${configure.cflags}|g" \
+        ${worksrcpath}/UFconfig/UFconfig.mk
+    reinplace -E \
+        "s|^CFLAGS = -O|CFLAGS = ${configure.cflags}|g" \
+        ${worksrcpath}/CSparse/Demo/Makefile \
+        ${worksrcpath}/CSparse/Lib/Makefile
+    reinplace -E \
+        "s|^BLAS = .*$|BLAS = -framework Accelerate|g" \
+        ${worksrcpath}/UFconfig/UFconfig.mk
+    reinplace -E \
+        "s|^LAPACK = .*$|LAPACK = -framework Accelerate|g" \
+        ${worksrcpath}/UFconfig/UFconfig.mk
     reinplace "s|(CC)|(CC) \$(CFLAGS)|" ${worksrcpath}/CXSparse/Demo/Makefile
-
+    
     if {[variant_isset metis]} {
         reinplace -E \
             "s|^METIS_PATH = .*$|METIS_PATH = ${prefix}|g" \
@@ -113,26 +110,30 @@
     }
 }
 
-destroot	{
-	# SuiteSparse does not support "make install"
-	
-	eval xinstall -m 644 \
-		[glob ${worksrcpath}/*/Lib/*.a] \
-		${destroot}${prefix}/lib
-	
-	xinstall -m 755 -d ${destroot}${prefix}/include/ufsparse
-	eval xinstall -m 644 \
-		[glob ${worksrcpath}/*/Include/*.h] \
-		[glob ${worksrcpath}/*/Include/*.hpp] \
-		${worksrcpath}/UFconfig/UFconfig.h \
-		${destroot}${prefix}/include/ufsparse
-	
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-	eval xinstall -m 644 \
-		[glob ${worksrcpath}/*/Doc/*.pdf] \
-		${destroot}${prefix}/share/doc/${name}
+destroot {
+    # SuiteSparse does not support "make install"
+    
+    eval xinstall -m 644 \
+        [glob ${worksrcpath}/*/Lib/*.a] \
+        ${destroot}${prefix}/lib
+    
+    xinstall -m 755 -d ${destroot}${prefix}/include/ufsparse
+    eval xinstall -m 644 \
+        [glob ${worksrcpath}/*/Include/*.h] \
+        [glob ${worksrcpath}/*/Include/*.hpp] \
+        ${worksrcpath}/UFconfig/UFconfig.h \
+        ${destroot}${prefix}/include/ufsparse
+    
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    eval xinstall -m 644 \
+        [glob ${worksrcpath}/*/Doc/*.pdf] \
+        ${destroot}${prefix}/share/doc/${name}
 }
 
-livecheck.type	regex
-livecheck.regex	${name}-(\\d+(\\.\\d+)*)${extract.suffix}
+variant metis description {Use METIS (not distributable)} {
+    depends_build       port:metis
+    patchfiles-delete   UFconfig_UFconfig.mk-patch
+}
 
+livecheck.type      regex
+livecheck.regex     ${name}-(\\d+(\\.\\d+)*)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120103/1940727a/attachment.html>


More information about the macports-changes mailing list