pkgsrc/devel/py-jupyter_core/Makefile
minskim e362912a7a devel/py-jupyter_core: Add ${PREFIX} to Jupyter's system prefixes
This enables Jupyter to discover kernels installed by pkgsrc packages
other than py-ipykernel.

Bump PKGREVISION.
2018-02-06 01:40:48 +00:00

35 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2018/02/06 01:40:48 minskim Exp $
DISTNAME= jupyter_core-4.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=j/jupyter_core/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jupyter.org/
COMMENT= Jupyter core package
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.1.0:../../devel/py-traitlets
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-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_SED.fix-prefix= -e 's,@PREFIX@,${PREFIX},g'
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} jupyter jupyter${PYVERSSUFFIX} && \
${MV} jupyter-migrate jupyter-migrate${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/jupyter_core && py.test-${PYVERSSUFFIX}
.include "../../lang/python/distutils.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"