# Created by: Kubilay Kocak # $FreeBSD$ PORTNAME= port-for PORTVERSION= 0.4 CATEGORIES= net devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org COMMENT= Utility that helps with local TCP ports managment 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 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