Ticket #22033: Portfile.diff

File Portfile.diff, 1.5 KB (added by stromnov (Andrey Stromnov), 15 years ago)
  • Portfile

    old new  
    66
    77name            py26-scientific
    88version         2.8
    9 revision        1
     9revision        2
    1010categories      python science
    1111platforms       darwin
    1212maintainers     adfernandes openmaintainer
     
    2525                rmd160 0501829586253fe3986458529c436b6d93e6667f
    2626
    2727depends_lib     port:netcdf \
    28                 port:py26-numeric
     28                port:py26-numpy
    2929
    3030build.env       CPPFLAGS="-I${python.include} \
    3131                    -I${worksrcpath}/Include" \
     
    5050}
    5151
    5252variant 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
    5455    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
    6158        system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py"
    6259    }
    6360    post-destroot {