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

dstrubbe at macports.org dstrubbe at macports.org
Mon Jun 13 14:08:27 PDT 2016


Revision: 149340
          https://trac.macports.org/changeset/149340
Author:   dstrubbe at macports.org
Date:     2016-06-13 14:08:27 -0700 (Mon, 13 Jun 2016)
Log Message:
-----------
apbs: Use glob rather than listing all expected tool binaries.

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

Modified: trunk/dports/science/apbs/Portfile
===================================================================
--- trunk/dports/science/apbs/Portfile	2016-06-13 20:48:35 UTC (rev 149339)
+++ trunk/dports/science/apbs/Portfile	2016-06-13 21:08:27 UTC (rev 149340)
@@ -80,10 +80,6 @@
     system -W ${worksrcpath}/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}
-
 # Some cmake tests will fail with "error: unrecognized option '-arch'" from gcc 4.6 and earlier. Same with dragonegg based on it.
 # llvm-gcc-4.2 will fail to build with: error: unrecognized command line option "-std=c++0x"
 # It comes with clang for OSX 10.6 so we need to blacklist clang to prevent it being used.
@@ -103,7 +99,7 @@
     file attributes ${destroot}${prefix}/bin/apbs-psize.py \
         -permissions 0755
 
-    foreach {bin} ${bins} {
+    foreach {bin} [glob -tails -dir ${tools}/bin *] {
         move ${tools}/bin/${bin} ${destroot}${prefix}/bin/apbs-${bin}
         file attributes ${destroot}${prefix}/bin/apbs-${bin} \
             -permissions 0755
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160613/83009317/attachment-0001.html>


More information about the macports-changes mailing list