From 009d2b57b1ec8c0b82b34ee0cf98d64979674d51 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Tue, 9 Jul 2019 19:22:09 +0800 Subject: [PATCH] dev-python/ipykernel: do not alter the language field. 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 --- dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild | 2 +- dev-python/ipykernel/ipykernel-4.8.2.ebuild | 2 +- dev-python/ipykernel/ipykernel-5.1.0.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild b/dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild index e3f9e55a1ce3..9f289635340f 100644 --- a/dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild +++ b/dev-python/ipykernel/ipykernel-4.6.1-r2.ebuild @@ -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 } diff --git a/dev-python/ipykernel/ipykernel-4.8.2.ebuild b/dev-python/ipykernel/ipykernel-4.8.2.ebuild index 200a48df5544..32532b13c76b 100644 --- a/dev-python/ipykernel/ipykernel-4.8.2.ebuild +++ b/dev-python/ipykernel/ipykernel-4.8.2.ebuild @@ -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 } diff --git a/dev-python/ipykernel/ipykernel-5.1.0.ebuild b/dev-python/ipykernel/ipykernel-5.1.0.ebuild index cf43e216a89b..85f606682f6d 100644 --- a/dev-python/ipykernel/ipykernel-5.1.0.ebuild +++ b/dev-python/ipykernel/ipykernel-5.1.0.ebuild @@ -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 } -- 2.26.2