[101636] trunk/dports/science/bob/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Tue Jan 15 14:40:52 PST 2013


Revision: 101636
          https://trac.macports.org/changeset/101636
Author:   ciserlohn at macports.org
Date:     2013-01-15 14:40:52 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
bob: use require_active_variants to check for the correct boost python variant

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

Modified: trunk/dports/science/bob/Portfile
===================================================================
--- trunk/dports/science/bob/Portfile	2013-01-15 22:24:59 UTC (rev 101635)
+++ trunk/dports/science/bob/Portfile	2013-01-15 22:40:52 UTC (rev 101636)
@@ -4,6 +4,7 @@
 PortSystem          1.0
 PortGroup           cmake 1.0
 PortGroup           github 1.0
+PortGroup           active_variants 1.1
 
 github.setup        idiap bob 1.1.2 v
 set soversion       1.1
@@ -112,24 +113,9 @@
 
 # check if boost is installed with the required python variant
 if {[variant_isset python26]} {
-    set boost_python_required   2.6
-    set boost_variant           +python26
+    set boost_python_variant    python26
 } elseif {[variant_isset python27]} {
-    set boost_python_required   2.7
-    set boost_variant           +python27
+    set boost_python_variant    python27
 }
 
-set boost_python_lib ${prefix}/lib/libboost_python-mt.dylib
-set boost_python_version "0"
-if {[file exists ${boost_python_lib}]} {
-    set boost_python_version [exec /usr/bin/otool -L ${boost_python_lib} | /usr/bin/grep Python | /usr/bin/sed -e "s|^.*Versions/||" -e "s|/.*||"]
-}
-if {${boost_python_version} != ${boost_python_required}} {
-    depends_lib-delete port:boost
-    pre-configure {
-        ui_error "${name} requires boost installed with variant ${boost_variant}."
-        ui_error "Please install boost as follows and try installing ${name} again:"
-        ui_error "sudo port install boost ${boost_variant}"
-        return -code error "incompatible boost installation"
-    }
-}
+require_active_variants boost   ${boost_python_variant}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/e7bc18a1/attachment.html>


More information about the macports-changes mailing list