Ticket #49058: Portfile-apbs.diff.2

File Portfile-apbs.diff.2, 3.3 KB (added by dstrubbe (David Strubbe), 9 years ago)
Line 
1Index: Portfile
2===================================================================
3--- Portfile    (revision 141727)
4+++ Portfile    (working copy)
5@@ -4,17 +4,17 @@
6 PortSystem              1.0
7 PortGroup               cmake 1.0
8 PortGroup               mpi 1.0
9+PortGroup               github 1.0
10 
11 compilers.choose        cc cxx
12 
13 name                    apbs
14 subport                 apbs-mpi {}
15-version                 1.4.0
16 # Set revision separately for each subport, below.
17 set branch              [join [lrange [split ${version} .] 0 1] .]
18 categories              science
19 license                 BSD
20-maintainers             gmail.com:howarth.at.macports
21+maintainers             gmail.com:howarth.at.macports openmaintainer
22 
23 description             Adaptive Poisson-Boltzmann Solver
24 long_description        APBS is a software package for the numerical \
25@@ -23,22 +23,36 @@
26                         electrostatic interactions between molecular \
27                         solutes over a wide range of length scales.
28 
29-homepage                http://www.poissonboltzmann.org
30 platforms               darwin
31-master_sites            sourceforge:project/apbs/apbs/apbs-${version}
32 
33-distname                APBS-${branch}-source
34-worksrcdir              ${name}
35+github.setup            Electrostatics apbs-pdb2pqr d4e78c62e6a07f92c26924318d83a159fa6af063
36+version                 1.4.1
37+homepage                http://www.poissonboltzmann.org
38 
39-checksums               rmd160  9cf903fc904de18c1ceaa571f1c8bdd145731d78 \
40-                        sha256  00312320a042e283f106583a3f8b9093abbd193fe5e22ca5c615ab722ca586bd
41+checksums               rmd160  5c4d583e12deb3fbc2b5a8031882311cbfd22c7e \
42+                        sha256  f98ce6a51d8f813e1b4fa626c054ddbf7a985403ca30f890733cb1abf2bd6e05
43 
44 depends_lib             port:maloc \
45                         port:readline
46 
47+# BEM needs 'gfortran', hard-coded, and configure fails without it if BEM is enabled, with a syntax error
48+#CMake Error at CMakeLists.txt:217 (get_filename_component):
49+#  get_filename_component called with incorrect number of arguments
50 configure.args-append   -DENABLE_OPENMP:BOOL=OFF \
51-                        -DCMAKE_C_FLAGS="-Ii${prefix}/include -O3 -ffast-math -g"
52+                        -DENABLE_BEM=OFF
53 
54+# make sure this comes after further options that the cmake portgroup adds, to specify directory correctly
55+configure.post_args     ./apbs
56+
57+test.run  yes
58+test {
59+    ln ${worksrcpath}/apbs/tools/manip/inputgen.py ${worksrcpath}/apbs/tests/
60+    ln ${worksrcpath}/apbs/tools/manip/psize.py    ${worksrcpath}/apbs/tests/
61+    system -W ${worksrcpath}/apbs/tests "python apbs_tester.py"
62+    system -W ${worksrcpath}/apbs/tests "cat test.log"
63+    system -W ${worksrcpath}/apbs/tests "if grep FAILED test.log; then echo \"FAIL\"; exit 1; fi"
64+}
65+
66 set bins {analysis benchmark born coulomb del2dx dx2mol dx2uhbd dxmath
67     mergedx mergedx2 mgmesh multivalue similarity smooth tensor2dx
68     uhbd_asc2bin value}
69@@ -47,7 +61,7 @@
70     apbs {
71         compilers.setup
72 
73-        revision                1
74+        revision                0
75 
76         configure.args-append   -DENABLE_MPI:BOOL=OFF
77 
78@@ -99,3 +113,8 @@
79         }
80     }
81 }
82+
83+# check for real releases, not github commits
84+livecheck.type   regex
85+livecheck.url    http://www.poissonboltzmann.org/news/
86+livecheck.regex  APBS (\[0-9.\]+)