[105035] trunk/dports/python/py-scipy/Portfile

stromnov at macports.org stromnov at macports.org
Mon Apr 8 06:57:38 PDT 2013


Revision: 105035
          https://trac.macports.org/changeset/105035
Author:   stromnov at macports.org
Date:     2013-04-08 06:57:37 -0700 (Mon, 08 Apr 2013)
Log Message:
-----------
py-scipy: fix whitespaces

Modified Paths:
--------------
    trunk/dports/python/py-scipy/Portfile

Modified: trunk/dports/python/py-scipy/Portfile
===================================================================
--- trunk/dports/python/py-scipy/Portfile	2013-04-08 12:40:06 UTC (rev 105034)
+++ trunk/dports/python/py-scipy/Portfile	2013-04-08 13:57:37 UTC (rev 105035)
@@ -22,116 +22,114 @@
 python.versions         24 25 26 27 31 32
 
 if {${subport} != ${name}} {
+    depends_lib-append      port:py${python.version}-numpy \
+                            port:py${python.version}-nose \
+                            port:SuiteSparse \
+                            port:swig-python
 
-depends_lib-append      port:py${python.version}-numpy \
-                        port:py${python.version}-nose \
-                        port:SuiteSparse \
-                        port:swig-python
+    worksrcdir              ${distname}
 
-worksrcdir              ${distname}
+    build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib"
 
-build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+    destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib"
 
-destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+    patchfiles              umfpack_extra_libs.patch
 
-patchfiles              umfpack_extra_libs.patch
+    post-patch {
+        reinplace "s|@@MP_PREFIX@@|${prefix}|g" ${worksrcpath}/site.cfg
+        reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/lib/blas/fblaswrap_veclib_c.c.src
+        reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/linalg/src/fblaswrap_veclib_c.c
+        reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/veclib_cabi_c.c
+        reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/sparse/linalg/isolve/iterative/FWRAPPERS/veclib_cabi_c.c
+    }
 
-post-patch {
-  reinplace "s|@@MP_PREFIX@@|${prefix}|g" ${worksrcpath}/site.cfg
-  reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/lib/blas/fblaswrap_veclib_c.c.src
-  reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/linalg/src/fblaswrap_veclib_c.c
-  reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/veclib_cabi_c.c
-  reinplace "s|vecLib|Accelerate|g" ${worksrcpath}/scipy/sparse/linalg/isolve/iterative/FWRAPPERS/veclib_cabi_c.c
-}
+    variant atlas description "Use MacPorts ATLAS libraries" {
+        depends_lib-append  port:atlas
 
-variant atlas description "Use MacPorts ATLAS libraries" {
-    depends_lib-append      port:atlas
-
-    build.env-append        ATLAS=${prefix}/lib \
+        build.env-append    ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
 
-    destroot.env-append     ATLAS=${prefix}/lib \
+        destroot.env-append ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
-}
+    }
 
-variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description "Use gcc 4.3 tool chain for building" {
-  configure.compiler    macports-gcc-4.3
-  depends_lib-append    port:gcc43
-  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
-  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.3 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
-  build.cmd-append      ${fc_options} ${config_options}
-  destroot.cmd-append   ${fc_options} ${config_options}
+    variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description "Use gcc 4.3 tool chain for building" {
+        configure.compiler  macports-gcc-4.3
+        depends_lib-append  port:gcc43
+        set fc_options      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
+        set config_options  "config --cc ${prefix}/bin/gcc-mp-4.3 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+        build.cmd-append    ${fc_options} ${config_options}
+        destroot.cmd-append ${fc_options} ${config_options}
 
-  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.3" \
-                        CXX="${prefix}/bin/g++-mp-4.3"
-  build.env-append      CC="${prefix}/bin/gcc-mp-4.3" \
-                        CXX="${prefix}/bin/g++-mp-4.3"
-}
+        destroot.env-append CC="${prefix}/bin/gcc-mp-4.3" \
+                            CXX="${prefix}/bin/g++-mp-4.3"
+        build.env-append    CC="${prefix}/bin/gcc-mp-4.3" \
+                            CXX="${prefix}/bin/g++-mp-4.3"
+    }
 
-variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" {
-  configure.compiler    macports-gcc-4.4
-  depends_lib-append    port:gcc44
-  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
-  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.4 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
-  build.cmd-append      ${fc_options} ${config_options}
-  destroot.cmd-append   ${fc_options} ${config_options}
+    variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" {
+        configure.compiler  macports-gcc-4.4
+        depends_lib-append  port:gcc44
+        set fc_options      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
+        set config_options  "config --cc ${prefix}/bin/gcc-mp-4.4 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+        build.cmd-append    ${fc_options} ${config_options}
+        destroot.cmd-append ${fc_options} ${config_options}
 
-  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.4" \
-                        CXX="${prefix}/bin/g++-mp-4.4"
-  build.env-append      CC="${prefix}/bin/gcc-mp-4.4" \
-                        CXX="${prefix}/bin/g++-mp-4.4"
-}
+        destroot.env-append CC="${prefix}/bin/gcc-mp-4.4" \
+                            CXX="${prefix}/bin/g++-mp-4.4"
+        build.env-append    CC="${prefix}/bin/gcc-mp-4.4" \
+                            CXX="${prefix}/bin/g++-mp-4.4"
+    }
 
-variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" {
-  configure.compiler    macports-gcc-4.5
-  depends_lib-append    port:gcc45
-  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
-  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.5 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
-  build.cmd-append      ${fc_options} ${config_options}
-  destroot.cmd-append   ${fc_options} ${config_options}
+    variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" {
+        configure.compiler  macports-gcc-4.5
+        depends_lib-append  port:gcc45
+        set fc_options      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
+        set config_options  "config --cc ${prefix}/bin/gcc-mp-4.5 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+        build.cmd-append    ${fc_options} ${config_options}
+        destroot.cmd-append ${fc_options} ${config_options}
 
-  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.5" \
-                        CXX="${prefix}/bin/g++-mp-4.5"
-  build.env-append      CC="${prefix}/bin/gcc-mp-4.5" \
-                        CXX="${prefix}/bin/g++-mp-4.5"
-}
+        destroot.env-append CC="${prefix}/bin/gcc-mp-4.5" \
+                            CXX="${prefix}/bin/g++-mp-4.5"
+        build.env-append    CC="${prefix}/bin/gcc-mp-4.5" \
+                            CXX="${prefix}/bin/g++-mp-4.5"
+    }
 
-variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" {
-  configure.compiler    macports-gcc-4.6
-  depends_lib-append    port:gcc46
-  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
-  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.6 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
-  build.cmd-append      ${fc_options} ${config_options}
-  destroot.cmd-append   ${fc_options} ${config_options}
+    variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" {
+        configure.compiler  macports-gcc-4.6
+        depends_lib-append  port:gcc46
+        set fc_options      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
+        set config_options  "config --cc ${prefix}/bin/gcc-mp-4.6 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+        build.cmd-append    ${fc_options} ${config_options}
+        destroot.cmd-append ${fc_options} ${config_options}
 
-  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.6" \
-                        CXX="${prefix}/bin/g++-mp-4.6"
-  build.env-append      CC="${prefix}/bin/gcc-mp-4.6" \
-                        CXX="${prefix}/bin/g++-mp-4.6"
-}
+        destroot.env-append CC="${prefix}/bin/gcc-mp-4.6" \
+                            CXX="${prefix}/bin/g++-mp-4.6"
+        build.env-append    CC="${prefix}/bin/gcc-mp-4.6" \
+                            CXX="${prefix}/bin/g++-mp-4.6"
+    }
 
-variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" {
-  configure.compiler    macports-gcc-4.7
-  depends_lib-append    port:gcc47
-  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
-  set config_options    "config --cc ${prefix}/bin/gcc-mp-4.7 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
-  build.cmd-append      ${fc_options} ${config_options}
-  destroot.cmd-append   ${fc_options} ${config_options}
+    variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" {
+        configure.compiler  macports-gcc-4.7
+        depends_lib-append  port:gcc47
+        set fc_options      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
+        set config_options  "config --cc ${prefix}/bin/gcc-mp-4.7 --include-dirs ${prefix}/include --library-dirs ${prefix}/lib"
+        build.cmd-append    ${fc_options} ${config_options}
+        destroot.cmd-append ${fc_options} ${config_options}
 
-  destroot.env-append   CC="${prefix}/bin/gcc-mp-4.7" \
-                        CXX="${prefix}/bin/g++-mp-4.7"
-  build.env-append      CC="${prefix}/bin/gcc-mp-4.7" \
-                        CXX="${prefix}/bin/g++-mp-4.7"
-}
+        destroot.env-append CC="${prefix}/bin/gcc-mp-4.7" \
+                            CXX="${prefix}/bin/g++-mp-4.7"
+        build.env-append    CC="${prefix}/bin/gcc-mp-4.7" \
+                            CXX="${prefix}/bin/g++-mp-4.7"
+    }
 
-if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
-  default_variants      +gcc47
+    if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
+        default_variants    +gcc47
+    }
 }
 
-}
-
 python.add_archflags    no
 universal_variant       no
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130408/6d19cbb0/attachment-0001.html>


More information about the macports-changes mailing list