[74609] trunk/dports/math/petsc/Portfile

mmoll at macports.org mmoll at macports.org
Thu Dec 23 09:56:44 PST 2010


Revision: 74609
          http://trac.macports.org/changeset/74609
Author:   mmoll at macports.org
Date:     2010-12-23 09:56:37 -0800 (Thu, 23 Dec 2010)
Log Message:
-----------
science/petsc: update to 3.1-p7, use notes instead of ui_msg, clean up configure/build code

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

Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile	2010-12-23 17:19:47 UTC (rev 74608)
+++ trunk/dports/math/petsc/Portfile	2010-12-23 17:56:37 UTC (rev 74609)
@@ -3,7 +3,7 @@
 PortSystem	1.0
 
 name		petsc
-version	    3.1-p6
+version	    3.1-p7
 categories  math science
 maintainers	mmoll
 description	Portable, Extensible Toolkit for Scientific Computation
@@ -11,28 +11,31 @@
         of data structures and routines for the scalable (parallel) solution \
         of scientific applications modeled by partial differential equations. \
         It employs the MPI standard for all message-passing communication.
+
+notes       "Add the following line to your .bash_profile if you plan to use\
+            the PETSC makefile rules in $prefix/lib/petsc/conf: \n\
+            \texport PETSC_DIR=${prefix}/lib/petsc"
+
 platforms	darwin
 homepage	http://www.mcs.anl.gov/petsc/petsc-as/
 master_sites	ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
 distname	${name}-lite-${version}
 worksrcdir	${name}-${version}
 universal_variant   no
-checksums           md5     ab8930da0058ecd8091db77205f3eddb \
-                    sha1    7dffcfc519f4830693a19f752fe5291bf039dc3a \
-                    rmd160  f7d563cb89102cd9df2141bb8b99db1e86ebc63d
+checksums           md5     c799040c5c731c74f7f9a80e0ba27fdb \
+                    sha1    69f92c56545c55ab4887664d41cf0761bf77348a \
+                    rmd160  e0eba6dcdf453f6778c781bdbb5b9ec4ea5a16ac
 
 depends_lib-append  port:openmpi
 
-configure.env-append	PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
-configure.cmd   ${worksrcpath}/config/configure.py
 configure.args  --with-python --with-debugging=0 \
- 		--with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
- 		--with-shared=1 \
+		--with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
+		--with-shared=0 --PETSC_ARCH=darwin \
 		--prefix=${destroot}${prefix}/lib/petsc \
 		--with-cc=${prefix}/bin/openmpicc \
 		--with-cxx=${prefix}/bin/openmpicxx \
 		--with-mpiexec=${prefix}/bin/openmpiexec
-build.env-append    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
+
 post-destroot {
    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db \
                                                   ${destroot}${prefix}/lib/petsc/conf/petscrules \
@@ -70,17 +73,6 @@
     configure.args-append   --with-debugging=1
 }
 
-post-activate {
-    ui_msg "******************************************************"
-    ui_msg "* Add the following line to your .bash_profile if you "
-    ui_msg "* plan to use the PETSC makefile rules in             "
-    ui_msg "* $prefix/lib/petsc/conf:                             "
-    ui_msg "*                                                     "
-    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc              "
-    ui_msg "*                                                     "
-    ui_msg "******************************************************"
-}
-
 livecheck.type  regex
 livecheck.url   http://www.mcs.anl.gov/petsc/petsc-2/download/index.html
 livecheck.regex petsc-lite-(\[0-9.\]+(-p\[0-9\]+))\\.tar\\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101223/ddbbdaec/attachment.html>


More information about the macports-changes mailing list