Page MenuHomeFreeBSD

D21915.id66039.diff
No OneTemporary

D21915.id66039.diff

Index: x11-toolkits/Makefile
===================================================================
--- x11-toolkits/Makefile
+++ x11-toolkits/Makefile
@@ -201,6 +201,7 @@
SUBDIR += py-wxPython28
SUBDIR += py-wxPython28-common
SUBDIR += py-wxPython30
+ SUBDIR += py-wxPython40
SUBDIR += py-xlib
SUBDIR += pypy-tkinter
SUBDIR += qml-box2d
Index: x11-toolkits/py-wxPython40/Makefile
===================================================================
--- x11-toolkits/py-wxPython40/Makefile
+++ x11-toolkits/py-wxPython40/Makefile
@@ -1,67 +1,37 @@
# $FreeBSD$
PORTNAME= wxPython
-PORTVERSION= 3.0.2.0
-PORTREVISION= 8
-DISTVERSIONPREFIX= src-
+PORTVERSION= 4.0.7
CATEGORIES= x11-toolkits python
-MASTER_SITES= SF/wxpython/wxPython/${PORTVERSION}
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-PKGNAMESUFFIX= 30
+PKGNAMESUFFIX= 40
+DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= GUI toolkit for the Python programming language
-DIST_SUBDIR= python
+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
-WRKSRC_SUBDIR= wxPython
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR}
-USES= compiler:c++11-lib python:2.7 shebangfix tar:bzip2
-SHEBANG_FILES= wx/tools/Editra/Editra.pyw
+USES= compiler:c++11-lib gl localbase pkgconfig python
+USE_GL= glu
+USE_WX= 3.0
+USE_PYTHON= distutils autoplist
-.if defined(WITH_WXVERSION_ONLY)
+OPTIONS_DEFINE= NLS
-PKGNAMESUFFIX= -common
+NLS_USES= gettext
-USE_PYTHON= py3kplist flavors
-
-do-build:
- ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${PYTHON_SITELIBDIR} -f ${WRKSRC}/wxversion
- ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d ${PYTHON_SITELIBDIR} -f ${WRKSRC}/wxversion
-
-do-install:
- @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
- ${INSTALL_DATA} ${WRKSRC}/wxversion/wxversion.py* ${STAGEDIR}${PYTHON_SITELIBDIR}/
- ${TOUCH} ${STAGEDIR}${PYTHON_SITELIBDIR}/wx.pth
-
-.else
-
-WXPORT= gtk3
-WX_PYTHON_DIR= wx-${WX_VERSION}-${WXPORT}
-
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wxPython-common>0:x11-toolkits/py-wxPython-common@${PY_FLAVOR}
-
-USES+= gettext pkgconfig
-USE_WX= 3.0
-USE_PYTHON= distutils autoplist
-PYDISTUTILS_BUILDARGS= WX_CONFIG="${WX_CONFIG}" \
- WXPORT="${WXPORT}" \
- NO_SCRIPTS=1 \
- INSTALL_MULTIVERSION=1
-PYDISTUTILS_CONFIGUREARGS+= ${PYDISTUTILS_BUILDARGS}
-PYDISTUTILS_INSTALLARGS+= ${PYDISTUTILS_BUILDARGS}
-
post-patch:
- @${REINPLACE_CMD} -E \
- -e 's,distutils\.command\.install\.install\),setuptools.command.install.install),g' \
- -e 's,distutils\.command\.install$$,setuptools.command.install,g' \
- -e 's,distutils\.command\.install\.install\.,setuptools.command.install.install.,g' \
- ${WRKSRC}/config.py
+ @${REINPLACE_CMD} -e "s|WX_CONFIG = 'wx-config'|WX_CONFIG = '${WX_CONFIG}'|" ${WRKSRC}/build.py
post-install:
- @${ECHO_CMD} "@unexec ${REINPLACE_CMD} -i '' -e '\,${WX_PYTHON_DIR}$$,d' ${PYTHON_SITELIBDIR}/wx.pth 2>/dev/null || true" >> ${TMPPLIST}
- @${ECHO_CMD} "@exec echo ${WX_PYTHON_DIR} >> ${PYTHON_SITELIBDIR}/wx.pth 2>/dev/null || true" >> ${TMPPLIST}
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/wx -name *.so -exec ${STRIP_CMD} {} +
-.endif
-
.include <bsd.port.mk>
Index: x11-toolkits/py-wxPython40/distinfo
===================================================================
--- x11-toolkits/py-wxPython40/distinfo
+++ x11-toolkits/py-wxPython40/distinfo
@@ -1,2 +1,3 @@
-SHA256 (python/wxPython-src-3.0.2.0.tar.bz2) = d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
-SIZE (python/wxPython-src-3.0.2.0.tar.bz2) = 58304944
+TIMESTAMP = 1575036483
+SHA256 (python/wxPython-4.0.7.tar.gz) = 3be608bfdede3063678cc703453850ab0a018b82bafd5ee057302250b18f0233
+SIZE (python/wxPython-4.0.7.tar.gz) = 68868838
Index: x11-toolkits/py-wxPython40/files/patch-build.py
===================================================================
--- x11-toolkits/py-wxPython40/files/patch-build.py
+++ 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-etg_propgridiface.py
===================================================================
--- x11-toolkits/py-wxPython40/files/patch-etg_propgridiface.py
+++ x11-toolkits/py-wxPython40/files/patch-etg_propgridiface.py
@@ -0,0 +1,17 @@
+LLVM/CLANG cannot compile with reinterpret_cast.
+
+https://svnweb.freebsd.org/ports/head/x11-toolkits/py-wxPython30/files/patch-src_gtk_propgrid__wrap.cpp?revision=383979&view=markup
+https://github.com/wxWidgets/Phoenix/issues/1416#issuecomment-557263381
+https://github.com/wxWidgets/Phoenix/pull/1445
+
+--- 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: x11-toolkits/py-wxPython40/files/patch-sip_cpp_sip__propgridwxPGPropArgCls.cpp
===================================================================
--- x11-toolkits/py-wxPython40/files/patch-sip_cpp_sip__propgridwxPGPropArgCls.cpp
+++ x11-toolkits/py-wxPython40/files/patch-sip_cpp_sip__propgridwxPGPropArgCls.cpp
@@ -0,0 +1,17 @@
+LLVM/CLANG cannot compile with reinterpret_cast.
+
+https://svnweb.freebsd.org/ports/head/x11-toolkits/py-wxPython30/files/patch-src_gtk_propgrid__wrap.cpp?revision=383979&view=markup
+https://github.com/wxWidgets/Phoenix/issues/1416#issuecomment-557263381
+https://github.com/wxWidgets/Phoenix/pull/1445
+
+--- 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: x11-toolkits/py-wxPython40/files/patch-sip_gen_propgridiface.sip
===================================================================
--- x11-toolkits/py-wxPython40/files/patch-sip_gen_propgridiface.sip
+++ x11-toolkits/py-wxPython40/files/patch-sip_gen_propgridiface.sip
@@ -0,0 +1,17 @@
+LLVM/CLANG cannot compile with reinterpret_cast.
+
+https://svnweb.freebsd.org/ports/head/x11-toolkits/py-wxPython30/files/patch-src_gtk_propgrid__wrap.cpp?revision=383979&view=markup
+https://github.com/wxWidgets/Phoenix/issues/1416#issuecomment-557263381
+https://github.com/wxWidgets/Phoenix/pull/1445
+
+--- 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: x11-toolkits/wxgtk30/Makefile
===================================================================
--- x11-toolkits/wxgtk30/Makefile
+++ x11-toolkits/wxgtk30/Makefile
@@ -3,11 +3,11 @@
PORTNAME= wx
PORTVERSION= 3.0.4
DISTVERSIONPREFIX= v
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= x11-toolkits
PKGNAMESUFFIX= 30-gtk3
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lbartoletti@tuxfamily.org
COMMENT= The wxWidgets GUI toolkit with GTK+ bindings
LICENSE= GPLv2+
@@ -44,7 +44,8 @@
--enable-backtrace \
--enable-ipv6 \
--enable-optimise \
- --enable-utf8 \
+ --enable-unicode \
+ --enable-std_string \
--enable-graphics_ctx \
--enable-compat26 \
--enable-compat28

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 23, 3:26 AM (3 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24080222
Default Alt Text
D21915.id66039.diff (8 KB)

Event Timeline