Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 14:43:38 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498111 - head/net/py-pypcap
Message-ID:  <201904061443.x36Ehcni008358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904061443.x36Ehcni008358>