blob: ea0cf72de5acc7f3a6639c77c18c9c3ee6616357 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Created by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
# $FreeBSD$
PORTNAME= netaddr
PORTVERSION= 0.7.10
CATEGORIES= net python
MASTER_SITES= https://github.com/downloads/drkjam/netaddr/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python library for the manipulation of network addresses
LICENSE= BSD
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PORTDOCS= AUTHORS CHANGELOG README
TESTFILES= __init__.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
regression-test:
.for f in ${TESTFILES}
(cd ${WRKSRC}/netaddr/tests && ${PYTHON_CMD} $f)
.endfor
.include <bsd.port.mk>
|