[71906] trunk/dports/math/petsc/Portfile
mmoll at macports.org
mmoll at macports.org
Sun Sep 26 07:18:36 PDT 2010
Revision: 71906
http://trac.macports.org/changeset/71906
Author: mmoll at macports.org
Date: 2010-09-26 07:18:32 -0700 (Sun, 26 Sep 2010)
Log Message:
-----------
math/petsc: simplify reinplace commands per ryandesign's suggestion
Modified Paths:
--------------
trunk/dports/math/petsc/Portfile
Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile 2010-09-26 13:25:39 UTC (rev 71905)
+++ trunk/dports/math/petsc/Portfile 2010-09-26 14:18:32 UTC (rev 71906)
@@ -33,18 +33,20 @@
--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
- 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/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
+ post-destroot {
+ reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db \
+ ${destroot}${prefix}/lib/petsc/conf/petscrules \
+ ${destroot}${prefix}/lib/petsc/conf/petscvariables \
+ ${destroot}${prefix}/lib/petsc/conf/reconfigure-darwin.py \
+ ${destroot}${prefix}/lib/petsc/conf/rules \
+ ${destroot}${prefix}/lib/petsc/conf/test \
+ ${destroot}${prefix}/lib/petsc/conf/variables \
+ ${destroot}${prefix}/lib/petsc/include/petscconf.h
+ reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/include/petscconf.h \
+ ${destroot}${prefix}/lib/petsc/include/petscmachineinfo.h \
+ ${destroot}${prefix}/lib/petsc/conf/petscvariables \
+ ${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/20100926/895baeff/attachment.html>
More information about the macports-changes
mailing list