Ticket #29243: Portfile.diff

File Portfile.diff, 2.0 KB (added by howarth@…, 13 years ago)

Portfile diff for pynmr to use numpy/scipy and new pymol location

  • Portfile

    old new  
    22# $Id: Portfile 63877 2010-02-17 18:29:25Z ryandesign@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           python26 1.0
    56
    67name                pynmr
    78version             0.37f
     9revision            1
    810categories          science
    911maintainers         bromo.med.uc.edu:howarth
    1012
     
    3840post-patch {
    3941    reinplace  "s|@PREFIX@|${prefix}|g" ${build.dir}/run.macos \
    4042                                        ${build.dir}/test_data/test.script
     43    reinplace  "s|Numeric import|numpy.oldnumeric import|g"  ${build.dir}/SVDSuperimposer.py \
     44                                                             ${build.dir}/rmsd.py
     45    reinplace  "s|LinearAlgebra import|numpy.oldnumeric.linear_algebra import|g" ${build.dir}/SVDSuperimposer.py
     46    reinplace  "s|import MLab|import numpy.oldnumeric.mlab as MLab|g" ${build.dir}/rmsd.py
    4147}
    4248
    4349destroot {
    44     xinstall -d ${destroot}${prefix}/lib/pymol/modules/pmg_tk/startup/pynmr
    45     xinstall -m 644 ${worksrcpath}/pmg_tk/startup/plug_nmr.py ${destroot}${prefix}/lib/pymol/modules/pmg_tk/startup
    46     xinstall -m 644 -W ${build.dir} Crmsd.so BIOPYTHON_LICENSE LICENSE README ${destroot}${prefix}/lib/pymol/modules/pmg_tk/startup/pynmr
     50    xinstall -d ${destroot}${python.pkgd}/pmg_tk/startup/pynmr
     51    xinstall -m 644 ${worksrcpath}/pmg_tk/startup/plug_nmr.py ${destroot}${python.pkgd}/pmg_tk/startup
     52    xinstall -m 644 -W ${build.dir} Crmsd.so BIOPYTHON_LICENSE LICENSE README ${destroot}${python.pkgd}/pmg_tk/startup/pynmr
    4753    foreach d {help images test_data} {
    48        copy ${build.dir}/${d} ${destroot}${prefix}/lib/pymol/modules/pmg_tk/startup/pynmr
     54       copy ${build.dir}/${d} ${destroot}${python.pkgd}/pmg_tk/startup/pynmr
    4955    }
    50     eval xinstall -m 644 [glob ${build.dir}/*.py] ${destroot}${prefix}/lib/pymol/modules/pmg_tk/startup/pynmr
     56    eval xinstall -m 644 [glob ${build.dir}/*.py] ${destroot}${python.pkgd}/pmg_tk/startup/pynmr
    5157}