4752db3ce9
Approved by: jadawin@, miwi@ (mentors, implicit) Feature safe: yes
36 lines
805 B
Makefile
36 lines
805 B
Makefile
# New ports collection makefile for: py-bitstring
|
|
# Date created: 2010-11-29
|
|
# Whom: Sofian Brabez <sbrabez@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bitstring
|
|
PORTVERSION= 3.0.2
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
|
COMMENT= Simple construction, analysis and modification of binary data
|
|
|
|
LICENSE= MIT
|
|
|
|
USE_PYTHON= 2.6+
|
|
USE_PYDISTUTILS= yes
|
|
USE_ZIP= yes
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
PORTDOCS= PKG-INFO README.txt release_notes.txt
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
|
.endif
|
|
|
|
regression-test:
|
|
@(cd ${WRKSRC}/test && ${PYTHON_CMD} -c 'import unittest, test_${PORTNAME}; unittest.main(test_${PORTNAME})')
|
|
|
|
.include <bsd.port.mk>
|