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

mmoll at macports.org mmoll at macports.org
Sat Sep 25 12:08:15 PDT 2010


Revision: 71873
          http://trac.macports.org/changeset/71873
Author:   mmoll at macports.org
Date:     2010-09-25 12:08:11 -0700 (Sat, 25 Sep 2010)
Log Message:
-----------
math/petsc: version bump to 3.1-p4

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

Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile	2010-09-25 12:47:57 UTC (rev 71872)
+++ trunk/dports/math/petsc/Portfile	2010-09-25 19:08:11 UTC (rev 71873)
@@ -3,7 +3,7 @@
 PortSystem	1.0
 
 name		petsc
-version	    3.0.0-p11
+version	    3.1-p4
 categories  math science
 maintainers	mmoll
 description	Portable, Extensible Toolkit for Scientific Computation
@@ -12,14 +12,14 @@
         of scientific applications modeled by partial differential equations. \
         It employs the MPI standard for all message-passing communication.
 platforms	darwin
-homepage	http://www-unix.mcs.anl.gov/petsc/petsc-as/
+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     ebaa7638bb30bce694c440f2f63f7b8b \
-                    sha1    7fcba825134a8c65f53f4653bbf8b3bbac814d53 \
-                    rmd160  d1f1708540d697a78421b8df1097c8a92243e0e3
+checksums           md5     cc9979414f1ab67bb30c94e54c718615 \
+                    sha1    3331824fcf58eb6231cb70a75957fd42ab2df642 \
+                    rmd160  6e29d74b43051ae41de166d370b36d0a248896d4
 
 depends_lib-append  port:openmpi
 
@@ -27,18 +27,24 @@
 configure.cmd   ${worksrcpath}/config/configure.py
 configure.args  --with-python --with-debugging=0 \
  		--with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
-		--prefix=${prefix}/lib/petsc \
+		--prefix=${destroot}${prefix}/lib/petsc \
 		--with-cc=${prefix}/bin/openmpicc \
 		--with-cxx=${prefix}/bin/openmpicxx \
 		--with-mpiexec=${prefix}/bin/openmpiexec
-build.env       PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
-destroot.destdir    INSTALL_DIR=${destroot}${prefix}/lib/petsc \
-        PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
+build.env-append    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
 post-destroot {
-    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/base
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/petscrules
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/petscvariables
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/reconfigure-darwin.py
     reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/rules
-    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/petscvariables
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/test
     reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/variables
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/include/petscconf.h
+    reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/include/petscconf.h
+    reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/include/petscmachineinfo.h
+    reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/conf/petscvariables
+    reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db
 }
 
 # disabled for now; no mpi support in fftw port yet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100925/f522abf6/attachment.html>


More information about the macports-changes mailing list