New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80085


Ignore:
Timestamp:
07/03/11 17:18:24 (4 years ago)
Author:
jeremyhu@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/gimp2/Portfile

    r77944 r80085  
    88# please remember to update the gimp metapackage to match 
    99version         2.6.11 
    10 revision        5 
     10revision        6 
    1111categories      graphics 
    1212maintainers     devans 
     
    5353                port:curl \ 
    5454                port:libwmf \ 
    55                 port:lcms \ 
    56                 port:py26-gtk 
     55                port:lcms 
    5756 
    5857platform darwin 9 { 
     
    6362} 
    6463 
    65 configure.python    ${prefix}/bin/python2.6 
    66 set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 
    67 configure.pkg_config_path ${python_framework}/lib/pkgconfig 
    68 configure.env   PATH=${python_framework}/bin:$env(PATH) 
    6964configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \ 
    7065                --enable-mp \ 
     
    7873                --without-webkit 
    7974 
     75variant python25 conflicts no_python python26 python27 description {Use python 2.5} { 
     76    configure.python          ${prefix}/bin/python2.5 
     77    depends_lib-append        port:py25-gtk 
     78    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5 
     79    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     80    configure.env             PATH=${python_framework}/bin:$env(PATH) 
     81} 
     82 
     83variant python26 conflicts no_python python25 python27 description {Use python 2.6} { 
     84    configure.python          ${prefix}/bin/python2.6 
     85    depends_lib-append        port:py26-gtk 
     86    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6 
     87    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     88    configure.env             PATH=${python_framework}/bin:$env(PATH) 
     89} 
     90 
     91variant python27 conflicts no_python python25 python26 description {Use python 2.7} { 
     92    configure.python          ${prefix}/bin/python2.7 
     93    depends_lib-append        port:py27-gtk 
     94    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7 
     95    configure.pkg_config_path ${python_framework}/lib/pkgconfig 
     96    configure.env             PATH=${python_framework}/bin:$env(PATH) 
     97} 
     98 
    8099variant no_python description {Disable Python scripts and filters} { 
    81     depends_lib-delete      port:py26-gtk 
    82100    configure.args-append   --disable-python 
     101} 
     102 
     103if {![variant_isset no_python] && ![variant_isset python25] && ![variant_isset python26]} { 
     104    default_variants +python27 
    83105} 
    84106 
Note: See TracChangeset for help on using the changeset viewer.