42 lines
873 B
Makefile
42 lines
873 B
Makefile
# $OpenBSD: Makefile,v 1.10 2019/07/12 20:45:50 sthen Exp $
|
|
|
|
COMMENT = Jupyter core package
|
|
|
|
MODPY_EGG_VERSION = 4.4.0
|
|
DISTNAME = jupyter_core-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
REVISION = 1
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://jupyter.org/
|
|
|
|
RUN_DEPENDS = devel/py-traitlets${MODPY_FLAVOR}
|
|
TEST_DEPENDS = devel/ipython${MODPY_FLAVOR}>=5.1.0 \
|
|
devel/py-ipykernel${MODPY_FLAVOR}>=4.5.2
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
MODPY_PYTEST_ARGS = jupyter_core
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
.if !${FLAVOR:Mpython3}
|
|
TEST_DEPENDS += devel/py-mock
|
|
.endif
|
|
|
|
post-install:
|
|
mv ${PREFIX}/bin/jupyter{,${MODPY_BIN_SUFFIX}}
|
|
mv ${PREFIX}/bin/jupyter-migrate{,${MODPY_BIN_SUFFIX}}
|
|
mv ${PREFIX}/bin/jupyter-troubleshoot{,${MODPY_BIN_SUFFIX}}
|
|
|
|
.include <bsd.port.mk>
|