Ticket #22033: Portfile.diff
File Portfile.diff, 1.5 KB (added by stromnov (Andrey Stromnov), 15 years ago) |
---|
-
Portfile
old new 6 6 7 7 name py26-scientific 8 8 version 2.8 9 revision 19 revision 2 10 10 categories python science 11 11 platforms darwin 12 12 maintainers adfernandes openmaintainer … … 25 25 rmd160 0501829586253fe3986458529c436b6d93e6667f 26 26 27 27 depends_lib port:netcdf \ 28 port:py26-num eric28 port:py26-numpy 29 29 30 30 build.env CPPFLAGS="-I${python.include} \ 31 31 -I${worksrcpath}/Include" \ … … 50 50 } 51 51 52 52 variant mpi description {Enable lammpi support} { 53 depends_lib-append port:lammpi port:py26-numpy 53 depends_lib-append port:lammpi 54 patchfiles-append patch-Src-MPI-compile.py.diff 54 55 post-build { 55 reinplace "s|^from Scientific import N|#from Scientific import N|g" \ 56 ${worksrcpath}/Src/MPI/compile.py 57 reinplace "s|^if N.package ==|if \"NumPy\" ==|g" \ 58 ${worksrcpath}/Src/MPI/compile.py 59 reinplace "s|%s %s -o mpipython|${prefix}/bin/%s %s ${prefix}/lib/libmpi.a ${prefix}/lib/liblam.a -o mpipython|g" \ 60 ${worksrcpath}/Src/MPI/compile.py 56 reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py 57 reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py 61 58 system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py" 62 59 } 63 60 post-destroot {