New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80839


Ignore:
Timestamp:
07/18/11 14:24:30 (4 years ago)
Author:
ryandesign@…
Message:

terminator: add python variants to match what was recently done to vte; see #30072

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/terminator/Portfile

    r72864 r80839  
    33 
    44PortSystem              1.0 
    5 PortGroup               python26 1.0 
    65 
    76name                    terminator 
    87version                 0.95 
    9 revision                1 
     8revision                2 
     9 
     10if {![variant_isset python26] && ![variant_isset python27]} { 
     11    if {[file exists ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/vtemodule.so]} { 
     12        default_variants +python26 
     13    } else { 
     14        default_variants +python27 
     15        variant_set python27 
     16    } 
     17} 
     18 
     19variant python26 conflicts python27 description {Use Python 2.6} {} 
     20if {[variant_isset python26]} { 
     21    PortGroup           python26 1.0 
     22    pre-configure { 
     23        if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} { 
     24            ui_error "To install ${name} with the +python26 variant, vte must be installed with the +python26 variant." 
     25            return -code error "incompatible vte installation" 
     26        } 
     27    } 
     28} 
     29 
     30variant python27 conflicts python26 description {Use Python 2.7} {} 
     31if {[variant_isset python27]} { 
     32    PortGroup           python27 1.0 
     33    pre-configure { 
     34        if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} { 
     35            ui_error "To install ${name} with the +python27 variant, vte must be installed with the +python27 variant." 
     36            return -code error "incompatible vte installation" 
     37        } 
     38    } 
     39} 
     40 
    1041categories              sysutils 
    1142platforms               darwin 
Note: See TracChangeset for help on using the changeset viewer.