Index: py-wxPython40/Makefile =================================================================== --- /dev/null +++ py-wxPython40/Makefile @@ -0,0 +1,40 @@ +# $FreeBSD$ + +PORTNAME= wxPython +PORTVERSION= 4.0.6 +CATEGORIES= x11-toolkits python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 40 +DIST_SUBDIR= python + +MAINTAINER= python@FreeBSD.org +COMMENT= GUI toolkit for the Python programming language + +LICENSE= WXWINDOWS LGPL21+ GPLv2+ +LICENSE_COMB= multi +LICENSE_NAME_WXWINDOWS= wxWindows Library Licence, Version 3.1 +LICENSE_FILE_WXWINDOWS= ${WRKSRC}/license/licence.txt +LICENSE_PERMS_WXWINDOWS= dist-mirror pkg-mirror auto-accept + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR} + +USES= compiler:c++11-lib gl localbase pkgconfig python +USE_GL= glu +USE_WX= 3.0 +USE_PYTHON= distutils autoplist + +OPTIONS_DEFINE= NLS +OPTIONS_DEFAULT= NLS + +NLS_USES= gettext + +post-patch: + @${REINPLACE_CMD} -e "s|WX_CONFIG = 'wx-config'|WX_CONFIG = 'wxgtk3u-3.0-config'|" ${WRKSRC}/build.py + +#post-install: +#.for l in _glcanvas _dataview _richtext _html2 _core siplib _media _aui _xml _propgrid _html _adv _stc _ribbon _xrc _grid +# @${STRIPCMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/wx/${l}.so +#.endfor + +.include Index: py-wxPython40/distinfo =================================================================== --- /dev/null +++ py-wxPython40/distinfo @@ -0,0 +1,6 @@ +TIMESTAMP = 1568055855 +SHA256 (python/wxPython-4.0.6.tar.gz) = 35cc8ae9dd5246e2c9861bb796026bbcb9fb083e4d49650f776622171ecdab37 +SIZE (python/wxPython-4.0.6.tar.gz) = 68815031 +TIMESTAMP = 1568055855 +SHA256 (python/wxPython-4.0.6.tar.gz) = 35cc8ae9dd5246e2c9861bb796026bbcb9fb083e4d49650f776622171ecdab37 +SIZE (python/wxPython-4.0.6.tar.gz) = 68815031 Index: py-wxPython40/files/patch-build.py =================================================================== --- /dev/null +++ py-wxPython40/files/patch-build.py @@ -0,0 +1,11 @@ +--- build.py.orig 2019-05-21 23:12:12 UTC ++++ build.py +@@ -401,7 +401,7 @@ def makeOptionParser(): + ("mac_framework", (False, "Build wxWidgets as a Mac framework.")), + ("mac_arch", ("", "Comma separated list of architectures to build on Mac")), + +- ("use_syswx", (False, "Try to use an installed wx rather than building the " ++ ("use_syswx", (True, "Try to use an installed wx rather than building the " + "one in this source tree. The wx-config in {prefix}/bin " + "or the first found on the PATH determines which wx is " + "used. Implies --no_magic.")), Index: py-wxPython40/files/patch-etg_propgridiface.py =================================================================== --- /dev/null +++ py-wxPython40/files/patch-etg_propgridiface.py @@ -0,0 +1,11 @@ +--- etg/propgridiface.py.orig 2019-05-21 23:12:12 UTC ++++ etg/propgridiface.py +@@ -89,7 +89,7 @@ def run(): + return sipGetState(sipTransferObj); + } + else if (sipPy == Py_None) { +- *sipCppPtr = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL)); ++ *sipCppPtr = new wxPGPropArgCls(static_cast< wxPGProperty * >(NULL)); + return sipGetState(sipTransferObj); + } + else { Index: py-wxPython40/files/patch-sip_cpp_sip__corecmodule.cpp =================================================================== --- /dev/null +++ py-wxPython40/files/patch-sip_cpp_sip__corecmodule.cpp @@ -0,0 +1,12 @@ +--- sip/cpp/sip_corecmodule.cpp.orig 2019-09-09 20:02:54 UTC ++++ sip/cpp/sip_corecmodule.cpp +@@ -7189,9 +7189,6 @@ wxUIntPtr testUIntPtrTypemap(wxUIntPtr value) + // non-string/unicode objects to unicode, and won't raise exceptions + static wxString i_Py2wxString(PyObject* source) + { +-#if wxUSE_UNICODE_WCHAR == 0 +-#error wxString conversion can only handle WCHAR wxStrings currently +-#endif + PyErr_Clear(); + PyObject* uni = source; + if (PyBytes_Check(source)) { Index: py-wxPython40/files/patch-sip_cpp_sip__corewxString.cpp =================================================================== --- /dev/null +++ py-wxPython40/files/patch-sip_cpp_sip__corewxString.cpp @@ -0,0 +1,13 @@ +--- sip/cpp/sip_corewxString.cpp.orig 2019-09-09 20:02:15 UTC ++++ sip/cpp/sip_corewxString.cpp +@@ -49,10 +49,6 @@ static int convertTo_wxString(PyObject *sipPy,void **s + { + ::wxString **sipCppPtr = reinterpret_cast< ::wxString **>(sipCppPtrV); + +- #if wxUSE_UNICODE_WCHAR == 0 +- #error wxString converison can only handle WCHAR wxStrings currently +- #endif +- + // Code to test a PyObject for compatibility with wxString + if (!sipIsErr) { + if (PyBytes_Check(sipPy) || PyUnicode_Check(sipPy)) Index: py-wxPython40/files/patch-sip_cpp_sip__propgridwxPGPropArgCls.cpp =================================================================== --- /dev/null +++ py-wxPython40/files/patch-sip_cpp_sip__propgridwxPGPropArgCls.cpp @@ -0,0 +1,11 @@ +--- sip/cpp/sip_propgridwxPGPropArgCls.cpp.orig 2019-05-22 02:14:14 UTC ++++ sip/cpp/sip_propgridwxPGPropArgCls.cpp +@@ -317,7 +317,7 @@ static int convertTo_wxPGPropArgCls(PyObject *sipPy,vo + return sipGetState(sipTransferObj); + } + else if (sipPy == Py_None) { +- *sipCppPtr = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL)); ++ *sipCppPtr = new wxPGPropArgCls(static_cast< wxPGProperty * >(NULL)); + return sipGetState(sipTransferObj); + } + else { Index: py-wxPython40/files/patch-sip_gen_propgridiface.sip =================================================================== --- /dev/null +++ py-wxPython40/files/patch-sip_gen_propgridiface.sip @@ -0,0 +1,11 @@ +--- sip/gen/propgridiface.sip.orig 2019-05-22 02:13:01 UTC ++++ sip/gen/propgridiface.sip +@@ -108,7 +108,7 @@ class wxPGPropArgCls (public) + return sipGetState(sipTransferObj); + } + else if (sipPy == Py_None) { +- *sipCppPtr = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL)); ++ *sipCppPtr = new wxPGPropArgCls(static_cast< wxPGProperty * >(NULL)); + return sipGetState(sipTransferObj); + } + else { Index: py-wxPython40/files/patch-src_string.sip =================================================================== --- /dev/null +++ py-wxPython40/files/patch-src_string.sip @@ -0,0 +1,12 @@ +--- src/string.sip.orig 2019-05-21 23:12:12 UTC ++++ src/string.sip +@@ -23,9 +23,6 @@ + // wxUSE_UNICODE_UTF8 for this conversion. + + %ConvertToTypeCode +- #if wxUSE_UNICODE_WCHAR == 0 +- #error wxString converison can only handle WCHAR wxStrings currently +- #endif + + // Code to test a PyObject for compatibility with wxString + if (!sipIsErr) { Index: py-wxPython40/files/patch-src_wxpy__api.sip =================================================================== --- /dev/null +++ py-wxPython40/files/patch-src_wxpy__api.sip @@ -0,0 +1,12 @@ +--- src/wxpy_api.sip.orig 2019-05-21 23:12:12 UTC ++++ src/wxpy_api.sip +@@ -29,9 +29,6 @@ + // non-string/unicode objects to unicode, and won't raise exceptions + static wxString i_Py2wxString(PyObject* source) + { +-#if wxUSE_UNICODE_WCHAR == 0 +-#error wxString conversion can only handle WCHAR wxStrings currently +-#endif + PyErr_Clear(); + PyObject* uni = source; + if (PyBytes_Check(source)) { Index: py-wxPython40/pkg-descr =================================================================== --- /dev/null +++ py-wxPython40/pkg-descr @@ -0,0 +1,7 @@ +wxPython is a GUI toolkit for the Python programming language. It allows Python +programmers to create programs with a robust, highly functional graphical user +interface, simply and easily. It is implemented as a Python extension module +(native code) that wraps the popular wxWidgets cross platform GUI library, which +is written in C++. + +WWW: http://www.wxpython.org