diff --git a/devel/py-pymtbl/Makefile b/devel/py-pymtbl/Makefile index 95554b769c2e..eff9269776aa 100644 --- a/devel/py-pymtbl/Makefile +++ b/devel/py-pymtbl/Makefile @@ -1,36 +1,36 @@ PORTNAME= pymtbl PORTVERSION= 0.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel python MASTER_SITES= FARSIGHT LOCAL/truckman/farsight PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= truckman@FreeBSD.org COMMENT= Python wrapper for devel/mtbl WWW= https://github.com/farsightsec/pymtbl LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYRIGHT LIB_DEPENDS= libmtbl.so:devel/mtbl USES= pkgconfig python shebangfix uniquefiles:dirs USE_PYTHON= autoplist cython distutils SHEBANG_FILES= examples/*.py examples/*/*.py PORTEXAMPLES= * CPPFLAGS+= -I${LOCALBASE}/include OPTIONS_DEFINE= EXAMPLES pre-build: cython-${PYTHON_VER} ${WRKSRC}/mtbl.pyx post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mtbl*.so ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/devel/py-pymtbl/files/patch-mtbl.pxi b/devel/py-pymtbl/files/patch-mtbl.pxi new file mode 100644 index 000000000000..3127dc8a5d51 --- /dev/null +++ b/devel/py-pymtbl/files/patch-mtbl.pxi @@ -0,0 +1,10 @@ +--- mtbl.pxi.orig 2024-03-21 21:11:47 UTC ++++ mtbl.pxi +@@ -14,7 +14,6 @@ from cpython cimport bool + # limitations under the License. + cimport cython + from cpython cimport bool +-from cpython.string cimport * + from libc.stddef cimport * + from libc.stdint cimport * + from libc.stdlib cimport *