Ignore:
Timestamp:
Jan 23, 2014, 8:16:13 PM (6 years ago)
Author:
sean@…
Message:

slepc: update to 3.4.3 and use mpi portgroup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/slepc/Portfile

    r115876 r116399  
    33
    44PortSystem          1.0
     5PortGroup           bitbucket 1.0
    56PortGroup           conflicts_build 1.0
    6 PortGroup           active_variants 1.1
     7PortGroup           mpi 1.0
    78
    8 name                slepc
    9 version             3.3-p4
     9mpi.setup
     10mpi.enforce_variant petsc
     11
     12bitbucket.setup     slepc slepc 3.4.3 v
    1013categories          math science
    1114maintainers         sean
     
    2427
    2528platforms           darwin
    26 homepage            http://www.grycap.upv.es/slepc
    27 master_sites        http://www.grycap.upv.es/slepc/download/distrib
    28 distname            ${name}-${version}
    2929universal_variant   no
    3030
    31 checksums           md5     d034e8b894bda374ec330a750428ac3f \
    32                     sha1    49620a9aa6bb502bd773dadee11aa7f98a784ba6 \
    33                     rmd160  0426a86aab0e765618ade3ac8c17548661cbe1f7
     31checksums           rmd160  4f9b2d4137977d87ea7c72fd42acf1005decd07a \
     32                    sha256  85859234a56997ba840d1b57c2fbe44420c4c38faf5553d009f347410d3e239f
    3433
    3534depends_lib-append  port:petsc
     35conflicts_build     slepc
     36use_parallel_build  no
    3637
    3738configure.args      --prefix=${prefix}/lib/petsc
     
    4041destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/petsc
    4142
    42 conflicts_build     slepc
     43variant arpack description {compile with ARPACK support} {
     44    mpi.enforce_variant arpack
     45    mpi.enforce_fortran
    4346
    44 variant arpack description {compile with ARPACK support} {
    45     require_active_variants arpack openmpi
    4647    pre-fetch {
    4748        if {![file exists ${prefix}/lib/libparpack.a]} {
    48             return -code error "Please install the openmpi or mpich2 variant of arpack first."
     49            return -code error "Please install a mpi variant of arpack first."
    4950        }
    5051    }
    51     # This is a rather fragile way to figure out where the fortran library can be
    52     # found that is needed to link against libparpack.a:
    53     set fortrandirs {g95 gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 gcc48}
    54     set fortrandir ""
    55     foreach dir ${fortrandirs} {
    56         if {[file exists ${prefix}/lib/${dir}]} {
    57             set fortrandir ${prefix}/lib/${dir}
    58         }
    59     }
    60     if {${fortrandir} == ""} {
    61         ui_error "Install a fortran compiler by installing one of these ports:"
    62         ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
    63         return -code error "No fortran compiler installed"
    64     }
     52
    6553    depends_lib-append      port:arpack
    66     configure.args-append   --with-arpack-dir=${fortrandir} \
    67                 --with-arpack-flags=-lparpack,-larpack,-lgfortran
     54    configure.args-append   --with-arpack-dir=${prefix} \
     55                            --with-arpack-flags=-lparpack,-larpack
    6856}
    6957
    70 livecheck.type      regex
    71 livecheck.url       http://www.grycap.upv.es/slepc/download/download.htm
    72 livecheck.regex     slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tar.gz
     58# fix install name
     59post-destroot {
     60    system "install_name_tool -id ${prefix}/lib/petsc/lib/libslepc.dylib ${destroot}${prefix}/lib/petsc/lib/libslepc.dylib"
     61}
Note: See TracChangeset for help on using the changeset viewer.