Changeset 97952


Ignore:
Timestamp:
Sep 20, 2012, 7:49:46 PM (12 years ago)
Author:
michaelld@…
Message:

py-pyqt4 : upgrade to 4.9.4_0. Addresses tickets #35789 and #36183.

Location:
trunk/dports/python/py-pyqt4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-pyqt4/Portfile

    r96669 r97952  
    77
    88name            py-pyqt4
    9 version         4.9.1
    10 revision    1
     9version         4.9.4
    1110python.versions   24 25 26 27 31 32
    1211categories      python devel
     
    2625dist_subdir         python
    2726
    28 checksums           md5     3b9112a49a3484032f29ea7fe65c31e5 \
    29                     sha1    6c0dbf0edb9a0f07fb3ed95f6c3b4b5d0458dbe7 \
    30                     rmd160  feb4c3abdb75a32e566f426c85d686da92a0952a
     27checksums           sha1    3fe827fed91ec710746fa980f433313dfec2d5fd \
     28                    rmd160  5ef976c234bd15f2c11d04b3b742db79f9a9f00a
    3129
    3230if {$subport != $name} {
  • trunk/dports/python/py-pyqt4/files/patch-configure.py

    r96669 r97952  
    1 --- configure.py.orig   2012-02-10 05:45:41.000000000 -0500
    2 +++ configure.py        2012-08-16 15:34:24.000000000 -0400
     1--- configure.py.orig   2012-09-18 10:30:46.000000000 -0400
     2+++ configure.py        2012-09-18 10:31:58.000000000 -0400
    33@@ -44,6 +44,7 @@
    44 qt_dir = None
     
    99 qt_datadir = None
    1010 qt_pluginsdir = None
    11 @@ -966,7 +967,7 @@
    12                  if sys.platform == "darwin":
    13                      # We need to work out how to specify the right framework
    14                      # version.
    15 -                    link = "-framework Python"
     11@@ -980,16 +981,9 @@
     12                     dynamic_pylib = "--enable-shared" in config_args
     13 
     14                 if dynamic_pylib:
     15-                    if glob.glob("%s/lib/libpython%d.%d*" % (ducfg["exec_prefix"], py_major, py_minor)):
     16-                        lib_dir_flag = quote("-L%s/lib" % ducfg["exec_prefix"])
     17-                    elif glob.glob("%s/libpython%d.%d*" % (ducfg["LIBDIR"], py_major, py_minor)):
     18-                        lib_dir_flag = quote("-L%s" % ducfg["LIBDIR"])
     19-                    else:
     20-                        sipconfig.inform("Qt Designer plugin disabled because Python library couldn't be found")
     21-                        lib_dir_flag = ''
     22-                        opts.designer_plugin = False
     23 
     24-                    link = "%s -lpython%d.%d%s" % (lib_dir_flag, py_major, py_minor, abi)
    1625+                    link = "%s @@MACPORTS_PYTHON_FRAMEWORK@@" % sipcfg.build_macros().get('LFLAGS', '')
    17                  elif "--enable-shared" in ducfg.get("CONFIG_ARGS", ""):
    18                      if glob.glob("%s/lib/libpython%d.%d*" % (ducfg["exec_prefix"], py_major, py_minor)):
    19                          lib_dir_flag = quote("-L%s/lib" % ducfg["exec_prefix"])
    20 @@ -1075,7 +1076,11 @@
     26+
     27                 else:
     28                     sipconfig.inform("Qt Designer plugin disabled because Python library is static")
     29                     opts.designer_plugin = False
     30@@ -1088,7 +1082,10 @@
    2131 
    2232     sipconfig.inform("SIP %s is being used." % sipcfg.sip_version_str)
    2333     sipconfig.inform("The Qt header files are in %s." % qt_incdir)
    2434-    sipconfig.inform("The %s Qt libraries are in %s." % (lib_type, qt_libdir))
    25 +
    2635+    if sys.platform == "darwin" and qt_framework:
    2736+        sipconfig.inform("The %s Qt frameworks are in %s." % (lib_type, qt_frameworkdir))
     
    3140     sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
    3241     sipconfig.inform("These PyQt modules will be built: %s." % ", ".join(pyqt_modules))
    33 @@ -1133,7 +1138,8 @@
     42@@ -1146,7 +1143,8 @@
    3443         "qt_dir":             qt_dir,
    3544         "qt_data_dir":        qt_datadir,
     
    4150 
    4251     sipconfig.create_config_module(module, template, content, macros)
    43 @@ -1871,11 +1877,13 @@
     52@@ -1894,12 +1892,14 @@
    4453     names = list(sipcfg.build_macros().keys())
    4554     names.append("INCDIR_QT")
     
    5160         "QT_INSTALL_BINS":      qt_bindir,
    5261         "QT_INSTALL_HEADERS":   qt_incdir,
    53 +        "QT_INSTALL_FRAMEWORKS": qt_frameworkdir,
    54          "QT_INSTALL_LIBS":      qt_libdir
     62-        "QT_INSTALL_LIBS":      qt_libdir
     63+        "QT_INSTALL_LIBS":      qt_libdir,
     64+        "QT_INSTALL_FRAMEWORKS": qt_frameworkdir
    5565     }
    5666 
    57 @@ -1902,7 +1910,7 @@
     67     macros = sipconfig.parse_build_macros(fname, names, overrides, properties)
     68@@ -1938,7 +1938,7 @@
    5869 
    5970     # Work out how Qt was built on MacOS.
     
    6475             qt_framework = 1
    6576 
    66 @@ -1919,6 +1927,7 @@
     77@@ -1955,6 +1955,7 @@
    6778     sipcfg.qt_threaded = 1
    6879     sipcfg.qt_dir = qt_dir
     
    7283     return ConfigurePyQt4(generator)
    7384 
    74 @@ -1934,7 +1943,7 @@
     85@@ -1970,7 +1971,7 @@
    7586 
    7687 
     
    8192     """
    8293     sipconfig.inform("Determining the layout of your Qt installation...")
    83 @@ -1999,6 +2008,7 @@
     94@@ -2040,6 +2041,7 @@
    8495     out << QLibraryInfo::location(QLibraryInfo::PrefixPath) << '\\n';
    8596     out << QLibraryInfo::location(QLibraryInfo::HeadersPath) << '\\n';
     
    89100     out << QLibraryInfo::location(QLibraryInfo::DataPath) << '\\n';
    90101     out << QLibraryInfo::location(QLibraryInfo::PluginsPath) << '\\n';
    91 @@ -2117,20 +2127,21 @@
     102@@ -2158,20 +2160,21 @@
    92103     lines = f.read().strip().split("\n")
    93104     f.close()
Note: See TracChangeset for help on using the changeset viewer.