pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-jupyter_core devel/py-jupyter_core: Add ${PRE...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/296417c2f981
branches:  trunk
changeset: 375218:296417c2f981
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Feb 06 01:40:48 2018 +0000

description:
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.

diffstat:

 devel/py-jupyter_core/Makefile                             |   9 ++++++++-
 devel/py-jupyter_core/distinfo                             |   3 ++-
 devel/py-jupyter_core/patches/patch-jupyter__core_paths.py |  14 ++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r 84952e734820 -r 296417c2f981 devel/py-jupyter_core/Makefile
--- a/devel/py-jupyter_core/Makefile    Mon Feb 05 22:03:49 2018 +0000
+++ b/devel/py-jupyter_core/Makefile    Tue Feb 06 01:40:48 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2017/11/02 10:47:37 adam Exp $
+# $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/}
 
@@ -15,6 +16,12 @@
 
 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} && \
diff -r 84952e734820 -r 296417c2f981 devel/py-jupyter_core/distinfo
--- a/devel/py-jupyter_core/distinfo    Mon Feb 05 22:03:49 2018 +0000
+++ b/devel/py-jupyter_core/distinfo    Tue Feb 06 01:40:48 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2017/11/02 10:47:37 adam Exp $
+$NetBSD: distinfo,v 1.3 2018/02/06 01:40:48 minskim Exp $
 
 SHA1 (jupyter_core-4.4.0.tar.gz) = 24ac33f4a1b1ff8e946cb1d563eb5989fdf8c6ef
 RMD160 (jupyter_core-4.4.0.tar.gz) = 1949d15f4f635b6919cbd07dbdd05f98702728cd
 SHA512 (jupyter_core-4.4.0.tar.gz) = 387f7f98f640b85ff0a24f11e1beae5a851d7eb3ba4a423be028940cb018c0d0ddf42ae8a1c397e3e4cafa560d3a5385b39bb8794448c7c010be7f0ddcba8a9e
 Size (jupyter_core-4.4.0.tar.gz) = 63613 bytes
+SHA1 (patch-jupyter__core_paths.py) = 2ed2b8bda891e323f7102e36fd66cfd61340b822
diff -r 84952e734820 -r 296417c2f981 devel/py-jupyter_core/patches/patch-jupyter__core_paths.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-jupyter_core/patches/patch-jupyter__core_paths.py        Tue Feb 06 01:40:48 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-jupyter__core_paths.py,v 1.1 2018/02/06 01:40:48 minskim Exp $
+
+Enable Jupyter to discover kernels installed by pkgsrc packages.
+
+--- jupyter_core/paths.py.orig 2017-10-11 14:52:06.000000000 +0000
++++ jupyter_core/paths.py
+@@ -118,6 +118,7 @@ if os.name == 'nt':
+         SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
+ else:
+     SYSTEM_JUPYTER_PATH = [
++        "@PREFIX@/share/jupyter",
+         "/usr/local/share/jupyter",
+         "/usr/share/jupyter",
+     ]



Home | Main Index | Thread Index | Old Index