[87170] trunk/dports/python/py-graph-tool/Portfile

mmoll at macports.org mmoll at macports.org
Sat Nov 12 13:59:21 PST 2011


Revision: 87170
          http://trac.macports.org/changeset/87170
Author:   mmoll at macports.org
Date:     2011-11-12 13:59:16 -0800 (Sat, 12 Nov 2011)
Log Message:
-----------
py-graph-tool: check if boost.python is installed

Modified Paths:
--------------
    trunk/dports/python/py-graph-tool/Portfile

Modified: trunk/dports/python/py-graph-tool/Portfile
===================================================================
--- trunk/dports/python/py-graph-tool/Portfile	2011-11-12 21:01:33 UTC (rev 87169)
+++ trunk/dports/python/py-graph-tool/Portfile	2011-11-12 21:59:16 UTC (rev 87170)
@@ -29,6 +29,13 @@
 python.versions     25 26 27 31 32
 python.default_version 27
 
+# graph-tool relies on Boost.Python, so make sure it is installed.
+pre-fetch {
+    if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
+        return -code error "Please reinstall boost with one of the python variants enabled."
+    }
+}
+
 if {$subport != $name} {
     depends_lib-append port:boost \
                        port:cgal \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111112/a265e9b4/attachment-0001.html>


More information about the macports-changes mailing list