Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # $OpenBSD: Makefile,v 1.20 2017/01/04 21:58:42 sthen Exp $
  2. COMMENT= cryptographic recipes and primitives for Python
  3. MODPY_EGG_VERSION= 1.7.1
  4. DISTNAME= cryptography-${MODPY_EGG_VERSION}
  5. PKGNAME= ${MODPY_PY_PREFIX}${DISTNAME}
  6. CATEGORIES= security devel
  7. HOMEPAGE= https://cryptography.io/
  8. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  9. # dual: BSD or Apache 2
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB= ${MODPY_WANTLIB} crypto pthread ssl
  12. MODULES= lang/python
  13. MODPY_SETUPTOOLS= Yes
  14. MODPY_PI= Yes
  15. FLAVORS= python3
  16. FLAVOR?=
  17. RUN_DEPENDS= devel/py-asn1${MODPY_FLAVOR} \
  18. devel/py-cffi${MODPY_FLAVOR}>=1.4.2 \
  19. devel/py-six${MODPY_FLAVOR} \
  20. net/py-idna${MODPY_FLAVOR}
  21. .if ! ${FLAVOR:Mpython3}
  22. RUN_DEPENDS+= devel/py-enum34 \
  23. net/py-ipaddress
  24. .endif
  25. BUILD_DEPENDS= ${RUN_DEPENDS}
  26. # XXX fetches hypothesis (not ported) at test time
  27. # XXX needs *loads* of RAM
  28. TEST_DEPENDS= devel/py-asn1-modules${MODPY_FLAVOR} \
  29. devel/py-pretend${MODPY_FLAVOR} \
  30. devel/py-test${MODPY_FLAVOR} \
  31. security/py-cryptography_vectors${MODPY_FLAVOR}=${MODPY_EGG_VERSION} \
  32. textproc/py-iso8601${MODPY_FLAVOR}
  33. .include <bsd.port.mk>