Ticket #53197: py-pyqt5-5.7.1.diff

File py-pyqt5-5.7.1.diff, 3.0 KB (added by RJVB (René Bertin), 7 years ago)

patch against the current port:py-sip to upgrade it to 5.7.1

  • python/py-pyqt5/Portfile

    diff --git a/python/py-pyqt5/Portfile b/python/py-pyqt5/Portfile
    index f18fd41..8b953f6 100644
    a b PortSystem 1.0 
    44PortGroup               python 1.0
    55
    66name                    py-pyqt5
    7 version                 5.6
    8 revision                4
     7version                 5.7.1
    98categories-append       devel
    109platforms               darwin
    1110maintainers             mmoll openmaintainer
    homepage http://www.riverbankcomputing.co.uk/software/pyqt/intro 
    1615license                 GPL-3
    1716master_sites            sourceforge:pyqt
    1817distname                PyQt5_gpl-${version}
    19 checksums               rmd160  498905b678fc2641c8ff6521b5c2126ac6ddf347 \
    20                         sha256  2e481a6c4c41b96ed3b33449e5f9599987c63a5c8db93313bd57a6acbf20f0e1
     18checksums               rmd160  d103fd1e27b8591893b55f56eb0d306767569e2b \
     19                        sha256  be849f212a074049b9ebc10b6c07dddefb86e6d30e8df8a5c715cbb2cf7fad14
    2120
    2221python.versions 27 34 35
    2322
    if {${name} ne ${subport}} { 
    4241                        global qt5_dependency
    4342                        depends_lib-append ${qt5_dependency}
    4443                    } else {
    45                         depends_lib-append port:${qt5main}
     44                        # pull in the port:qt5 meta-port, plus 2 components qt5-kde provides by default
     45                        depends_lib-append port:${qt5main} \
     46                            port:${qt5main}-qtscript \
     47                            port:${qt5main}-qt3d
    4648                    }
    4749                } else {
    4850                    set portname "${qt5main}-${comp}"
    if {${name} ne ${subport}} { 
    5557    # pull in the Qt5 meta-port
    5658    qt5.depends_component \
    5759                        qt5
    58 
    5960    depends_lib-append  port:py${python.version}-sip \
    6061                        port:dbus-python${python.version}
    6162
  • python/py-pyqt5/files/patch-dbus_includes.diff

    diff --git a/python/py-pyqt5/files/patch-dbus_includes.diff b/python/py-pyqt5/files/patch-dbus_includes.diff
    index aea645d..b45a2c8 100644
    a b  
    1 --- configure.py.orig   2016-04-24 03:55:08.000000000 -0700
    2 +++ configure.py        2016-12-18 09:15:29.000000000 -0700
    3 @@ -2140,7 +2140,7 @@
    4      else:
    5          dlist = target_config.dbus_inc_dirs
     1--- configure.py.orig   2017-01-03 15:00:18.000000000 +0100
     2+++ configure.py        2017-01-03 19:56:25.000000000 +0100
     3@@ -2147,7 +2147,7 @@
     4     # Instead we look where DBus itself is installed - which in most cases will
     5     # be where dbus-python is also installed.
     6     if target_config.pydbus_inc_dir != '':
     7-        target_config.dbus_inc_dirs = [target_config.pydbus_inc_dir]
     8+        target_config.dbus_inc_dirs.append(target_config.pydbus_inc_dir)
    69 
    7 -    target_config.dbus_inc_dirs = []
    8 +    #target_config.dbus_inc_dirs = []
    9  
    10      for d in dlist:
     10     for d in target_config.dbus_inc_dirs:
    1111         if os.access(os.path.join(d, 'dbus', 'dbus-python.h'), os.F_OK):