freebsd-ports/devel/py-filemagic/Makefile
2021-04-06 16:31:07 +02:00

33 lines
732 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
PORTNAME= filemagic
PORTVERSION= 1.6
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python API for libmagic, the library behind the Unix file command
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install test suite requirements
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
USES= python:3.6+
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
GH_ACCOUNT= aliles
GH_TAGNAME= b24df9f
.include <bsd.port.pre.mk>
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>