[104106] trunk/dports/science

larryv at macports.org larryv at macports.org
Fri Mar 15 20:45:49 PDT 2013


Revision: 104106
          https://trac.macports.org/changeset/104106
Author:   larryv at macports.org
Date:     2013-03-15 20:45:49 -0700 (Fri, 15 Mar 2013)
Log Message:
-----------
apbs-mpi: Update to 1.4.0, remove gcc dependency (#38283).

Also, move to a subport of apbs.

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

Removed Paths:
-------------
    trunk/dports/science/apbs-mpi/

Modified: trunk/dports/science/apbs/Portfile
===================================================================
--- trunk/dports/science/apbs/Portfile	2013-03-16 02:58:59 UTC (rev 104105)
+++ trunk/dports/science/apbs/Portfile	2013-03-16 03:45:49 UTC (rev 104106)
@@ -5,8 +5,9 @@
 PortGroup               cmake 1.0
 
 name                    apbs
+subport                 apbs-mpi {}
 version                 1.4.0
-revision                1
+# Set revision separately for each subport, below.
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              science
 maintainers             bromo.med.uc.edu:howarth
@@ -32,22 +33,56 @@
                         port:readline
 
 configure.args-append   -DENABLE_OPENMP:BOOL=OFF \
-                        -DENABLE_MPI:BOOL=OFF \
                         -DCMAKE_C_FLAGS="-Ii${prefix}/include -O3 -ffast-math -g"
 
-post-destroot {
-    set tools ${destroot}${prefix}/share/${name}/tools
+set bins {analysis benchmark born coulomb del2dx dx2mol dx2uhbd dxmath
+    mergedx mergedx2 mgmesh multivalue similarity smooth tensor2dx
+    uhbd_asc2bin value}
 
-    move ${tools}/manip/psize.py ${destroot}${prefix}/bin/apbs-psize.py
-    file attributes ${destroot}${prefix}/bin/apbs-psize.py \
-        -permissions 755
+switch ${subport} {
+    apbs {
+        revision                1
 
-    foreach {bin} {analysis benchmark born coulomb del2dx dx2mol \
-                    dx2uhbd dxmath mergedx mergedx2 mgmesh \
-                    multivalue similarity smooth tensor2dx \
-                    uhbd_asc2bin value} {
-        move ${tools}/bin/${bin} ${destroot}${prefix}/bin/apbs-${bin}
-        file attributes ${destroot}${prefix}/bin/apbs-${bin} \
-            -permissions 755
+        configure.args-append   -DENABLE_MPI:BOOL=OFF
+
+        post-destroot {
+            set tools ${destroot}${prefix}/share/${subport}/tools
+
+            move ${tools}/manip/psize.py ${destroot}${prefix}/bin/apbs-psize.py
+            file attributes ${destroot}${prefix}/bin/apbs-psize.py \
+                -permissions 755
+
+            foreach {bin} ${bins} {
+                move ${tools}/bin/${bin} ${destroot}${prefix}/bin/apbs-${bin}
+                file attributes ${destroot}${prefix}/bin/apbs-${bin} \
+                    -permissions 755
+            }
+        }
     }
+    apbs-mpi {
+        revision                0
+
+        description             ${description} (MPI version)
+
+        depends_lib-append      port:openmpi
+        depends_run             port:apbs
+
+        configure.cc            openmpicc
+        configure.cxx           openmpicxx
+        configure.args-append   -DENABLE_MPI:BOOL=ON
+
+        destroot {
+            xinstall ${worksrcpath}/bin/apbs \
+                ${destroot}${prefix}/bin/apbs-mpi
+            foreach {bin} ${bins} {
+                xinstall ${worksrcpath}/tools/bin/${bin} \
+                    ${destroot}${prefix}/bin/apbs-mpi-${bin}
+            }
+            xinstall -d ${destroot}${prefix}/share/${subport}
+            copy ${worksrcpath}/examples \
+                    ${worksrcpath}/tools \
+                    ${worksrcpath}/doc \
+                ${destroot}${prefix}/share/${subport}
+        }
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130315/eaaac01a/attachment-0001.html>


More information about the macports-changes mailing list