Ticket #28159: libproxy-Portfile.diff

File libproxy-Portfile.diff, 1.8 KB (added by rmstonecipher@…, 14 years ago)

Updated to include variants for python26, python27

  • Portfile

    old new  
    77
    88name                libproxy
    99version             0.4.6
     10revision            1
    1011epoch               1
    1112categories          net
    1213maintainers         devans openmaintainer
     
    3132                    port:pkgconfig
    3233
    3334depends_lib         port:gconf \
    34                     port:python26 \
    3535                    port:perl5
    3636
    37 set python_prefix   ${frameworks_dir}/Python.framework/Versions/2.6
    38 configure.python    ${prefix}/bin/python2.6
     37# default to python27 bindings
     38if {![variant_isset python27] && ![variant_isset python26]} {
     39    default_variants +python27
     40}
     41
     42variant python27 conflicts python26 \
     43description {Build Bindings for Python 2.7} {
     44    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
     45    depends_lib-append port:python27
     46    configure.python ${prefix}/bin/python2.7
     47    configure.args-append \
     48                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.7/site-packages
     49}
     50
     51variant python26 conflicts python27 \
     52description {Build Bindings for Python 2.6} {
     53    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
     54    depends_lib-append port:python26
     55    configure.python ${prefix}/bin/python2.6
     56    configure.args-append \
     57                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.6/site-packages
     58}
    3959
    4060#
    4161# webkit and mozjs pacrunners disabled by default due to the
     
    5777                    -DWITH_NM=NO \
    5878                    -DWITH_VALA=NO \
    5979                    -DWITH_PERL=YES \
    60                     -DWITH_PYTHON=YES \
    61                     -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.6/site-packages
     80                    -DWITH_PYTHON=YES
    6281
    6382variant no_gnome description {Disable GNOME plugin} {
    6483        configure.args-delete -DWITH_GNOME=YES