Ticket #29989: gimp2-Portfile.diff

File gimp2-Portfile.diff, 2.4 KB (added by rmstonecipher@…, 13 years ago)
  • Portfile

    old new  
    77conflicts       gimp2-devel
    88# please remember to update the gimp metapackage to match
    99version         2.6.11
    10 revision        5
     10revision        6
    1111categories      graphics
    1212maintainers     devans
    1313homepage        http://www.gimp.org/
     
    5252                port:libgnomeui \
    5353                port:curl \
    5454                port:libwmf \
    55                 port:lcms \
    56                 port:py26-gtk
     55                port:lcms
    5756
    5857platform darwin 9 {
    5958    post-patch {
     
    6261    }
    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)
     64variant python27 conflicts python26 description {Build Bindings for Python 2.7} {
     65    depends_lib-append  port:py27-gtk
     66    configure.python    ${prefix}/bin/python2.7
     67    set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
     68    configure.pkg_config_path ${python_framework}/lib/pkgconfig
     69    configure.env   PATH=${python_framework}/bin:$env(PATH)
     70}
     71
     72variant python26 conflicts python27 description {Build Bindings for Python 2.6} {
     73    depends_lib-append  port:py26-gtk
     74    configure.python    ${prefix}/bin/python2.6
     75    set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
     76    configure.pkg_config_path ${python_framework}/lib/pkgconfig
     77    configure.env   PATH=${python_framework}/bin:$env(PATH)
     78}
     79
    6980configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
    7081                --enable-mp \
    7182                --with-pdbgen \
     
    7788                --without-gvfs \
    7889                --without-webkit
    7990
    80 variant no_python description {Disable Python scripts and filters} {
    81     depends_lib-delete      port:py26-gtk
     91variant no_python conflicts python26 python27 description {Disable Python scripts and filters} {
    8292    configure.args-append   --disable-python
    8393}
    8494
     95# default to python27 bindings
     96if {![variant_isset no_python] && ![variant_isset python27] && ![variant_isset python26]} {
     97    default_variants +python27
     98}
     99
    85100variant gvfs description {Enable gvfs support} {
    86101    depends_lib-append      port:gvfs
    87102    configure.args-delete   --without-gvfs