Ticket #21507: Portfile

File Portfile, 2.4 KB (added by howarth@…, 15 years ago)

remove unnecessary mkdir

Line 
1# -*- 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
2# $Id$
3PortSystem          1.0
4name                pdb2pqr
5version             1.4.0
6categories          science
7maintainers         howarth@bromo.med.uc.edu
8description         PDB2PQR
9long_description    PDB2PQR is a Python software package that automates many of the \
10                    common tasks of preparing structures for continuum electrostatics \
11                    calculations, providing a platform-independent utility for converting \
12                    protein files in PDB format to PQR format.
13homepage            http://pdb2pqr.sourceforge.net
14platforms           darwin
15master_sites        sourceforge
16distfiles           ${name}-${version}.tar.gz
17checksums           md5     80b1d636ea0e63b68eb9a64d8c3d980f \
18                    sha1    967f3f2f2ab532e7a0abeb253bac95185bca1602 \
19                    rmd160  4d5596da5f9bdb2c657e7d0d88d91d20d00569e2
20use_parallel_build  no
21PortGroup           python26 1.0
22use_configure       yes
23build.cmd           make
24build.target        all
25depends_lib         port:gcc44 \
26                    port:py26-numeric
27post-patch {
28    reinplace  "s|fort xlf95 lf95 g95|gfortran-mp-4.4|g" ${worksrcpath}/propka/configure
29    reinplace  "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/pdb2pka/pka.py
30    reinplace  "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/src/psize.py
31    reinplace  "s|-Wl,-framework -Wl,Python -bundle|${python.lib}  -bundle|g" ${worksrcpath}/configure
32    reinplace  "s|-Wl,-framework -Wl,Python -bundle|${python.lib}  -bundle|g" ${worksrcpath}/propka/configure
33    system "rm -fr ${worksrcpath}/contrib"
34}
35configure.args      --with-max-atoms="1000000" --without-url --with-python=${python.bin} \
36                    -with-f77=gfortran-mp-4.4
37destroot {
38      system "find ${worksrcpath} -name '*.o' -delete"
39      file mkdir ${destroot}${prefix}/share/{name}
40      move ${worksrcpath} ${destroot}${prefix}/share/${name}
41      system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/pdb2pqr"
42      system "echo '${prefix}/share/${name}/pdb2pqr.py \"\$@\"' >> ${destroot}${prefix}/bin/pdb2pqr"
43      system "chmod a+x ${destroot}${prefix}/bin/pdb2pqr"
44      system "echo '#!/bin/zsh -f' >| ${destroot}${prefix}/bin/propka"
45      system "echo '${prefix}/share/${name}/propka/propka \"\$@\"' >> ${destroot}${prefix}/bin/propka"
46      system "chmod a+x ${destroot}${prefix}/bin/propka"
47}