# Created by: Kubilay Kocak PORTNAME= port-for PORTVERSION= 0.4 CATEGORIES= net devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= bofh@FreeBSD.org COMMENT= Utility that helps manage local TCP ports LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=0.8:devel/py-mock@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= distutils concurrent autoplist NO_ARCH= yes post-patch: @${REINPLACE_CMD} '/DEFAULT_CONFIG_PATH/ s|/etc|${PREFIX}&|' ${WRKSRC}/port_for/store.py do-test: @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest \ --ignore port_for/_download_ranges.py \ --doctest-modules port_for port_for/tests.py .include