Install this version:
emerge -a =dev-python/cling-kernels-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/cling-kernels-9999
Or alternatively:
emerge --autounmask-write -a =dev-python/cling-kernels-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 git-r3
DESCRIPTION="Interactive C++ interpreter, built on the top of LLVM and Clang libraries"
HOMEPAGE="https://root.cern/cling/"
EGIT_REPO_URI="https://github.com/root-project/cling.git"
if [[ ! "${PV}"="9999" ]]; then
EGIT_REF="v${PV}"
fi
LICENSE="Apache-2.0" # more
SLOT="0"
KEYWORDS=""
IUSE="-cpp11 -cpp14 cpp17 -cpp1z"
RESTRICT="mirror"
DEPEND="
=dev-cpp/cling-${PV}
dev-python/ipykernel[${PYTHON_USEDEP}]
dev-python/traitlets[${PYTHON_USEDEP}]
"
S=${WORKDIR}/${P}/tools/Jupyter/kernel
python_install_all() {
distutils-r1_python_install_all
if use cpp11 || use cpp14 || use cpp17 || use cpp1z ; then
if use cpp11 ; then
insinto /usr/share/jupyter/kernels/cpp11
doins ${S}/cling-cpp11/kernel.json
doins ${FILESDIR}/logo-32x32.png
doins ${FILESDIR}/logo-64x64.png
doins ${FILESDIR}/logo-svg.svg
fi
if use cpp14 ; then
insinto /usr/share/jupyter/kernels/cpp14
doins ${S}/cling-cpp14/kernel.json
doins ${FILESDIR}/logo-32x32.png
doins ${FILESDIR}/logo-64x64.png
doins ${FILESDIR}/logo-svg.svg
fi
if use cpp17 ; then
insinto /usr/share/jupyter/kernels/cpp17
doins ${S}/cling-cpp17/kernel.json
doins ${FILESDIR}/logo-32x32.png
doins ${FILESDIR}/logo-64x64.png
doins ${FILESDIR}/logo-svg.svg
fi
if use cpp1z ; then
insinto /usr/share/jupyter/kernels/cpp1z
doins ${S}/cling-cpp1z/kernel.json
doins ${FILESDIR}/logo-32x32.png
doins ${FILESDIR}/logo-64x64.png
doins ${FILESDIR}/logo-svg.svg
fi
fi
}
Manage flags for this package:
euse -i <flag> -p dev-python/cling-kernels |
euse -E <flag> -p dev-python/cling-kernels |
euse -D <flag> -p dev-python/cling-kernels