Index: Makefile =================================================================== --- Makefile (revision 495742) +++ Makefile (working copy) @@ -8,6 +8,8 @@ LIB_DEPENDS= libdnet.so:net/libdnet +USES= autoreconf libtool python + MASTERDIR= ${.CURDIR}/../libdnet INSTALL_WRKSRC= ${WRKSRC}/python DESCR= ${.CURDIR}/pkg-descr @@ -17,8 +19,7 @@ LIBDNET_SLAVE= yes -USES= python:2.7 -USE_PYTHON= flavors +USE_PYTHON= cython flavors CONFIGURE_ARGS= --with-python=${PYTHON_CMD} .if defined(MAINTAINER_MODE) @@ -26,4 +27,11 @@ ${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py .endif +post-patch: + ${REINPLACE_CMD} 's|%%CYTHON%%|cython-${PYTHON_VER}|g' \ + ${WRKSRC}/python/Makefile.am + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dnet.so + .include "${MASTERDIR}/Makefile" Index: pkg-descr =================================================================== --- pkg-descr (revision 495742) +++ pkg-descr (working copy) @@ -5,4 +5,4 @@ manipulation, and raw IP packet and Ethernet frame transmission. It is intended to complement the functionality provided by pcap(3). -WWW: https://code.google.com/p/libdnet/ +WWW: https://github.com/5u623l20/libdnet/