37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2020/05/16 17:27:42 adam Exp $
|
|
|
|
DISTNAME= jupyter_core-4.6.3
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=j/jupyter_core/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://jupyter.org/
|
|
COMMENT= Jupyter core package
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.1.0:../../devel/py-traitlets
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test:test
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
SUBST_CLASSES+= fix-prefix
|
|
SUBST_STAGE.fix-prefix= pre-configure
|
|
SUBST_MESSAGE.fix-prefix= Fixing prefix.
|
|
SUBST_FILES.fix-prefix= jupyter_core/paths.py
|
|
SUBST_VARS.fix-prefix= PREFIX
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} jupyter jupyter-${PYVERSSUFFIX} && \
|
|
${MV} jupyter-migrate jupyter-migrate-${PYVERSSUFFIX} && \
|
|
${MV} jupyter-troubleshoot jupyter-troubleshoot-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/jupyter_core && pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|