Ticket #33295: Portfile.diff
File Portfile.diff, 2.2 KB (added by howarth@…, 13 years ago) |
---|
-
Portfile
old new 5 5 PortGroup python26 1.0 6 6 7 7 name pdb2pqr 8 version 1. 78 version 1.8 9 9 categories science 10 10 maintainers bromo.med.uc.edu:howarth 11 11 description automate Poisson-Boltzmann electrostatics calculations … … 16 16 homepage http://pdb2pqr.sourceforge.net/ 17 17 platforms darwin 18 18 master_sites sourceforge 19 checksums md5 058622cb2ca6ca12af04d4f11b272951\20 sha1 df2bf4303dbc64b69a20d48331386d8c08c234f119 checksums md5 d34f8ee4690e1e25755f5c20e09883bb \ 20 sha1 94d32c182587d887087b618b616a0f7a615fbdef 21 21 use_parallel_build no 22 22 use_configure yes 23 23 build.cmd make 24 24 build.target all 25 25 depends_lib port:gcc45 \ 26 port:py26-num eric26 port:py26-numpy 27 27 post-patch { 28 reinplace "s|fort xlf95 lf95 g95|gfortran-mp-4.5|g" ${worksrcpath}/propka/configure29 28 reinplace "s|/usr/bin/env python|${python.bin}|g" ${worksrcpath}/pdb2pka/pka.py 30 29 reinplace "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/src/psize.py 31 30 reinplace "s|-Wl,-framework -Wl,Python -bundle|${python.lib} -bundle|g" \ 32 ${worksrcpath}/configure \ 33 ${worksrcpath}/propka/configure 31 ${worksrcpath}/configure 34 32 delete ${worksrcpath}/contrib 35 33 } 36 34 configure.args --with-max-atoms="1000000" --without-url --with-python=${python.bin} \ … … 42 40 system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/pdb2pqr" 43 41 system "echo '${prefix}/share/${name}/pdb2pqr.py \"\$@\"' >> ${destroot}${prefix}/bin/pdb2pqr" 44 42 file attributes ${destroot}${prefix}/bin/pdb2pqr -permissions a+x 45 system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/propka"46 system "echo '${prefix}/share/${name}/propka/propka \"\$@\"' >> ${destroot}${prefix}/bin/propka"47 file attributes ${destroot}${prefix}/bin/propka -permissions a+x48 43 }