mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
math/py-bitmath: Represent and manipulate file sizes with different prefix notations
bitmath simplifies many facets of interacting with file sizes in various units. Functionality includes: - Converting between SI and NIST prefix units (kB to GiB) - Converting between units of the same type (SI to SI, or NIST to NIST) - Automatic human-readable prefix selection (like in hurry.filesize) - Basic arithmetic operations (subtracting 42KiB from 50GiB) - Rich comparison operations (1024 Bytes == 1KiB) - bitwise operations (<<, >>, &, |, ^) - argparse integration - progressbar integration - String parsing - Sorting WWW: https://github.com/tbielawa/bitmath
This commit is contained in:
parent
04609e5938
commit
f60a6a56d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=392067
@ -551,6 +551,7 @@
|
||||
SUBDIR += py-apgl
|
||||
SUBDIR += py-basemap
|
||||
SUBDIR += py-basemap-data
|
||||
SUBDIR += py-bitmath
|
||||
SUBDIR += py-bitvector
|
||||
SUBDIR += py-bottleneck
|
||||
SUBDIR += py-cryptominisat
|
||||
|
23
math/py-bitmath/Makefile
Normal file
23
math/py-bitmath/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bitmath
|
||||
PORTVERSION= 1.2.3
|
||||
CATEGORIES= math python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}-4.tar.gz
|
||||
|
||||
MAINTAINER= wg@FreeBSD.org
|
||||
COMMENT= Represent and manipulate file sizes with different prefix notations
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= python:2
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-4
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}progressbar231>0:${PORTSDIR}/misc/py-progressbar231
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/py-bitmath/distinfo
Normal file
2
math/py-bitmath/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (bitmath-1.2.3-4.tar.gz) = 09fd3697dd0f0bbfd7de1c8821f739d6f4cf0cb854b3314779bcbd3ec9c90ed8
|
||||
SIZE (bitmath-1.2.3-4.tar.gz) = 50745
|
15
math/py-bitmath/pkg-descr
Normal file
15
math/py-bitmath/pkg-descr
Normal file
@ -0,0 +1,15 @@
|
||||
bitmath simplifies many facets of interacting with file sizes in various units.
|
||||
Functionality includes:
|
||||
|
||||
- Converting between SI and NIST prefix units (kB to GiB)
|
||||
- Converting between units of the same type (SI to SI, or NIST to NIST)
|
||||
- Automatic human-readable prefix selection (like in hurry.filesize)
|
||||
- Basic arithmetic operations (subtracting 42KiB from 50GiB)
|
||||
- Rich comparison operations (1024 Bytes == 1KiB)
|
||||
- bitwise operations (<<, >>, &, |, ^)
|
||||
- argparse integration
|
||||
- progressbar integration
|
||||
- String parsing
|
||||
- Sorting
|
||||
|
||||
WWW: https://github.com/tbielawa/bitmath
|
Loading…
Reference in New Issue
Block a user