[99975] trunk/dports/python/py-graph-tool/Portfile
mmoll at macports.org
mmoll at macports.org
Fri Nov 23 08:55:36 PST 2012
Revision: 99975
https://trac.macports.org/changeset/99975
Author: mmoll at macports.org
Date: 2012-11-23 08:55:35 -0800 (Fri, 23 Nov 2012)
Log Message:
-----------
python/py-graph-tool: use active_variants portgroup to check for for boost.python
Modified Paths:
--------------
trunk/dports/python/py-graph-tool/Portfile
Modified: trunk/dports/python/py-graph-tool/Portfile
===================================================================
--- trunk/dports/python/py-graph-tool/Portfile 2012-11-23 16:31:32 UTC (rev 99974)
+++ trunk/dports/python/py-graph-tool/Portfile 2012-11-23 16:55:35 UTC (rev 99975)
@@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup active_variants 1.0
set realname graph-tool
name py-${realname}
@@ -27,13 +28,6 @@
python.versions 26 27
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} {
universal_variant no
depends_build-append port:pkgconfig
@@ -46,6 +40,10 @@
port:py${python.version}-scipy \
port:py${python.version}-gobject3
use_configure yes
+ pre-configure {
+ # graph-tool relies on Boost.Python, so make sure it is installed.
+ require_active_variants boost python${python.version}
+ }
configure.env-append PYTHON=${python.bin} \
PYTHON_VERSION=${python.branch} \
PYTHON_CPPFLAGS=-I${python.include} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121123/0e3343c0/attachment.html>
More information about the macports-changes
mailing list