blob: 1e4a4d4b89ba70f1f86b7467498eca5cf2777691 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
PORTNAME= exscript
DISTVERSIONPREFIX= v
DISTVERSION= 2.6
CATEGORIES= security python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= jhay@FreeBSD.org
COMMENT= Automating Telnet and SSH
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}paramiko>0:security/py-paramiko@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodomex>0:security/py-pycryptodomex@${PY_FLAVOR}
USES= python:3.6+
# Upstream doesn't provide a sdist, yet
USE_GITHUB= yes
GH_ACCOUNT= knipknap
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e \
"{s#__version__ = '[^']*'#__version__ = '${PORTVERSION}'#;}" \
${BUILD_WRKSRC}/VERSION.in ${BUILD_WRKSRC}/Exscript/version.py
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v tests/Exscript "*Test.py"
.include <bsd.port.mk>
|