New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80079


Ignore:
Timestamp:
07/03/11 16:49:21 (4 years ago)
Author:
jeremyhu@…
Message:

libgweather: Add variants to choose between python versions (2.5, 2.6, and 2.7)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/libgweather/Portfile

    r77689 r80079  
    66name            libgweather 
    77version         2.30.3 
    8 revision        2 
     8revision        3 
    99set branch      [join [lrange [split ${version} .] 0 1] .] 
    1010maintainers     devans openmaintainer 
     
    3131 
    3232depends_lib     port:gconf \ 
    33                 port:libsoup \ 
    34                 port:py26-gtk 
     33                port:libsoup 
    3534 
    3635patchfiles      patch-python-prefix.diff 
     
    4140                --enable-python 
    4241 
    43 configure.python ${prefix}/bin/python2.6 
    44 set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 
    45 configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     42variant python25 conflicts python26 python27 description {Use python 2.5} { 
     43    configure.python          ${prefix}/bin/python2.5 
     44    depends_lib-append        port:py25-gtk 
     45    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5 
     46    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
    4647 
    47 # 
    48 # ensure build path contains path to python executables (#26201) 
    49 # 
     48    # ensure build path contains path to python executables (#26201) 
     49    build.env       PATH=${python_framework}/bin:$env(PATH) 
     50} 
    5051 
    51 build.env       PATH=${python_framework}/bin:$env(PATH) 
     52variant python26 conflicts python25 python27 description {Use python 2.6} { 
     53    configure.python          ${prefix}/bin/python2.6 
     54    depends_lib-append        port:py26-gtk 
     55    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6 
     56    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     57 
     58    # ensure build path contains path to python executables (#26201) 
     59    build.env       PATH=${python_framework}/bin:$env(PATH) 
     60} 
     61 
     62variant python27 conflicts python25 python26 description {Use python 2.7} { 
     63    configure.python          ${prefix}/bin/python2.7 
     64    depends_lib-append        port:py27-gtk 
     65    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7 
     66    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     67 
     68    # ensure build path contains path to python executables (#26201) 
     69    build.env       PATH=${python_framework}/bin:$env(PATH) 
     70} 
     71 
     72if {![variant_isset python25] && ![variant_isset python26]} { 
     73    default_variants +python27 
     74} 
    5275 
    5376post-activate { 
Note: See TracChangeset for help on using the changeset viewer.