[MacPorts] #58237: py-spyder: py-pyqt5 dependency also needs +webkit

MacPorts noreply at macports.org
Tue Mar 26 20:26:32 UTC 2019


#58237: py-spyder: py-pyqt5 dependency also needs +webkit
---------------------------------+------------------------
  Reporter:  mf2k                |      Owner:  reneeotten
      Type:  defect              |     Status:  assigned
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:
Resolution:                      |   Keywords:
      Port:  py-spyder py-pyqt5  |
---------------------------------+------------------------

Comment (by mamoll):

 I don't have time to work on this anytime soon. If you could create a PR,
 that'd be great. You can use this diff as a starting point:
 {{{
 diff --git a/python/py-pyqt5/Portfile b/python/py-pyqt5/Portfile
 index 8b55495116..5a93c9e765 100644
 --- a/python/py-pyqt5/Portfile
 +++ b/python/py-pyqt5/Portfile
 @@ -24,6 +24,9 @@ checksums               rmd160
 bfe5376baf97bde0ebad0fd7f109e23ff3242975 \

  python.versions 27 34 35 36 37
  subport "${name}-common" {}
 +foreach pv ${python.versions} {
 +    subport "py${pv}-pyqt5-webkit" {}
 +}

  if {${subport} eq "${name}-common"} {
      description-append          (.sip sourcefiles)
 @@ -41,6 +44,27 @@ if {${subport} eq "${name}-common"} {
          file copy {*}[glob -directory ${worksrcpath}/sip/ Q*]
 ${destroot}${prefix}/share/sip/PyQt5
          file copy ${worksrcpath}/sip/Enginio
 ${destroot}${prefix}/share/sip/PyQt5
      }
 +} elseif {${subport} eq "${name}-webkit"} {
 +    PortGroup           qmake5 1.0
 +    description         "PyQt5 Webkit bindings"
 +    long_description    "${description}"
 +    master_sites
 https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${version}
 +    distname            PyQtWebEngine_gpl-${version}.tar.gz
 +    depends_lib-append   port:py${python.version}-pyqt5
 +    use_configure       yes
 +    configure.pre_args
 +    configure.cmd       "${python.bin} configure.py"
 +    qt5.spec_cmd        --spec=
 +    configure.args-append \
 +                        -q ${qt_qmake_cmd} \
 +                        --verbose \
 +                        --confirm-license \
 +                        --sip=${prefix}/bin/sip-${python.branch} \
 +                        --dbus=${python.include}/dbus-1.0 \
 +                        --designer-
 plugindir=${qt_plugins_dir}/designer/Py${python.version}Qt5 \
 +                        --qml-
 plugindir=${qt_plugins_dir}/Py${python.version}Qt5 \
 +                        --no-qsci-api \
 +                        --no-dist-info
  } elseif {${name} ne ${subport}} {
      PortGroup           qmake5 1.0

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58237#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list