freebsd-ports/devel/py-bitstring/Makefile
Philippe Audeoud 2a645c37d6 bitstring is a pure Python module designed to help make the creation and
analysis of binary data as simple and natural as possible.

BitStrings can be constructed from integers (big and little endian), hex, octal,
binary, strings or files. They can be sliced, joined, reversed, inserted into,
overwritten, etc. with simple functions or slice notation.  They can also be
read from, searched and replaced, and navigated in, similar to a file or stream.

bitstring is open source software, and has been released under the MIT licence.

WWW:	http://pypi.python.org/pypi/bitstring

PR:		ports/152688
Submitted by:	Sofian Brabez <sbrabez at gmail.com>
2010-12-01 15:47:47 +00:00

38 lines
876 B
Makefile

# New ports collection makefile for: py-bitstring
# Date created: 2010-11-29
# Whom: Sofian Brabez <sbrabez@gmail.com>
#
# $FreeBSD$
#
PORTNAME= bitstring
PORTVERSION= 2.0.3
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbrabez@gmail.com
COMMENT= Simple construction, analysis and modification of binary data
USE_PYTHON= 2.6+
USE_PYDISTUTILS= yes
USE_ZIP= yes
PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PORTNAME}.py \
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc \
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyo
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} test_${PORTNAME}.py)
.include <bsd.port.mk>