[60018] trunk/dports/science

jmr at macports.org jmr at macports.org
Thu Oct 29 00:44:24 PDT 2009


Revision: 60018
          http://trac.macports.org/changeset/60018
Author:   jmr at macports.org
Date:     2009-10-29 00:44:20 -0700 (Thu, 29 Oct 2009)
Log Message:
-----------
New port: pdb2pqr (#21507)

Added Paths:
-----------
    trunk/dports/science/pdb2pqr/
    trunk/dports/science/pdb2pqr/Portfile

Added: trunk/dports/science/pdb2pqr/Portfile
===================================================================
--- trunk/dports/science/pdb2pqr/Portfile	                        (rev 0)
+++ trunk/dports/science/pdb2pqr/Portfile	2009-10-29 07:44:20 UTC (rev 60018)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python26 1.0
+
+name                pdb2pqr
+version             1.4.0
+categories          science
+maintainers         bromo.med.uc.edu:howarth
+description         automate Poisson-Boltzmann electrostatics calculations
+long_description    PDB2PQR is a Python software package that automates many of the \
+                    common tasks of preparing structures for continuum electrostatics \
+                    calculations, providing a platform-independent utility for converting \
+                    protein files in PDB format to PQR format.
+homepage            http://pdb2pqr.sourceforge.net/
+platforms           darwin
+master_sites        sourceforge
+checksums           md5     80b1d636ea0e63b68eb9a64d8c3d980f \
+                    sha1    967f3f2f2ab532e7a0abeb253bac95185bca1602 \
+                    rmd160  4d5596da5f9bdb2c657e7d0d88d91d20d00569e2
+use_parallel_build  no
+use_configure       yes
+build.cmd           make
+build.target        all
+depends_lib         port:gcc44 \
+                    port:py26-numeric
+post-patch {
+    reinplace   "s|fort xlf95 lf95 g95|gfortran-mp-4.4|g" ${worksrcpath}/propka/configure
+    reinplace   "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/pdb2pka/pka.py \
+                                                    ${worksrcpath}/src/psize.py
+    reinplace   "s|-Wl,-framework -Wl,Python -bundle|${python.lib}  -bundle|g" \
+                                                    ${worksrcpath}/configure \
+                                                    ${worksrcpath}/propka/configure
+    delete      ${worksrcpath}/contrib
+}
+configure.args      --with-max-atoms="1000000" --without-url --with-python=${python.bin} \
+                    -with-f77=gfortran-mp-4.4
+destroot {
+      system "find ${worksrcpath} -name '*.o' -delete"
+      file mkdir ${destroot}${prefix}/share/{name}
+      move ${worksrcpath} ${destroot}${prefix}/share/${name}
+      system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/pdb2pqr"
+      system "echo '${prefix}/share/${name}/pdb2pqr.py \"\$@\"' >> ${destroot}${prefix}/bin/pdb2pqr"
+      file attributes ${destroot}${prefix}/bin/pdb2pqr -permissions a+x
+      system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/propka"
+      system "echo '${prefix}/share/${name}/propka/propka \"\$@\"' >> ${destroot}${prefix}/bin/propka"
+      file attributes ${destroot}${prefix}/bin/propka -permissions a+x
+} 


Property changes on: trunk/dports/science/pdb2pqr/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091029/c2cc6ef2/attachment-0001.html>


More information about the macports-changes mailing list