dev-tex/pythontex - 0.19 (gentoo)

Search

Install

Install this version:

emerge -a =dev-tex/pythontex-0.19

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

autounmask =dev-tex/pythontex-0.19

Or alternatively:

emerge --autounmask-write -a =dev-tex/pythontex-0.19

Package Information

Description:
Fast Access to Python from within LaTeX
Homepage:
https://github.com/gpoore/pythontex
License:
LPPL-1.3 BSD

Ebuild Details

Version EAPI Keywords Slot
0.19 8 ~amd64 ~ppc ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )

inherit latex-package python-r1

DESCRIPTION="Fast Access to Python from within LaTeX"
HOMEPAGE="https://github.com/gpoore/pythontex"
SRC_URI="https://github.com/gpoore/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LPPL-1.3 BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~riscv ~x86"
IUSE="doc highlighting"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}
	>=dev-texlive/texlive-latexextra-2023
	dev-tex/pgf
"
RDEPEND="${DEPEND}
	dev-python/pygments[${PYTHON_USEDEP}]
"

TEXMF=/usr/share/texmf-site

src_compile() {
	cd ${PN} || die
	rm ${PN}.sty || die
	VARTEXFONTS="${T}/fonts" latex ${PN}.ins extra || die
}

src_install() {
	dodoc *rst
	use doc && dodoc ${PN}_quickstart/*pdf ${PN}/*pdf

	cd ${PN} || die

	installation() {
		python_domodule {de,}${PN}3.py
		python_domodule ${PN}_{engines,utils}.py
		python_doscript {de,}${PN}.py syncpdb.py
		python_optimize
	}
	python_foreach_impl installation

	latex-package_src_doinstall sty
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-tex/pythontex | euse -E <flag> -p dev-tex/pythontex | euse -D <flag> -p dev-tex/pythontex

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	>=dev-texlive/texlive-latexextra-2023
	dev-tex/pgf

RDEPEND

	>=dev-texlive/texlive-latexextra-2023
	dev-tex/pgf

	dev-python/pygments[]

Manifest for 0.19

Type File Size Source URLs
DIST pythontex-0.19.tar.gz 1818996 bytes https://github.com/gpoore/pythontex/archive/refs/tags/v0.19.tar.gz