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

Ryan Schmidt ryandesign at macports.org
Sun Sep 26 07:56:53 PDT 2010


On Sep 26, 2010, at 09:19, Mark Moll wrote:
> On Sep 25, 2010, at 6:28 PM, Ryan Schmidt wrote:
>> reinplace can affect multiple files in one invocation, so you can simplify this to:
>> 
>> 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
>> }
> 
> Thanks! I obviously didn’t know that. Your change has been committed in r71906.

Oops, but now you've got a post-destroot inside a post-destroot. I wonder, does that work? Maybe it does. :P




More information about the macports-dev mailing list