Changeset 97955


Ignore:
Timestamp:
Sep 20, 2012, 8:35:59 PM (12 years ago)
Author:
mmoll@…
Message:

math/petsc: update to 3.3-p3, check whether hdf5-18 is installed with +fortran variant, make sure old petsc version is deactivated before upgrade

File:
1 edited

Legend:

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

    r96223 r97955  
    44
    55name            petsc
    6 version     3.3-p2
     6version     3.3-p3
    77categories  math science
    88maintainers     mmoll
     
    2525universal_variant   no
    2626
    27 checksums           rmd160  200d049d691bce307d576aec27a4af6799e19802 \
    28                     sha256  75c0b127f1ba5077ae9d87d39331fb7cf1258c98ca7fd1dcf0f29f6d29ad3ff5
     27checksums           rmd160  d7c09b2f3fc5bc9780f694774c71e46504181c2a \
     28                    sha256  3ebd56d62bbf97c53e13e6987ce4c9f2bf88156010f21457cb41db247bc57969
    2929
    3030depends_build-append  port:cmake
     
    4545                    --with-yaml-dir=${prefix}
    4646
     47pre-fetch {
     48    if {![file exists ${prefix}/lib/libhdf5_fortran.a]} {
     49        return -code error "Please install hdf5-18 with the +fortran variant enabled first."
     50    }
     51}
     52
    4753pre-configure {
    4854    configure.args-append \
     
    5258        --LDFLAGS="${configure.ldflags}" \
    5359        --CFLAGS="${configure.cflags}" \
    54         --CXXFLAGS="${configure.cxxflags}" \
     60        --CXXFLAGS="${configure.cxxflags}"
     61    if {[file exists ${prefix}/lib/petsc/lib/libpetsc.a]} {
     62        ui_error "petsc must be deactivated before upgrade."
     63        error "Please run `sudo port deactivate petsc` and try again."
     64    }
    5565}
    5666
Note: See TracChangeset for help on using the changeset viewer.