mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
32 lines
798 B
Makefile
32 lines
798 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
|
|
PORTNAME= port-for
|
|
PORTVERSION= 0.4
|
|
CATEGORIES= net devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@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 <bsd.port.mk>
|