Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.44 2017/02/22 09:37:51 benoit Exp $
  2. COMMENT = Python module that implements the SSH2 protocol
  3. MODPY_EGG_VERSION = 2.1.2
  4. DISTNAME = paramiko-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME}
  6. CATEGORIES = security
  7. HOMEPAGE = https://github.com/paramiko/paramiko/
  8. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  9. # LGPL
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODPY_PI = Yes
  12. MODULES = lang/python
  13. MODPY_SETUPTOOLS = Yes
  14. RUN_DEPENDS = devel/py-asn1${MODPY_FLAVOR} \
  15. security/py-cryptography${MODPY_FLAVOR}
  16. TEST_DEPENDS = ${RUN_DEPENDS}
  17. FLAVORS = python3
  18. FLAVOR ?=
  19. MODPY_ADJ_FILES = demos/*.py
  20. post-install:
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}paramiko
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}paramiko
  23. cp -R ${WRKSRC}/docs/* ${PREFIX}/share/doc/${MODPY_PY_PREFIX}paramiko
  24. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}paramiko
  25. ${INSTALL_DATA} ${WRKSRC}/demos/* \
  26. ${PREFIX}/share/examples/${MODPY_PY_PREFIX}paramiko
  27. do-test:
  28. cd ${WRKSRC} && ${MODPY_BIN} test.py --verbose
  29. .include <bsd.port.mk>