mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
7a85086827
- Add LICENSE - Use PYDISTUTILS_AUTOPLIST - Don't override DOCSDIR and EXAMPLESDIR, mva@'s patch will do that soon for us
35 lines
794 B
Makefile
35 lines
794 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dpkt
|
|
PORTVERSION= 1.8
|
|
CATEGORIES= net python
|
|
MASTER_SITES= GOOGLE_CODE
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
|
COMMENT= Python fast, simple packet creation / parsing module
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
USE_PYTHON_PREFIX= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= AUTHORS CHANGES HACKING PKG-INFO README
|
|
PORTEXAMPLES= *
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
regression-test: extract
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} tests/test-perf2.py)
|
|
|
|
.include <bsd.port.mk>
|