dev-python/cling-kernels - 1.2 (phackerlay)

Search

Install

Install this version:

emerge -a =dev-python/cling-kernels-1.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/cling-kernels-1.2

Or alternatively:

emerge --autounmask-write -a =dev-python/cling-kernels-1.2

Package Information

Description:
Interactive C++ interpreter, built on the top of LLVM and Clang libraries
Homepage:
https://root.cern/cling/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
1.2 8 ~amd64 0
View Raw Ebuild
# 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="~amd64"
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
}

USE Flags

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

Global/Standard Flags

cpp11
Default: Disabled (-)
cpp14
Default: Disabled (-)
cpp1z
Default: Disabled (-)

Inherited Eclasses

Dependencies

DEPEND

	=dev-cpp/cling-1.2
	dev-python/ipykernel[]
	dev-python/traitlets[]