From e4ae864bddfb4cc5986909841148c4e6e64bed4c Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 1 Apr 2024 06:23:06 +0700 Subject: libraries/wxPython4: Fixed build on current. Signed-off-by: Willy Sudiarto Raharjo --- libraries/wxPython4/cython.patch | 16 ++++++++++++++++ libraries/wxPython4/wxPython4.SlackBuild | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 libraries/wxPython4/cython.patch (limited to 'libraries') diff --git a/libraries/wxPython4/cython.patch b/libraries/wxPython4/cython.patch new file mode 100644 index 0000000000..3e1a2a0377 --- /dev/null +++ b/libraries/wxPython4/cython.patch @@ -0,0 +1,16 @@ +Fix compatibility with Cython 3.0.0 +Remove unused import which seems to be removed in Cython 3. +https://github.com/wxWidgets/Phoenix/issues/2439 +https://github.com/wxWidgets/Phoenix/pull/2441 +https://github.com/wxWidgets/Phoenix/issues/2514 +https://github.com/wxWidgets/Phoenix/commit/aeb557d01e7cd37176ebbf0f1ae6d0b53c115378 +--- wx/svg/_nanosvg.pyx.orig ++++ wx/svg/_nanosvg.pyx +@@ -42,7 +42,6 @@ for manipulating the SVG shape info in memory. + + import sys + +-cimport cython.object + from cpython.buffer cimport ( + Py_buffer, PyObject_CheckBuffer, PyObject_GetBuffer, PyBUF_SIMPLE, + PyBuffer_Release) diff --git a/libraries/wxPython4/wxPython4.SlackBuild b/libraries/wxPython4/wxPython4.SlackBuild index 0bbcbc0f50..ea7862534f 100644 --- a/libraries/wxPython4/wxPython4.SlackBuild +++ b/libraries/wxPython4/wxPython4.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wxPython4 -# Copyright 2018-2023 Willy Sudiarto Raharjo +# Copyright 2018-2024 Willy Sudiarto Raharjo # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wxPython4 SRCNAM=wxPython VERSION=${VERSION:-4.2.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,6 +79,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +patch -p0 < $CWD/cython.patch + python3 setup.py install --root=$PKG mkdir -p $PKG/usr/share/{applications,pixmaps} $PKG/usr/share/icons/hicolor/{16x16,32x32}/apps -- cgit v1.2.3