[149328] trunk/dports/python/py-ngl/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jun 11 01:49:11 PDT 2016


Revision: 149328
          https://trac.macports.org/changeset/149328
Author:   ryandesign at macports.org
Date:     2016-06-11 01:49:10 -0700 (Sat, 11 Jun 2016)
Log Message:
-----------
py-ngl: fix portindex failure and fix some errors in test phase

Modified Paths:
--------------
    trunk/dports/python/py-ngl/Portfile

Modified: trunk/dports/python/py-ngl/Portfile
===================================================================
--- trunk/dports/python/py-ngl/Portfile	2016-06-11 08:41:09 UTC (rev 149327)
+++ trunk/dports/python/py-ngl/Portfile	2016-06-11 08:49:10 UTC (rev 149328)
@@ -68,11 +68,10 @@
     livecheck.type   none
 
     test.run         yes
-    # FIXME: how to set macosx, 10.10, and x86_64 in general?
-    test.env-append        PYTHONPATH=${worksrcpath}/build/lib.macosx-10.10-x86_64-${python.version}/PyNGL:${PYTHONPATH}
-    test {
-        system "${python.bin} ${worksrcpath}/build/scripts-${python.version}/pynglex -w x11 ngl01p"
-    }
+    test.env-append         PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
+    test.cmd                ${python.bin} ./build/scripts-${python.branch}/pynglex
+    test.target
+    test.args               -w x11 ngl01p
 } else {
     livecheck.type   regex
     livecheck.url    http://www.pyngl.ucar.edu/Download/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160611/ba11f265/attachment.html>


More information about the macports-changes mailing list