From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-tex/pythontex/Manifest | 1 + dev-tex/pythontex/metadata.xml | 14 ++++++ dev-tex/pythontex/pythontex-0.18_p20251112.ebuild | 55 +++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 dev-tex/pythontex/Manifest create mode 100644 dev-tex/pythontex/metadata.xml create mode 100644 dev-tex/pythontex/pythontex-0.18_p20251112.ebuild (limited to 'dev-tex/pythontex') diff --git a/dev-tex/pythontex/Manifest b/dev-tex/pythontex/Manifest new file mode 100644 index 000000000000..53f9d9407b5c --- /dev/null +++ b/dev-tex/pythontex/Manifest @@ -0,0 +1 @@ +DIST pythontex-0.18_p20251112.tar.gz 1808282 BLAKE2B 25265a10716b3a409f8998b73e9011897932730d983796d98cb0c354fc432134a2f987f6c803ff389d43073de1022e7b812087e666d5ade51651c9f3aa474232 SHA512 e29082f885c2183b1243bf3d4525ab0bede4d14d80fc90df1f10fbbf29f0cfcdb4b03e8124209491a3bcfd5cf022abc81f6a573d818db0a4e187bb0b130c379b diff --git a/dev-tex/pythontex/metadata.xml b/dev-tex/pythontex/metadata.xml new file mode 100644 index 000000000000..aa3caba556d0 --- /dev/null +++ b/dev-tex/pythontex/metadata.xml @@ -0,0 +1,14 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + + Syntax highlighting using dev-python/pygments + + + baldeagleos-repo + diff --git a/dev-tex/pythontex/pythontex-0.18_p20251112.ebuild b/dev-tex/pythontex/pythontex-0.18_p20251112.ebuild new file mode 100644 index 000000000000..d29d7dfa9ca4 --- /dev/null +++ b/dev-tex/pythontex/pythontex-0.18_p20251112.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit latex-package python-r1 + +COMMIT="63484d82131f8f621dccde9c9649c98ff4e322f9" + +DESCRIPTION="Fast Access to Python from within LaTeX" +HOMEPAGE="https://github.com/gpoore/pythontex" +SRC_URI="https://github.com/gpoore/pythontex/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +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 +} -- cgit v1.3