Makefile 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.2 2017/05/12 09:32:52 shadchin Exp $
  2. COMMENT = Jupyter Qt console
  3. MODPY_EGG_VERSION = 4.3.0
  4. DISTNAME = qtconsole-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME}
  6. CATEGORIES = shells
  7. MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
  8. # BSD
  9. PERMIT_PACKAGE_CDROM = Yes
  10. MODULES = lang/python
  11. MODPY_PI = Yes
  12. RUN_DEPENDS = devel/ipython${MODPY_FLAVOR}>=5.1.0 \
  13. devel/py-ipykernel${MODPY_FLAVOR} \
  14. devel/py-jupyter_client${MODPY_FLAVOR} \
  15. devel/py-jupyter_core${MODPY_FLAVOR} \
  16. devel/py-pexpect${MODPY_FLAVOR} \
  17. devel/py-traitlets${MODPY_FLAVOR} \
  18. textproc/py-pygments${MODPY_FLAVOR} \
  19. x11/py-qt5${MODPY_FLAVOR}
  20. TEST_DEPENDS = ${RUN_DEPENDS} \
  21. devel/py-nose${MODPY_FLAVOR}
  22. FLAVORS = python3
  23. FLAVOR ?=
  24. .if !${FLAVOR:Mpython3}
  25. TEST_DEPENDS += devel/py-mock
  26. .endif
  27. post-install:
  28. mv ${PREFIX}/bin/jupyter-qtconsole{,${MODPY_BIN_SUFFIX}}
  29. do-test:
  30. cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover
  31. .include <bsd.port.mk>