Changeset 74609


Ignore:
Timestamp:
Dec 23, 2010, 5:56:37 PM (8 years ago)
Author:
mmoll@…
Message:

science/petsc: update to 3.1-p7, use notes instead of ui_msg, clean up configure/build code

File:
1 edited

Legend:

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

    r74477 r74609  
    44
    55name            petsc
    6 version     3.1-p6
     6version     3.1-p7
    77categories  math science
    88maintainers     mmoll
     
    1212        of scientific applications modeled by partial differential equations. \
    1313        It employs the MPI standard for all message-passing communication.
     14
     15notes       "Add the following line to your .bash_profile if you plan to use\
     16            the PETSC makefile rules in $prefix/lib/petsc/conf: \n\
     17            \texport PETSC_DIR=${prefix}/lib/petsc"
     18
    1419platforms       darwin
    1520homepage        http://www.mcs.anl.gov/petsc/petsc-as/
     
    1823worksrcdir      ${name}-${version}
    1924universal_variant   no
    20 checksums           md5     ab8930da0058ecd8091db77205f3eddb \
    21                     sha1    7dffcfc519f4830693a19f752fe5291bf039dc3a \
    22                     rmd160  f7d563cb89102cd9df2141bb8b99db1e86ebc63d
     25checksums           md5     c799040c5c731c74f7f9a80e0ba27fdb \
     26                    sha1    69f92c56545c55ab4887664d41cf0761bf77348a \
     27                    rmd160  e0eba6dcdf453f6778c781bdbb5b9ec4ea5a16ac
    2328
    2429depends_lib-append  port:openmpi
    2530
    26 configure.env-append    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
    27 configure.cmd   ${worksrcpath}/config/configure.py
    2831configure.args  --with-python --with-debugging=0 \
    29                 --with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
    30                 --with-shared=1 \
     32                --with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
     33                --with-shared=0 --PETSC_ARCH=darwin \
    3134                --prefix=${destroot}${prefix}/lib/petsc \
    3235                --with-cc=${prefix}/bin/openmpicc \
    3336                --with-cxx=${prefix}/bin/openmpicxx \
    3437                --with-mpiexec=${prefix}/bin/openmpiexec
    35 build.env-append    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
     38
    3639post-destroot {
    3740   reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db \
     
    7174}
    7275
    73 post-activate {
    74     ui_msg "******************************************************"
    75     ui_msg "* Add the following line to your .bash_profile if you "
    76     ui_msg "* plan to use the PETSC makefile rules in             "
    77     ui_msg "* $prefix/lib/petsc/conf:                             "
    78     ui_msg "*                                                     "
    79     ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc              "
    80     ui_msg "*                                                     "
    81     ui_msg "******************************************************"
    82 }
    83 
    8476livecheck.type  regex
    8577livecheck.url   http://www.mcs.anl.gov/petsc/petsc-2/download/index.html
Note: See TracChangeset for help on using the changeset viewer.