Verified Commit b5e003c2 authored by Charlie Li's avatar Charlie Li
Browse files

x11-toolkits/py-wxpython: rename and update to 4.2.4

Changelog: https://www.wxpython.org/news/2025-10-28-wxpython-424-release/index.html

- now builds under USE_PYTHON=pep517
- future-proof for setuptools update
- sync dependencies
- expose test suite

Event: Winter Field Day 2026
parent 49da6f75
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5087,3 +5087,4 @@ devel/tcl9-thread|devel/tcl-thread|2026-01-19|The new tcl-thread port supports b
java/jta||2026-01-19|Has expired: manual download, no users in the ports tree, newer version is at https://github.com/jakartaee/transactions
multimedia/ccextractor-gui||2026-01-20|Superseeded by flutter GUI, which we do not support
x11-fonts/open-sans|x11-fonts/opensans-ttf|2026-01-24|Rename to match upstream naming
x11-toolkits/py-wxPython4|x11-toolkits/py-wxpython|2026-01-26|Normalise and match Python package name
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ _WX_VERS_LISTS= WANT_WX_VER WITH_WX_VER _WX_VER_INSTALLED
_WX_PORT_wx_3.0=	x11-toolkits/wxgtk30@${_GTKFLAVOR}
_WX_LIB_wx_3.0=		wx_baseu-3.0

_WX_PORT_python_3.2=	x11-toolkits/py-wxPython4@${PY_FLAVOR}
_WX_PORT_python_3.2=	x11-toolkits/py-wxpython@${PY_FLAVOR}
_WX_FILE_python_3.2=	${PYTHON_SITELIBDIR}/wx/__init__.py

# wxgtk 3.2
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@
    SUBDIR += py-superqt
    SUBDIR += py-tkinter
    SUBDIR += py-tktreectrl
    SUBDIR += py-wxPython4
    SUBDIR += py-wxpython
    SUBDIR += pythonqt
    SUBDIR += qhotkey
    SUBDIR += qml-box2d
+0 −40
Original line number Diff line number Diff line
PORTNAME=	wxPython
PORTVERSION=	4.2.3
CATEGORIES=	x11-toolkits python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX=	42
DIST_SUBDIR=	python

MAINTAINER=	desktop@FreeBSD.org
COMMENT=	GUI toolkit for the Python programming language
WWW=		https://www.wxpython.org

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} \
								${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \
								${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
								${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS=		${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR}

USES=		compiler:c++11-lib gl localbase pkgconfig python
USE_GL=		glu
USE_WX=		3.2
USE_PYTHON=	autoplist distutils

OPTIONS_DEFINE=		NLS

NLS_USES=	gettext

post-patch:
	@${REINPLACE_CMD} -e "s|WX_CONFIG = 'wx-config'|WX_CONFIG = '${WX_CONFIG}'|" ${WRKSRC}/build.py

post-install:
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/wx -name *.so -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1766213363
SHA256 (python/wxPython-4.2.3.tar.gz) = 20d6e0c927e27ced85643719bd63e9f7fd501df6e9a8aab1489b039897fd7c01
SIZE (python/wxPython-4.2.3.tar.gz) = 58861286
Loading