Install this version:
emerge -a =dev-tex/sagetex-3.6.1-r2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-tex/sagetex-3.6.1-r2
Or alternatively:
emerge --autounmask-write -a =dev-tex/sagetex-3.6.1-r2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.6.1-r2 | 8 | ~amd64 ~amd64-linux ~x64-macos | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 latex-package pypi
DESCRIPTION="SageTeX allows you to embed Sage code into LaTeX documents"
HOMEPAGE="https://github.com/sagemath/sagetex https://pypi.org/project/sagetex/"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~amd64-linux ~x64-macos"
DEPEND="app-text/texlive[extra]
dev-python/pyparsing[${PYTHON_USEDEP}]
sci-mathematics/sagemath[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}
dev-tex/pgf"
PATCHES=(
"${FILESDIR}"/${PN}-3.6-install-python-files-only.patch
)
DOCS="example.tex sagetex.pdf example.pdf"
src_prepare() {
default
# remove distributed sagetex.{sty,py}/sagetexparse.py files
rm sagetex.sty || die "cannot remove sagetex.sty files"
rm sagetex.py || die "cannot remove sagetex.py files"
rm sagetexparse.py || die "cannot remove sagetexparse.py files"
}
src_compile() {
latex-package_src_compile
distutils-r1_src_compile
}
src_install() {
latex-package_src_doinstall sty
distutils-r1_src_install
}
app-text/texlive[extra] dev-python/pyparsing[] sci-mathematics/sagemath[]
app-text/texlive[extra] dev-python/pyparsing[] sci-mathematics/sagemath[] dev-tex/pgf