mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
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@k-worx.org Sponsored by: iXsystems Inc.
25 lines
633 B
Makefile
25 lines
633 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= binaryornot
|
|
DISTVERSION= 0.4.4
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= freebsd_ports@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>
|