diff -ruN py-puremagic/Makefile py-puremagic/Makefile --- py-puremagic/Makefile 1970-01-01 08:00:00.000000000 +0800 +++ py-puremagic/Makefile 2021-09-20 12:04:36.351247000 +0800 @@ -0,0 +1,25 @@ +PORTNAME= puremagic +PORTVERSION= 1.10 +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= james@french.id.au +COMMENT= Pure python implementation of magic file detection + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argparse>0:devel/py-argparse@${PY_FLAVOR} + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= distutils autoplist concurrent + +USE_GITHUB= yes +GH_ACCOUNT= cdgriffith + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= test/ + +.include diff -ruN py-puremagic/distinfo py-puremagic/distinfo --- py-puremagic/distinfo 1970-01-01 08:00:00.000000000 +0800 +++ py-puremagic/distinfo 2021-09-20 11:38:04.224006000 +0800 @@ -0,0 +1,3 @@ +TIMESTAMP = 1632109084 +SHA256 (cdgriffith-puremagic-1.10_GH0.tar.gz) = 0c53d75e460bf383708ae4c4c055288a5cdfde0b6de888d90a1f02346f7a5cc5 +SIZE (cdgriffith-puremagic-1.10_GH0.tar.gz) = 294909 diff -ruN py-puremagic/pkg-descr py-puremagic/pkg-descr --- py-puremagic/pkg-descr 1970-01-01 08:00:00.000000000 +0800 +++ py-puremagic/pkg-descr 2021-09-19 15:17:50.679301000 +0800 @@ -0,0 +1,12 @@ +Puremagic is a python module that will identify a file from magic numbers + +It is designed to be minimalistic and inherently cross platform compatible. It +is also designed to be a stand in for python-magic, it incorporates the +functions from_file(filename[, mime]) and from_string(string[, mime]) however +the magic_file() and magic_string() are more powerful and will also display +confidence and duplicate matches. + +It does NOT try to match files off non-magic string. In other words it will not +search for a string within a certain window of bytes like others might. + +WWW: https://pypi.org/project/puremagic/