From: Benda Xu Date: Tue, 9 Jul 2019 11:22:09 +0000 (+0800) Subject: dev-python/ipykernel: do not alter the language field. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=009d2b57b1ec8c0b82b34ee0cf98d64979674d51;p=gentoo.git 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 --- 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 }