Ticket #37655: Portfile.diff

File Portfile.diff, 1.5 KB (added by ci42, 11 years ago)
  • Portfile

     
    44PortSystem          1.0
    55PortGroup           cmake 1.0
    66PortGroup           github 1.0
     7PortGroup           active_variants 1.1
    78
    89github.setup        idiap bob 1.1.2 v
    910set soversion       1.1
     
    112113
    113114# check if boost is installed with the required python variant
    114115if {[variant_isset python26]} {
    115     set boost_python_required   2.6
    116     set boost_variant           +python26
     116    set boost_python_variant    python26
    117117} elseif {[variant_isset python27]} {
    118     set boost_python_required   2.7
    119     set boost_variant           +python27
     118    set boost_python_variant    python27
    120119}
    121120
    122 set boost_python_lib ${prefix}/lib/libboost_python-mt.dylib
    123 set boost_python_version "0"
    124 if {[file exists ${boost_python_lib}]} {
    125     set boost_python_version [exec /usr/bin/otool -L ${boost_python_lib} | /usr/bin/grep Python | /usr/bin/sed -e "s|^.*Versions/||" -e "s|/.*||"]
    126 }
    127 if {${boost_python_version} != ${boost_python_required}} {
    128     depends_lib-delete port:boost
    129     pre-configure {
    130         ui_error "${name} requires boost installed with variant ${boost_variant}."
    131         ui_error "Please install boost as follows and try installing ${name} again:"
    132         ui_error "sudo port install boost ${boost_variant}"
    133         return -code error "incompatible boost installation"
    134     }
    135 }
     121require_active_variants boost   ${boost_python_variant}