Changeset 97952
- Timestamp:
- Sep 20, 2012, 7:49:46 PM (12 years ago)
- Location:
- trunk/dports/python/py-pyqt4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/python/py-pyqt4/Portfile
r96669 r97952 7 7 8 8 name py-pyqt4 9 version 4.9.1 10 revision 1 9 version 4.9.4 11 10 python.versions 24 25 26 27 31 32 12 11 categories python devel … … 26 25 dist_subdir python 27 26 28 checksums md5 3b9112a49a3484032f29ea7fe65c31e5 \ 29 sha1 6c0dbf0edb9a0f07fb3ed95f6c3b4b5d0458dbe7 \ 30 rmd160 feb4c3abdb75a32e566f426c85d686da92a0952a 27 checksums sha1 3fe827fed91ec710746fa980f433313dfec2d5fd \ 28 rmd160 5ef976c234bd15f2c11d04b3b742db79f9a9f00a 31 29 32 30 if {$subport != $name} { -
trunk/dports/python/py-pyqt4/files/patch-configure.py
r96669 r97952 1 --- configure.py.orig 2012-0 2-10 05:45:41.000000000 -05002 +++ configure.py 2012-0 8-16 15:34:24.000000000 -04001 --- configure.py.orig 2012-09-18 10:30:46.000000000 -0400 2 +++ configure.py 2012-09-18 10:31:58.000000000 -0400 3 3 @@ -44,6 +44,7 @@ 4 4 qt_dir = None … … 9 9 qt_datadir = None 10 10 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) 16 25 + 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 @@ 21 31 22 32 sipconfig.inform("SIP %s is being used." % sipcfg.sip_version_str) 23 33 sipconfig.inform("The Qt header files are in %s." % qt_incdir) 24 34 - sipconfig.inform("The %s Qt libraries are in %s." % (lib_type, qt_libdir)) 25 +26 35 + if sys.platform == "darwin" and qt_framework: 27 36 + sipconfig.inform("The %s Qt frameworks are in %s." % (lib_type, qt_frameworkdir)) … … 31 40 sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir) 32 41 sipconfig.inform("These PyQt modules will be built: %s." % ", ".join(pyqt_modules)) 33 @@ -11 33,7 +1138,8 @@42 @@ -1146,7 +1143,8 @@ 34 43 "qt_dir": qt_dir, 35 44 "qt_data_dir": qt_datadir, … … 41 50 42 51 sipconfig.create_config_module(module, template, content, macros) 43 @@ -18 71,11 +1877,13@@52 @@ -1894,12 +1892,14 @@ 44 53 names = list(sipcfg.build_macros().keys()) 45 54 names.append("INCDIR_QT") … … 51 60 "QT_INSTALL_BINS": qt_bindir, 52 61 "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 55 65 } 56 66 57 @@ -1902,7 +1910,7 @@ 67 macros = sipconfig.parse_build_macros(fname, names, overrides, properties) 68 @@ -1938,7 +1938,7 @@ 58 69 59 70 # Work out how Qt was built on MacOS. … … 64 75 qt_framework = 1 65 76 66 @@ -19 19,6 +1927,7 @@77 @@ -1955,6 +1955,7 @@ 67 78 sipcfg.qt_threaded = 1 68 79 sipcfg.qt_dir = qt_dir … … 72 83 return ConfigurePyQt4(generator) 73 84 74 @@ -19 34,7 +1943,7 @@85 @@ -1970,7 +1971,7 @@ 75 86 76 87 … … 81 92 """ 82 93 sipconfig.inform("Determining the layout of your Qt installation...") 83 @@ - 1999,6 +2008,7 @@94 @@ -2040,6 +2041,7 @@ 84 95 out << QLibraryInfo::location(QLibraryInfo::PrefixPath) << '\\n'; 85 96 out << QLibraryInfo::location(QLibraryInfo::HeadersPath) << '\\n'; … … 89 100 out << QLibraryInfo::location(QLibraryInfo::DataPath) << '\\n'; 90 101 out << QLibraryInfo::location(QLibraryInfo::PluginsPath) << '\\n'; 91 @@ -21 17,20 +2127,21 @@102 @@ -2158,20 +2160,21 @@ 92 103 lines = f.read().strip().split("\n") 93 104 f.close()
Note: See TracChangeset
for help on using the changeset viewer.