svn commit: r475526 - in head/devel: . py-binaryornot

Martin Wilke miwi at FreeBSD.org
Sat Jul 28 11:59:37 UTC 2018


Author: miwi
Date: Sat Jul 28 11:59:35 2018
New Revision: 475526
URL: https://svnweb.freebsd.org/changeset/ports/475526

Log:
  Ultra-lightweight library to guess whether a file is binary or text, using a
  heuristic similar to Perl's pp_fttext and its analysis. Tests are available for
  these file types:
  
  - Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
  
  - Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf,
  		  .woff, .rgb
  
  It has also tests for numerous encodings.
  
  WWW: https://github.com/audreyr/binaryornot
  
  PR:		229436
  Submitted by:	freebsd_ports at k-worx.org
  Sponsored by:	iXsystems Inc.

Added:
  head/devel/py-binaryornot/
  head/devel/py-binaryornot/Makefile   (contents, props changed)
  head/devel/py-binaryornot/distinfo   (contents, props changed)
  head/devel/py-binaryornot/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Jul 28 11:46:47 2018	(r475525)
+++ head/devel/Makefile	Sat Jul 28 11:59:35 2018	(r475526)
@@ -4370,6 +4370,7 @@
     SUBDIR += py-bcdoc
     SUBDIR += py-bidict
     SUBDIR += py-billiard
+    SUBDIR += py-binaryornot
     SUBDIR += py-biplist
     SUBDIR += py-bison
     SUBDIR += py-bitarray

Added: head/devel/py-binaryornot/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-binaryornot/Makefile	Sat Jul 28 11:59:35 2018	(r475526)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	binaryornot
+DISTVERSION=	0.4.4
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	freebsd_ports at k-worx.org
+COMMENT=	Lightweight pure Python package to check if a file is binary or text
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}chardet>=3.0.2:textproc/py-chardet@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>

Added: head/devel/py-binaryornot/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-binaryornot/distinfo	Sat Jul 28 11:59:35 2018	(r475526)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1530180513
+SHA256 (binaryornot-0.4.4.tar.gz) = 359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061
+SIZE (binaryornot-0.4.4.tar.gz) = 371054

Added: head/devel/py-binaryornot/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-binaryornot/pkg-descr	Sat Jul 28 11:59:35 2018	(r475526)
@@ -0,0 +1,12 @@
+Ultra-lightweight library to guess whether a file is binary or text, using a
+heuristic similar to Perl's pp_fttext and its analysis. Tests are available for
+these file types:
+
+- Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
+
+- Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf,
+		  .woff, .rgb
+
+It has also tests for numerous encodings.
+
+WWW: https://github.com/audreyr/binaryornot


More information about the svn-ports-all mailing list