diff --git a/devel/libplist/files/patch-cython b/devel/libplist/files/patch-cython new file mode 100644 index 000000000000..f56e301a3800 --- /dev/null +++ b/devel/libplist/files/patch-cython @@ -0,0 +1,10 @@ +--- cython/plist.pyx.orig 2024-05-13 17:37:06 UTC ++++ cython/plist.pyx +@@ -1,6 +1,7 @@ from libc.stdint cimport * + cimport cpython + cimport libc.stdlib + from libc.stdint cimport * ++from ctypes import c_long as long + + cdef extern from *: + ctypedef enum plist_type: diff --git a/devel/py-libplist/Makefile b/devel/py-libplist/Makefile index e4d97860fb00..3d9b31ece40d 100644 --- a/devel/py-libplist/Makefile +++ b/devel/py-libplist/Makefile @@ -1,37 +1,37 @@ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jhale@FreeBSD.org COMMENT= Python bindings for libplist LIB_DEPENDS= libplist-2.0.so:${MASTER_PORT} USES+= localbase:ldflags python USE_PYTHON= cython3 flavors CONFIGURE_ENV= PYTHON_LDFLAGS="`pkg-config --libs python-${PYTHON_VER}`" BINARY_ALIAS= cython=cython-${PYTHON_VER} MASTERDIR= ${.CURDIR:H:H}/devel/libplist PORTSCOUT= ignore:1 BUILD_WRKSRC= ${WRKSRC}/cython INSTALL_WRKSRC= ${BUILD_WRKSRC} PLIST= ${.CURDIR}/pkg-plist PLIST_FILES= include/plist/cython/plist.pxd \ ${PYTHONPREFIX_SITELIBDIR:S|^${PREFIX}/||}/plist.so SLAVE_PORT= yes pre-configure: @${REINPLACE_CMD} -e 's|$$(top_builddir)/src/libplist-2.0.la|-lplist-2.0|' \ ${BUILD_WRKSRC}/Makefile.am post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/plist/cython ${INSTALL_DATA} ${INSTALL_WRKSRC}/plist.pxd \ ${STAGEDIR}${PREFIX}/include/plist/cython .include "${MASTERDIR}/Makefile"