[116397] trunk/dports/math/arpack/Portfile

sean at macports.org sean at macports.org
Thu Jan 23 12:16:05 PST 2014


Revision: 116397
          https://trac.macports.org/changeset/116397
Author:   sean at macports.org
Date:     2014-01-23 12:16:05 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
arpack: add modeline and format whitespace

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

Modified: trunk/dports/math/arpack/Portfile
===================================================================
--- trunk/dports/math/arpack/Portfile	2014-01-23 20:16:01 UTC (rev 116396)
+++ trunk/dports/math/arpack/Portfile	2014-01-23 20:16:05 UTC (rev 116397)
@@ -1,19 +1,20 @@
+# -*- 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
-PortGroup  muniversal 1.0
-PortGroup  active_variants 1.1
+PortSystem          1.0
+PortGroup           muniversal 1.0
+PortGroup           active_variants 1.1
 
-name          arpack
-version       3.1.3
-categories    math
-license       BSD
-platforms     darwin
-maintainers		openmaintainer mmoll
-description		Package for solving large-scale eigenvalue problems
-long_description  \
-    ARPACK is a collection of Fortran77 subroutines designed to solve large \
-    scale eigenvalue problems. Parallel ARPACK (PARPACK) is included if built with an MPI variant.
+name                arpack
+version             3.1.3
+categories          math
+license             BSD
+platforms           darwin
+maintainers         openmaintainer mmoll
+description         Package for solving large-scale eigenvalue problems
+long_description    ARPACK is a collection of Fortran77 subroutines designed to \
+                    solve large scale eigenvalue problems. Parallel ARPACK (PARPACK) \
+                    is included if built with an MPI variant.
 homepage            http://forge.scilab.org/index.php/p/arpack-ng
 master_sites        ${homepage}/downloads/get
 distfiles           arpack-ng-${version}.tar.gz
@@ -22,28 +23,30 @@
                     rmd160  30a3b8a707417afeb3f8a794ee3aa0160fa3e745
 worksrcdir          ${name}-ng-${version}
 
-configure.args-append home=${worksrcpath} --disable-mpi
+configure.args      home=${worksrcpath} --disable-mpi
+
 if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
     configure.args-append FFLAGS='-O2 -m64'
 } else {
     configure.args-append FFLAGS='-O2 -m32'
 }
+
 # LDFLAGS needs to be cleared to avoid it having a "-arch" option, considered illegal by gfortran
 # also, if it has ${prefix}/lib it will prevent +accelerate from working if atlas is present.
 configure.args-append LDFLAGS=''
 
 pre-configure {
-   if {${os.platform} eq "darwin" && ${os.major} < 9} {
-	ui_error "${name} ${version} requires Mac OS X 10.5 or greater"
-	return -code error "incompatible Mac OS X version"
-   }
+    if {${os.platform} eq "darwin" && ${os.major} < 9} {
+        ui_error "${name} ${version} requires Mac OS X 10.5 or greater"
+        return -code error "incompatible Mac OS X version"
+    }
 
-   if {[variant_isset openmpi]} {
-      # see g95 variant below for explanation
-      if { [active_variants openmpi g95] } {
-        configure.args-append --disable-shared
-      }
-   }
+    if {[variant_isset openmpi]} {
+        # see g95 variant below for explanation
+        if { [active_variants openmpi g95] } {
+            configure.args-append --disable-shared
+        }
+    }
 }
 
 # Fortran compilers can not cross-compile
@@ -100,21 +103,24 @@
 
 if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] \
    && ![variant_isset gcc47] && ![variant_isset g95] && ![variant_isset openmpi] && ![variant_isset mpich]} {
-	default_variants      +gcc48
+    default_variants      +gcc48
 }
 
 variant accelerate conflicts atlas description {build with Accelerate framework} {
-    # the change of LDFLAGS is required to avoid linking against the ATLAS ones if they are present;
-    # if we specify /usr/lib/libblas.dylib directly, the linking fails. http://forge.scilab.org/index.php/p/arpack-ng/issues/1220/
+    # the change of LDFLAGS is required to avoid linking against the ATLAS ones
+    # if they are present; if we specify /usr/lib/libblas.dylib directly, the
+    # linking fails. http://forge.scilab.org/index.php/p/arpack-ng/issues/1220/
     configure.args-delete  LDFLAGS=''
     configure.args-append  LDFLAGS='/usr/lib/libblas.dylib /usr/lib/liblapack.dylib' --with-blas="-lblas -llapack"
     patchfiles-append      patch-ARPACK-cdot-and-zdot.diff
     if {[variant_isset openmpi] || [variant_isset mpich]} {
         patchfiles-append patch-PARPACK-cdot-and-zdot.diff
-	# PARPACK unwisely uses 'second' from LAPACK (not provided by Accelerate) instead of internal 'arscnd' like ARPACK
-        # so, we make a 'second' which wraps 'arscnd'. Really, 'second' should just be replaced in PARPACK source.
+        # PARPACK unwisely uses 'second' from LAPACK (not provided by
+        # Accelerate) instead of internal 'arscnd' like ARPACK so, we make a
+        # 'second' which wraps 'arscnd'. Really, 'second' should just be
+        # replaced in PARPACK source.
         # http://forge.scilab.org/index.php/p/arpack-ng/issues/1245/
-	patchfiles-append patch-UTIL-second_NONE.f.diff
+        patchfiles-append patch-UTIL-second_NONE.f.diff
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/f982b271/attachment.html>


More information about the macports-changes mailing list