# New ports collection makefile for: py-netaddr # Date created: 2008-10-14 # Whom: Yi-Jheng Lin # # $FreeBSD$ # PORTNAME= netaddr PORTVERSION= 0.7.6 CATEGORIES= net python MASTER_SITES= https://github.com/drkjam/${PORTNAME}/downloads/ \ CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yzlin@FreeBSD.org COMMENT= A python library for the manipulation of network address manipulation LICENSE= BSD FETCH_ARGS= -pRr USE_PYTHON= yes USE_PYDISTUTILS= yes DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} PORTDOCS= AUTHORS CHANGELOG README TESTFILES= __init__.py .if !defined(NOPORTDOCS) 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