freebsd-ports/net/py-netaddr/Makefile

39 lines
790 B
Makefile

# 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= A python library for the manipulation of network addresses
LICENSE= BSD
FETCH_ARGS= -pRr
USE_PYTHON= yes
USE_PYDISTUTILS= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PORTDOCS= AUTHORS CHANGELOG README
TESTFILES= __init__.py
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
regression-test:
.for f in ${TESTFILES}
(cd ${WRKSRC}/netaddr/tests && ${PYTHON_CMD} $f)
.endfor
.include <bsd.port.mk>