mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
76de21d7aa
- Remove setup.py patch, we'll invoke tests directly for now Changelog: https://github.com/theupdateframework/tuf/releases/tag/v0.11.1
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tuf
|
|
PORTVERSION= 0.11.1
|
|
CATEGORIES= security devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Framework for securing software update systems
|
|
|
|
LICENSE= MIT APACHE20
|
|
LICENSE_COMB= dual
|
|
#LICENSE_FILE= Not packaged in PyPI sdist
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.12:devel/py-iso8601@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}securesystemslib>=0.11.2:security/py-securesystemslib@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
# Actually 2.6-3.5
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
# https://github.com/theupdateframework/tuf/pull/781#discussion_r221880421
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
"s|'python',|sys.executable,|g" \
|
|
${WRKSRC}/tests/*.py
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}/tests && ${PYTHON_CMD} -m pytest -v -rs
|
|
|
|
.include <bsd.port.mk>
|