aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-pcap/Makefile
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-04-27 10:35:36 +0800
committerpat <pat@FreeBSD.org>2002-04-27 10:35:36 +0800
commit18ad464c4e8b2dcde8f8801d22b5960d45e11f9f (patch)
tree83921f463541bf1f6d58364840b306235bfe85a1 /net/py-pcap/Makefile
parent54ec31b5ab7d86b8abf53c5e0a8a366625ea37c9 (diff)
downloadfreebsd-ports-gnome-18ad464c4e8b2dcde8f8801d22b5960d45e11f9f.tar.gz
freebsd-ports-gnome-18ad464c4e8b2dcde8f8801d22b5960d45e11f9f.tar.zst
freebsd-ports-gnome-18ad464c4e8b2dcde8f8801d22b5960d45e11f9f.zip
Update to 0.3
PR: 37390 Submitted by: maintainer
Diffstat (limited to 'net/py-pcap/Makefile')
-rw-r--r--net/py-pcap/Makefile31
1 files changed, 3 insertions, 28 deletions
diff --git a/net/py-pcap/Makefile b/net/py-pcap/Makefile
index a2c0cd0b396e..8773b74433f5 100644
--- a/net/py-pcap/Makefile
+++ b/net/py-pcap/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pcap
-PORTVERSION= 0.2
+PORTVERSION= 0.3
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pylibpcap
@@ -16,34 +16,9 @@ DIST_SUBDIR= python
MAINTAINER= perky@fallin.lv
-BUILD_DEPENDS= ${SWIG_CMD}:${PORTSDIR}/devel/SWIG
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG
-EXAMPLESDIR= ${PREFIX}/share/examples/py-pcap
-PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}
-SWIG_CMD?= ${LOCALBASE}/bin/swig
-WRKSRC= ${WRKDIR}/pylibpcap
USE_PYTHON= yes
-
-post-patch:
- ${SED} -e 's|^\(PYTHON_INCLUDES=\).*|\1-I${PYTHON_INCLUDEDIR}|g' \
- -e 's|^\(SWIG=\).*|\1${SWIG_CMD}|g' \
- ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.temp && \
- ${MV} -f ${WRKSRC}/Makefile.temp ${WRKSRC}/Makefile
- ${SED} -e 's|pcap/pcap\.h|pcap.h|g' \
- ${WRKSRC}/pypcap.h > ${WRKSRC}/pypcap.h.temp && \
- ${MV} -f ${WRKSRC}/pypcap.h.temp ${WRKSRC}/pypcap.h
-
-post-build:
- ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
- ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
-
-do-install:
-.for f in pcapcmodule.so pcap.py pcap.pyc pcap.pyo
- ${INSTALL_DATA} ${WRKSRC}/$f ${PYTHON_SITELIBDIR}
-.endfor
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/sniff.py ${EXAMPLESDIR}
-.endif
+USE_PYDISTUTILS= yes
.include <bsd.port.mk>