git: eaa988bfc7a8 - main - x11-toolkits/py-wxPython4: pull in upstream patch removing attrdict

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Thu, 29 Dec 2022 14:31:48 UTC
The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eaa988bfc7a879f1c1f386111501eabcc097029f

commit eaa988bfc7a879f1c1f386111501eabcc097029f
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2022-12-29 14:26:13 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2022-12-29 14:31:24 +0000

    x11-toolkits/py-wxPython4: pull in upstream patch removing attrdict
    
    attrdict is abandonware and broken on Python >= 3.10, and upstream
    declared the functionality only used on Windows.
    
    Approved by: mentors (implicit)
---
 x11-toolkits/py-wxPython4/Makefile | 6 ++++--
 x11-toolkits/py-wxPython4/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/x11-toolkits/py-wxPython4/Makefile b/x11-toolkits/py-wxPython4/Makefile
index 38e982857e17..3694d86f2807 100644
--- a/x11-toolkits/py-wxPython4/Makefile
+++ b/x11-toolkits/py-wxPython4/Makefile
@@ -6,6 +6,9 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 PKGNAMESUFFIX=	42
 DIST_SUBDIR=	python
 
+PATCH_SITES=	https://github.com/wxWidgets/Phoenix/commit/
+PATCHFILES=	2e9169effa9abf14f34f8436a791b8829eea7774.patch:-p1
+
 MAINTAINER=	desktop@FreeBSD.org
 COMMENT=	GUI toolkit for the Python programming language
 WWW=		https://www.wxpython.org
@@ -16,8 +19,7 @@ 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} \
-		${PYTHON_PKGNAMEPREFIX}attrdict>0:devel/py-attrdict@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR}
 
 USES=		compiler:c++11-lib gl localbase pkgconfig python:3.6+
 USE_GL=		glu
diff --git a/x11-toolkits/py-wxPython4/distinfo b/x11-toolkits/py-wxPython4/distinfo
index b9d4b561b44c..0d664936171f 100644
--- a/x11-toolkits/py-wxPython4/distinfo
+++ b/x11-toolkits/py-wxPython4/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1662795152
+TIMESTAMP = 1670184434
 SHA256 (python/wxPython-4.2.0.tar.gz) = 663cebc4509d7e5d113518865fe274f77f95434c5d57bc386ed58d65ceed86c7
 SIZE (python/wxPython-4.2.0.tar.gz) = 70958238
+SHA256 (python/2e9169effa9abf14f34f8436a791b8829eea7774.patch) = 247ba7d0c347312c5602706734de504dc5a7282e9cf3ae7473da8b8416062d0b
+SIZE (python/2e9169effa9abf14f34f8436a791b8829eea7774.patch) = 1270