[142208] trunk/dports/science/apbs/Portfile

dstrubbe at macports.org dstrubbe at macports.org
Sat Dec 12 04:47:14 PST 2015


Revision: 142208
          https://trac.macports.org/changeset/142208
Author:   dstrubbe at macports.org
Date:     2015-11-06 09:00:48 -0800 (Fri, 06 Nov 2015)
Log Message:
-----------
apbs: Update to 1.4.1, using github portgroup. Remove unused C flags line which has spurious "i" in it, and is overwritten anyway. Also BEM has to be disabled. Add test phase (a few tests fail for me). Add livecheck. Added openmaintainer since maintainer is not a committer. Maintainer timeout, closes ticket #49058.

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

Modified: trunk/dports/science/apbs/Portfile
===================================================================
--- trunk/dports/science/apbs/Portfile	2015-11-06 16:40:33 UTC (rev 142207)
+++ trunk/dports/science/apbs/Portfile	2015-11-06 17:00:48 UTC (rev 142208)
@@ -4,17 +4,17 @@
 PortSystem              1.0
 PortGroup               cmake 1.0
 PortGroup               mpi 1.0
+PortGroup               github 1.0
 
 compilers.choose        cc cxx
 
 name                    apbs
 subport                 apbs-mpi {}
-version                 1.4.0
 # Set revision separately for each subport, below.
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              science
 license                 BSD
-maintainers             gmail.com:howarth.at.macports
+maintainers             gmail.com:howarth.at.macports openmaintainer
 
 description             Adaptive Poisson-Boltzmann Solver
 long_description        APBS is a software package for the numerical \
@@ -23,22 +23,36 @@
                         electrostatic interactions between molecular \
                         solutes over a wide range of length scales.
 
-homepage                http://www.poissonboltzmann.org
 platforms               darwin
-master_sites            sourceforge:project/apbs/apbs/apbs-${version}
 
-distname                APBS-${branch}-source
-worksrcdir              ${name}
+github.setup            Electrostatics apbs-pdb2pqr d4e78c62e6a07f92c26924318d83a159fa6af063
+version                 1.4.1
+homepage                http://www.poissonboltzmann.org
 
-checksums               rmd160  9cf903fc904de18c1ceaa571f1c8bdd145731d78 \
-                        sha256  00312320a042e283f106583a3f8b9093abbd193fe5e22ca5c615ab722ca586bd
+checksums               rmd160  5c4d583e12deb3fbc2b5a8031882311cbfd22c7e \
+                        sha256  f98ce6a51d8f813e1b4fa626c054ddbf7a985403ca30f890733cb1abf2bd6e05
 
 depends_lib             port:maloc \
                         port:readline
 
+# BEM needs 'gfortran', hard-coded, and configure fails without it if BEM is enabled, with a syntax error
+#CMake Error at CMakeLists.txt:217 (get_filename_component):
+#  get_filename_component called with incorrect number of arguments
 configure.args-append   -DENABLE_OPENMP:BOOL=OFF \
-                        -DCMAKE_C_FLAGS="-Ii${prefix}/include -O3 -ffast-math -g"
+                        -DENABLE_BEM=OFF
 
+# make sure this comes after further options that the cmake portgroup adds, to specify directory correctly
+configure.post_args     ./apbs
+
+test.run  yes
+test {
+    ln ${worksrcpath}/apbs/tools/manip/inputgen.py ${worksrcpath}/apbs/tests/
+    ln ${worksrcpath}/apbs/tools/manip/psize.py    ${worksrcpath}/apbs/tests/
+    system -W ${worksrcpath}/apbs/tests "python apbs_tester.py"
+    system -W ${worksrcpath}/apbs/tests "cat test.log"
+    system -W ${worksrcpath}/apbs/tests "if grep FAILED test.log; then echo \"FAIL\"; exit 1; fi"
+}
+
 set bins {analysis benchmark born coulomb del2dx dx2mol dx2uhbd dxmath
     mergedx mergedx2 mgmesh multivalue similarity smooth tensor2dx
     uhbd_asc2bin value}
@@ -47,7 +61,7 @@
     apbs {
         compilers.setup
 
-        revision                1
+        revision                0
 
         configure.args-append   -DENABLE_MPI:BOOL=OFF
 
@@ -99,3 +113,8 @@
         }
     }
 }
+
+# check for real releases, not github commits
+livecheck.type   regex
+livecheck.url    http://www.poissonboltzmann.org/news/
+livecheck.regex  APBS (\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/5b015db9/attachment-0001.html>


More information about the macports-changes mailing list