dev-python/ipykernel: do not alter the language field.
authorBenda Xu <heroxbd@gentoo.org>
Tue, 9 Jul 2019 11:22:09 +0000 (19:22 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Tue, 9 Jul 2019 11:23:47 +0000 (19:23 +0800)
  Previously, "python" has been replaced by "python3" in the
  "language" field of kernelspec.  That confuses client software such
  as emacs-ipython-notebook.

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild
dev-python/ipykernel/ipykernel-4.8.2.ebuild
dev-python/ipykernel/ipykernel-5.1.0.ebuild

index e3f9e55a1ce3886c7e5cbc37a52daeef129743f6..9f289635340f9e99a65021f4f063c9f03bdb6b7e 100644 (file)
@@ -35,7 +35,7 @@ python_install() {
        distutils-r1_python_install
 
        # bug 628222, specify python 2 or 3.
-       sed -e "s:python:${EPYTHON%.*}:" \
+       sed -e "/language/!s:python:${EPYTHON%.*}:" \
                -i "${ED}"usr/share/jupyter/kernels/${EPYTHON%.*}/kernel.json || die
 }
 
index 200a48df55444178fd7988a902b780c723c29241..32532b13c76bf9adedb705ba8c135528603feb90 100644 (file)
@@ -35,7 +35,7 @@ python_install() {
        distutils-r1_python_install
 
        # bug 628222, specify python 2 or 3.
-       sed -e "s:python:${EPYTHON%.*}:" \
+       sed -e "/language/!s:python:${EPYTHON%.*}:" \
                -i "${ED}"usr/share/jupyter/kernels/${EPYTHON%.*}/kernel.json || die
 }
 
index cf43e216a89b1bd0a0ceebb1d5e9164d83103203..85f606682f6daceee946bd2d48ecb65d71a78a0e 100644 (file)
@@ -35,7 +35,7 @@ python_install() {
        distutils-r1_python_install
 
        # bug 628222, specify python 2 or 3.
-       sed -e "s:python:${EPYTHON%.*}:" \
+       sed -e "/language/!s:python:${EPYTHON%.*}:" \
                -i "${ED}"usr/share/jupyter/kernels/${EPYTHON%.*}/kernel.json || die
 }