svn commit: r498111 - head/net/py-pypcap

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Apr 6 14:43:45 UTC 2019


Author: sunpoet
Date: Sat Apr  6 14:43:38 2019
New Revision: 498111
URL: https://svnweb.freebsd.org/changeset/ports/498111

Log:
  Fix build on Python 3.7
  
  - Bump PORTREVISION for package change

Modified:
  head/net/py-pypcap/Makefile

Modified: head/net/py-pypcap/Makefile
==============================================================================
--- head/net/py-pypcap/Makefile	Sat Apr  6 14:43:33 2019	(r498110)
+++ head/net/py-pypcap/Makefile	Sat Apr  6 14:43:38 2019	(r498111)
@@ -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
 
 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


More information about the svn-ports-all mailing list