Ticket #29243: Portfile.diff
File Portfile.diff, 2.0 KB (added by howarth@…, 13 years ago) |
---|
-
Portfile
old new 2 2 # $Id: Portfile 63877 2010-02-17 18:29:25Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup python26 1.0 5 6 6 7 name pynmr 7 8 version 0.37f 9 revision 1 8 10 categories science 9 11 maintainers bromo.med.uc.edu:howarth 10 12 … … 38 40 post-patch { 39 41 reinplace "s|@PREFIX@|${prefix}|g" ${build.dir}/run.macos \ 40 42 ${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 41 47 } 42 48 43 49 destroot { 44 xinstall -d ${destroot}${p refix}/lib/pymol/modules/pmg_tk/startup/pynmr45 xinstall -m 644 ${worksrcpath}/pmg_tk/startup/plug_nmr.py ${destroot}${p refix}/lib/pymol/modules/pmg_tk/startup46 xinstall -m 644 -W ${build.dir} Crmsd.so BIOPYTHON_LICENSE LICENSE README ${destroot}${p refix}/lib/pymol/modules/pmg_tk/startup/pynmr50 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 47 53 foreach d {help images test_data} { 48 copy ${build.dir}/${d} ${destroot}${p refix}/lib/pymol/modules/pmg_tk/startup/pynmr54 copy ${build.dir}/${d} ${destroot}${python.pkgd}/pmg_tk/startup/pynmr 49 55 } 50 eval xinstall -m 644 [glob ${build.dir}/*.py] ${destroot}${p refix}/lib/pymol/modules/pmg_tk/startup/pynmr56 eval xinstall -m 644 [glob ${build.dir}/*.py] ${destroot}${python.pkgd}/pmg_tk/startup/pynmr 51 57 }