[104108] trunk/dports/science/pdb2pqr/Portfile

larryv at macports.org larryv at macports.org
Fri Mar 15 21:20:01 PDT 2013


Revision: 104108
          https://trac.macports.org/changeset/104108
Author:   larryv at macports.org
Date:     2013-03-15 21:20:01 -0700 (Fri, 15 Mar 2013)
Log Message:
-----------
pdb2pqr: Add gcc* variants (maintainer timeout, #38261).

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

Modified: trunk/dports/science/pdb2pqr/Portfile
===================================================================
--- trunk/dports/science/pdb2pqr/Portfile	2013-03-16 04:19:10 UTC (rev 104107)
+++ trunk/dports/science/pdb2pqr/Portfile	2013-03-16 04:20:01 UTC (rev 104108)
@@ -6,7 +6,7 @@
 
 name                pdb2pqr
 version             1.7
-revision            1
+revision            2
 categories          science
 maintainers         bromo.med.uc.edu:howarth
 description         automate Poisson-Boltzmann electrostatics calculations
@@ -23,10 +23,10 @@
 use_configure       yes
 build.cmd           make
 build.target        all
-depends_lib         port:gcc45 \
-                    port:py26-numeric
+depends_lib         port:py26-numeric
+
 post-patch {
-    reinplace   "s|fort xlf95 lf95 g95|gfortran-mp-4.5|g" ${worksrcpath}/propka/configure
+    reinplace   "s|fort xlf95 lf95 g95|${configure.f77}|g" ${worksrcpath}/propka/configure
     reinplace   "s|/usr/bin/env python|${python.bin}|g" ${worksrcpath}/pdb2pka/pka.py
     reinplace   "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/src/psize.py
     reinplace   "s|-Wl,-framework -Wl,Python -bundle|${python.lib}  -bundle|g" \
@@ -34,8 +34,10 @@
                                                     ${worksrcpath}/propka/configure
     delete      ${worksrcpath}/contrib
 }
-configure.args      --with-max-atoms="1000000" --without-url --with-python=${python.bin} \
-                    -with-f77=gfortran-mp-4.5
+configure.args      --with-max-atoms="1000000" --without-url --with-python=${python.bin}
+pre-configure {
+    configure.args-append   -with-f77=${configure.f77}
+}
 destroot {
       system "find ${worksrcpath} -name '*.o' -delete"
       file mkdir ${destroot}${prefix}/share/{name}
@@ -47,3 +49,20 @@
       system "echo '${prefix}/share/${name}/propka/propka \"\$@\"' >> ${destroot}${prefix}/bin/propka"
       file attributes ${destroot}${prefix}/bin/propka -permissions a+x
 }
+
+variant gcc45 conflicts gcc46 gcc47 description {Build with GCC 4.5} {
+    configure.compiler  macports-gcc-4.5
+    depends_lib-append  port:gcc45
+}
+variant gcc46 conflicts gcc45 gcc47 description {Build with GCC 4.6} {
+    configure.compiler  macports-gcc-4.6
+    depends_lib-append  port:gcc46
+}
+variant gcc47 conflicts gcc45 gcc46 description {Build with GCC 4.7} {
+    configure.compiler  macports-gcc-4.7
+    depends_lib-append  port:gcc47
+}
+
+if {![variant_isset gcc46] && ![variant_isset gcc47]} {
+    default_variants    +gcc45
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130315/b5a2cf0e/attachment.html>


More information about the macports-changes mailing list