diff options
| author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-28 14:46:30 +0100 |
|---|---|---|
| committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-28 15:15:00 +0100 |
| commit | 5eb5444c6c01cf8bbdeb74daa298e7bcb66a5859 (patch) | |
| tree | 819c0a0839cb33376a7526fbbe3c2c03f7b3b57c /dev-tex/pythontex/pythontex-0.18.ebuild | |
| parent | 856517786c1278f5d11f85d8bd53150126a9bf14 (diff) | |
| download | gentoo-5eb5444c6c01cf8bbdeb74daa298e7bcb66a5859.tar.gz gentoo-5eb5444c6c01cf8bbdeb74daa298e7bcb66a5859.tar.bz2 gentoo-5eb5444c6c01cf8bbdeb74daa298e7bcb66a5859.zip | |
dev-tex/pythontex: add version 0.18, enable py3.10
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-tex/pythontex/pythontex-0.18.ebuild')
| -rw-r--r-- | dev-tex/pythontex/pythontex-0.18.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-tex/pythontex/pythontex-0.18.ebuild b/dev-tex/pythontex/pythontex-0.18.ebuild new file mode 100644 index 000000000000..9c876cfd094a --- /dev/null +++ b/dev-tex/pythontex/pythontex-0.18.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +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/pythontex/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="LPPL-1.3 BSD" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="doc highlighting" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + >=dev-texlive/texlive-latexextra-2016 + 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 +} |
