[143723] trunk/dports/math/arpack

mmoll at macports.org mmoll at macports.org
Fri Dec 18 15:39:53 PST 2015


Revision: 143723
          https://trac.macports.org/changeset/143723
Author:   mmoll at macports.org
Date:     2015-12-18 15:39:53 -0800 (Fri, 18 Dec 2015)
Log Message:
-----------
math/arpack: update to version 3.3.0, clean up portfile, remove unnecessary patches, remove openblas variant because arpack doesn't compile with openblas currently. closes #50073

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

Removed Paths:
-------------
    trunk/dports/math/arpack/files/

Modified: trunk/dports/math/arpack/Portfile
===================================================================
--- trunk/dports/math/arpack/Portfile	2015-12-18 19:46:35 UTC (rev 143722)
+++ trunk/dports/math/arpack/Portfile	2015-12-18 23:39:53 UTC (rev 143723)
@@ -4,10 +4,11 @@
 PortSystem          1.0
 PortGroup           muniversal 1.0
 PortGroup           mpi 1.0
+PortGroup           github 1.0
 
+github.setup        opencollab arpack-ng 3.3.0
 name                arpack
-version             3.1.5
-revision            1
+revision            0
 categories          math
 license             BSD
 platforms           darwin
@@ -16,20 +17,16 @@
 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
 worksrcdir          ${name}-ng-${version}
 
-checksums           rmd160  ef27775099bb5aecc99ccf8190c1136eaa907982 \
-                    sha256  a269ce7806bc77ced31ef794d23c3e3aff8543b65550fd7e3e24660f2a79d515
+checksums           rmd160  76f87a65f9c6e6a2a8d5e31acc2e404fd755b473 \
+                    sha256  2d3d0d802fb60a26502c7cace31ef0066ede2b00c193fb2bca437ee54185b617
 
 mpi.setup           require_fortran
 
+use_autoreconf      yes
 configure.args      home=${worksrcpath} --disable-mpi
 
-configure.optflags-replace -Os -O2
-
 if {![variant_isset universal]} {
     if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
         configure.fflags-append -m64
@@ -63,46 +60,30 @@
     set universal_archs_supported "ppc ppc64"
 }
 
-variant accelerate conflicts atlas openblas description {build with Accelerate framework} {
+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/
     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 {[mpi_variant_isset]} {
-        patchfiles-append patch-PARPACK-cdot-and-zdot.diff
-    }
 }
 
-variant atlas conflicts accelerate openblas description {build with atlas} {
+variant atlas conflicts accelerate description {build with atlas} {
     depends_lib-append port:atlas
     configure.args-append --with-blas="-L${prefix}/lib -lsatlas"
 }
 
-variant openblas conflicts accelerate atlas description {build with openblas} {
-    depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
-    configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
-}
+# OpenBlas doesn't appear to have the cheev function.
+# Renable variant when it does, add variant conflicts, and update default_variant logic below
+# variant openblas conflicts accelerate atlas description {build with openblas} {
+#     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
+#     configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
+# }
 
-if {![variant_isset atlas] && ![variant_isset openblas]} {
+if {![variant_isset atlas]}
     default_variants +accelerate
 }
 
 post-destroot {
     reinplace "s|/usr|${prefix}|g" ${destroot}${prefix}/lib/pkgconfig/arpack.pc
-
-    if {[variant_isset openmpi] || [variant_isset mpich]} {
-       delete ${destroot}${prefix}/bin/pcndrv1
-       delete ${destroot}${prefix}/bin/pdndrv1
-       delete ${destroot}${prefix}/bin/pdndrv3
-       delete ${destroot}${prefix}/bin/pdsdrv1
-       delete ${destroot}${prefix}/bin/psndrv3
-       delete ${destroot}${prefix}/bin/pssdrv1
-       delete ${destroot}${prefix}/bin/pzndrv1
-    }
 }
-
-livecheck.type  regex
-livecheck.url   http://forge.scilab.org/index.php/p/arpack-ng/downloads/
-livecheck.regex ${name}-ng (\[0-9.\]+\[0-9\])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151218/3a76b6bd/attachment.html>


More information about the macports-changes mailing list