1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

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>
This commit is contained in:
Philippe Audeoud 2010-12-01 15:47:47 +00:00
parent 618166e7fa
commit 2a645c37d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265516
4 changed files with 52 additions and 0 deletions

View File

@ -2712,6 +2712,7 @@
SUBDIR += py-astng
SUBDIR += py-babel
SUBDIR += py-bison
SUBDIR += py-bitstring
SUBDIR += py-boto
SUBDIR += py-cclib
SUBDIR += py-celementtree

View File

@ -0,0 +1,38 @@
# 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>

View File

@ -0,0 +1,2 @@
SHA256 (bitstring-2.0.3.zip) = 4ad523c537a229b6350f24bc20c7a61fec115480f211acbe2e0503173fea9231
SIZE (bitstring-2.0.3.zip) = 487048

View File

@ -0,0 +1,11 @@
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