comms/py-libimobiledevice: Allow build with cython 3.1.0+

- Bump PORTREVISION for package change

Obtained from:	0bf0f9e941
This commit is contained in:
Po-Chuan Hsieh 2025-06-26 18:04:09 +08:00
parent 787eb66ae1
commit 690254a5dc
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
Obtained from: https://github.com/libimobiledevice/libimobiledevice/commit/0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05
--- cython/debugserver.pxi.orig 2024-07-01 16:27:27 UTC
+++ cython/debugserver.pxi
@@ -43,13 +43,7 @@ cdef class DebugServerError(BaseError):
BaseError.__init__(self, *args, **kwargs)
-# from http://stackoverflow.com/a/17511714
-# https://github.com/libimobiledevice/libimobiledevice/pull/198
-from cpython cimport PY_MAJOR_VERSION
-if PY_MAJOR_VERSION <= 2:
- from cpython.string cimport PyString_AsString
-else:
- from cpython.bytes cimport PyBytes_AsString as PyString_AsString
+from cpython.bytes cimport PyBytes_AsString as PyString_AsString
cdef char ** to_cstring_array(list_str):
if not list_str:
return NULL

View File

@ -1,4 +1,4 @@
PORTREVISION= 0 PORTREVISION= 1
CATEGORIES= comms python CATEGORIES= comms python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}