Changeset View
Changeset View
Standalone View
Standalone View
security/py-artifacts/Makefile
# Created by: Antoine Brodin <antoine@FreeBSD.org> | # Created by: Antoine Brodin <antoine@FreeBSD.org> | ||||
PORTNAME= artifacts | PORTNAME= artifacts | ||||
PORTVERSION= 20210620 | PORTVERSION= 20210620 | ||||
CATEGORIES= security python | CATEGORIES= security python | ||||
MASTER_SITES= CHEESESHOP \ | MASTER_SITES= CHEESESHOP \ | ||||
https://github.com/ForensicArtifacts/artifacts/releases/download/${PORTVERSION}/ | https://github.com/ForensicArtifacts/artifacts/releases/download/${PORTVERSION}/ | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= antoine@FreeBSD.org | MAINTAINER= antoine@FreeBSD.org | ||||
COMMENT= ForensicArtifacts.com Artifact Repository | COMMENT= ForensicArtifacts.com Artifact Repository | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyyaml>=3.11:devel/py-pyyaml@${PY_FLAVOR} | ||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ | TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}pbr>=4.2.0:devel/py-pbr@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}pbr>=4.2.0:devel/py-pbr@${PY_FLAVOR} | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
USES= python:3.5+ | USES= python:3.5+ | ||||
USE_LOCALE= en_US.UTF-8 | USE_LOCALE= en_US.UTF-8 | ||||
USE_PYTHON= distutils autoplist concurrent | USE_PYTHON= distutils autoplist concurrent | ||||
DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD} | DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD} | ||||
TEST_TARGET= run_tests.py | TEST_TARGET= run_tests.py | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} "s,share/artifacts,${DATADIR_REL}, ; \ | ${REINPLACE_CMD} "s,share/artifacts,${DATADIR_REL}, ; \ | ||||
s,share/doc/artifacts,${DOCSDIR_REL}," ${WRKSRC}/setup.py | s,share/doc/artifacts,${DOCSDIR_REL}," ${WRKSRC}/setup.py | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |