Ticket #28036: py-pyqt4-2vs3.patch

File py-pyqt4-2vs3.patch, 810 bytes (added by jmroot (Joshua Root), 12 years ago)
  • Portfile

     
    77
    88name            py-pyqt4
    99version         4.8.6
     10revision        1
    1011python.versions   24 25 26 27 31
    1112categories      python devel
    1213platforms       macosx
     
    172173            move ${destroot}${qt_data_dir}/qsci/api/python/PyQt4.api \
    173174                ${destroot}${qt_data_dir}/qsci/api/python/PyQt4-Python${python.branch}.api
    174175        }
     176
     177        # delete python3 code from python2 installs and vice versa
     178        if {${python.version} >= 30} {
     179            delete ${destroot}${python.pkgd}/PyQt4/uic/port_v2
     180        } else {
     181            delete ${destroot}${python.pkgd}/PyQt4/uic/port_v3
     182        }
    175183    }
    176184
    177185    variant debug description "Build debug libraries" {