Ticket #14651: Portfile.diff
File Portfile.diff, 1.1 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago) |
---|
-
Portfile
old new 47 47 } 48 48 } 49 49 50 variant mpi description {Enable lammpi support} {50 variant mpi description {Enable lammpi support} conflicts openmpi { 51 51 depends_lib-append port:lammpi 52 52 post-build { 53 53 reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.5 -I${worksrcpath}/Include|g" \ … … 64 64 } 65 65 } 66 66 67 variant openmpi description {Enable openmpi support} conflicts mpi { 68 depends_lib-append port:openmpi 69 70 post-patch { 71 reinplace "s|mpicompiler = 'mpicc'|mpicompiler = 'openmpicc'|g" \ 72 ${worksrcpath}/Src/MPI/compile.py 73 reinplace "s|\\(-I%s\\)|\\1 -I${worksrcpath}/Include|g" \ 74 ${worksrcpath}/Src/MPI/compile.py 75 76 system "cd ${worksrcpath}/Src/MPI && ${python.bin} compile.py" 77 } 78 79 post-destroot { 80 xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin 81 } 82 } 83 67 84 livecheck.check regex 68 85 livecheck.url http://sourcesup.cru.fr/projects/scientific-py/ 69 86 livecheck.regex {<td>(\d+(?:\.\d+)*)}