Page MenuHomeFreeBSD

D21915.id62967.diff
No OneTemporary

D21915.id62967.diff

Index: x11-toolkits/py-wxPython40/Makefile
===================================================================
--- /dev/null
+++ x11-toolkits/py-wxPython40/Makefile
@@ -0,0 +1,36 @@
+# $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=LGPL21+
+LICENSE_FILE=${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR}
+
+USES= gettext gl localbase pkgconfig python
+USE_GCC= yes
+USE_GL= glu
+USE_WX= 3.0
+USE_PYTHON= distutils autoplist
+PYDISTUTILS_BUILDARGS= WX_CONFIG="${WX_CONFIG}" \
+ WXPORT="${WXPORT}" \
+ NO_SCRIPTS=1
+PYDISTUTILS_CONFIGUREARGS+= ${PYDISTUTILS_BUILDARGS}
+PYDISTUTILS_INSTALLARGS+= ${PYDISTUTILS_BUILDARGS}
+
+WXPORT= gtk3
+WX_PYTHON_DIR= wx-${WX_VERSION}-${WXPORT}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|WX_CONFIG = 'wx-config'|WX_CONFIG = 'wxgtk3u-${WX_VERSION}-config'|" ${WRKSRC}/build.py
+
+.include <bsd.port.mk>
Index: x11-toolkits/py-wxPython40/distinfo
===================================================================
--- /dev/null
+++ x11-toolkits/py-wxPython40/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1568055855
+SHA256 (python/wxPython-4.0.6.tar.gz) = 35cc8ae9dd5246e2c9861bb796026bbcb9fb083e4d49650f776622171ecdab37
+SIZE (python/wxPython-4.0.6.tar.gz) = 68815031
Index: x11-toolkits/py-wxPython40/files/patch-build.py
===================================================================
--- /dev/null
+++ x11-toolkits/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: x11-toolkits/py-wxPython40/files/patch-sip_cpp_sip__corecmodule.cpp
===================================================================
--- /dev/null
+++ x11-toolkits/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: x11-toolkits/py-wxPython40/files/patch-sip_cpp_sip__corewxString.cpp
===================================================================
--- /dev/null
+++ x11-toolkits/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: x11-toolkits/py-wxPython40/files/patch-src_string.sip
===================================================================
--- /dev/null
+++ x11-toolkits/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: x11-toolkits/py-wxPython40/files/patch-src_wxpy__api.sip
===================================================================
--- /dev/null
+++ x11-toolkits/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: x11-toolkits/py-wxPython40/pkg-descr
===================================================================
--- /dev/null
+++ x11-toolkits/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

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 4:34 PM (5 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14764111
Default Alt Text
D21915.id62967.diff (5 KB)

Event Timeline