diff --git a/net/py-pypcap/Makefile b/net/py-pypcap/Makefile index b3c02e3c40e7..db01c9ab30cd 100644 --- a/net/py-pypcap/Makefile +++ b/net/py-pypcap/Makefile @@ -3,6 +3,7 @@ PORTNAME= pypcap DISTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,8 +13,11 @@ COMMENT= Simplified object-oriented Python wrapper for libpcap LICENSE= BSD3CLAUSE -USES= python:-3.6 -USE_PYTHON= autoplist distutils +USES= python +USE_PYTHON= autoplist cython distutils + +pre-configure: + cd ${WRKSRC} && cython-${PYTHON_VER} pcap.pyx post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pcap.so