pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-notebook www/py-notebook: Fix PLIS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b34026656c7
branches:  trunk
changeset: 307679:5b34026656c7
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri May 11 19:24:58 2018 +0000
description:
www/py-notebook: Fix PLIST with python27

diffstat:

 www/py-notebook/Makefile |  9 ++++++++-
 www/py-notebook/PLIST    |  6 +++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r f536e132ae5e -r 5b34026656c7 www/py-notebook/Makefile
--- a/www/py-notebook/Makefile  Fri May 11 19:20:11 2018 +0000
+++ b/www/py-notebook/Makefile  Fri May 11 19:24:58 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2018/05/11 10:09:55 adam Exp $
+# $NetBSD: Makefile,v 1.7 2018/05/11 19:24:58 minskim Exp $
 
 DISTNAME=      notebook-5.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -25,6 +25,13 @@
 
 USE_LANGUAGES= # none
 
+.include "../../lang/python/pyversion.mk"
+
+PLIST_VARS+=   py3
+.if "${PYPKGPREFIX}" != "py27"
+PLIST.py3=     yes
+.endif
+
 post-install:
        for f in jupyter-bundlerextension jupyter-nbextension jupyter-notebook jupyter-serverextension; do \
                ${MV} ${DESTDIR}${PREFIX}/bin/$$f ${DESTDIR}${PREFIX}/bin/$${f}${PYVERSSUFFIX} || ${TRUE}; \
diff -r f536e132ae5e -r 5b34026656c7 www/py-notebook/PLIST
--- a/www/py-notebook/PLIST     Fri May 11 19:20:11 2018 +0000
+++ b/www/py-notebook/PLIST     Fri May 11 19:24:58 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2018/05/11 10:09:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/05/11 19:24:58 minskim Exp $
 bin/jupyter-bundlerextension${PYVERSSUFFIX}
 bin/jupyter-nbextension${PYVERSSUFFIX}
 bin/jupyter-notebook${PYVERSSUFFIX}
@@ -1421,8 +1421,8 @@
 ${PYSITELIB}/notebook/tests/selenium/undelete.pyc
 ${PYSITELIB}/notebook/tests/selenium/undelete.pyo
 ${PYSITELIB}/notebook/tests/selenium/utils.py
-${PYSITELIB}/notebook/tests/selenium/utils.pyc
-${PYSITELIB}/notebook/tests/selenium/utils.pyo
+${PLIST.py3}${PYSITELIB}/notebook/tests/selenium/utils.pyc
+${PLIST.py3}${PYSITELIB}/notebook/tests/selenium/utils.pyo
 ${PYSITELIB}/notebook/tests/services/kernel.js
 ${PYSITELIB}/notebook/tests/services/serialize.js
 ${PYSITELIB}/notebook/tests/services/session.js



Home | Main Index | Thread Index | Old Index