# $NetBSD: Makefile,v 1.3 2019/09/19 21:25:52 adam Exp $ DISTNAME= OnionBalance-0.1.8 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} PKGREVISION= 1 CATEGORIES= net python MASTER_SITES= ${MASTER_SITE_PYPI:=O/OnionBalance/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://onionbalance.readthedocs.io/ COMMENT= Tor onion service load balancer LICENSE= gnu-gpl-v3 DEPENDS+= ${PYPKGPREFIX}-cryptodome-[0-9]*:../../security/py-cryptodome DEPENDS+= ${PYPKGPREFIX}-future>=0.14.0:../../devel/py-future DEPENDS+= ${PYPKGPREFIX}-setproctitle-[0-9]*:../../sysutils/py-setproctitle DEPENDS+= ${PYPKGPREFIX}-stem>=0.4.0:../../devel/py-stem DEPENDS+= ${PYPKGPREFIX}-yaml>=3.11:../../textproc/py-yaml TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock TEST_DEPENDS+= ${PYPKGPREFIX}-pexpect-[0-9]*:../../devel/py-pexpect TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner TEST_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox USE_LANGUAGES= # none PYSETUPTESTTARGET= pytest REPLACE_PYTHON+= onionbalance.py REPLACE_PYTHON+= docs/conf.py CHECK_INTERPRETER_SKIP+= test/scripts/install-chutney.sh CHECK_INTERPRETER_SKIP+= test/scripts/install-tor.sh post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} onionbalance onionbalance-${PYVERSSUFFIX} && \ ${MV} onionbalance-config onionbalance-config-${PYVERSSUFFIX} || ${TRUE} .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"