From owner-svn-ports-head@freebsd.org Tue Jul 14 19:53:41 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E3CD9A108B; Tue, 14 Jul 2015 19:53:41 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1EB541994; Tue, 14 Jul 2015 19:53:41 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6EJreBm006820; Tue, 14 Jul 2015 19:53:40 GMT (envelope-from wg@FreeBSD.org) Received: (from wg@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6EJrdJd006811; Tue, 14 Jul 2015 19:53:39 GMT (envelope-from wg@FreeBSD.org) Message-Id: <201507141953.t6EJrdJd006811@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wg set sender to wg@FreeBSD.org using -f From: William Grzybowski Date: Tue, 14 Jul 2015 19:53:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392067 - in head/math: . py-bitmath X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 19:53:41 -0000 Author: wg Date: Tue Jul 14 19:53:38 2015 New Revision: 392067 URL: https://svnweb.freebsd.org/changeset/ports/392067 Log: 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 Added: head/math/py-bitmath/ head/math/py-bitmath/Makefile (contents, props changed) head/math/py-bitmath/distinfo (contents, props changed) head/math/py-bitmath/pkg-descr (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Tue Jul 14 19:52:11 2015 (r392066) +++ head/math/Makefile Tue Jul 14 19:53:38 2015 (r392067) @@ -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 Added: head/math/py-bitmath/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-bitmath/Makefile Tue Jul 14 19:53:38 2015 (r392067) @@ -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 Added: head/math/py-bitmath/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-bitmath/distinfo Tue Jul 14 19:53:38 2015 (r392067) @@ -0,0 +1,2 @@ +SHA256 (bitmath-1.2.3-4.tar.gz) = 09fd3697dd0f0bbfd7de1c8821f739d6f4cf0cb854b3314779bcbd3ec9c90ed8 +SIZE (bitmath-1.2.3-4.tar.gz) = 50745 Added: head/math/py-bitmath/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-bitmath/pkg-descr Tue Jul 14 19:53:38 2015 (r392067) @@ -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