summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-11-29 10:41:02 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-11-29 12:43:42 +0100
commit2142a91210eec40a4cadd8d3b2ff7da91f94503d (patch)
tree3e26dc4abdff4bca4f5bfc3e9266802fc23c5ce1 /dev-tex
parentdev-tex/latex2pydata: sync with ::tex-overlay, update for tl 2024 (diff)
downloadgentoo-2142a91210eec40a4cadd8d3b2ff7da91f94503d.tar.gz
gentoo-2142a91210eec40a4cadd8d3b2ff7da91f94503d.tar.bz2
gentoo-2142a91210eec40a4cadd8d3b2ff7da91f94503d.zip
dev-tex/minted: add 3.4.0
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/minted/Manifest2
-rw-r--r--dev-tex/minted/minted-3.4.0.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-tex/minted/Manifest b/dev-tex/minted/Manifest
index 3bb9b6c6ab6a..7aef092d72eb 100644
--- a/dev-tex/minted/Manifest
+++ b/dev-tex/minted/Manifest
@@ -1,2 +1,4 @@
DIST minted-2.6.tar.gz 891134 BLAKE2B b8f1686adeb138c61c232502b10aa420f1054180c5a460e9e5058d40435e13d336c15a044202923bd1acd7b62a7b780d95c62cf1a589181c90b9058712479c43 SHA512 6fb28485fca7238053ad177ee5579c27740e72b8753c6dcaa59afe20bc97d7e81ec20d189e97522445b6435f17cef1f8326aaa41c154bf21f59519c9abf10485
DIST minted-2.9.tar.gz 923928 BLAKE2B e4a9dc6194c8f03ce09d02cbab81f3aca473240ad6f84d6d39d7af62dc6111c50bdf2011ce1174d8bf998e93fab2706d7394423ee0a5486e92d62b592dca37ff SHA512 55b2d9800c752e47c98045baae0e68c3d5003f9154ec58d10922f1087cabb1305fbda9a3d45e330a8de982de1c94e58cbd1d3878f7f0cc8f5830080688e35377
+DIST minted-3.4.0-explicitly-set-build-backend.patch 1196 BLAKE2B cfa83f1175d7b4334e65c964684ee1443f22ab5cd5892d502b0902c806cab3b74a4867367639804f96173a96b617ac11f234f803625aef7e8f4e117f815bf411 SHA512 94e36346bed7dc672c2286bc57096473f67d09ab2295e9c4356cbd948b64a490ec162eff68b46053009ead82c5b3d133ea3b4ff83ec8f5fec71ebbdb728841fd
+DIST minted-3.4.0.tar.gz 629289 BLAKE2B cc4e4f7d55e2844e6aaa91c7d1b8410770a02f0def612befe46f961288e65c7650743d856738baa0f3a8e1574a270e89baf9c6ddabb34d203d82c288aad662b4 SHA512 9f95a8d96dd7813342ff6a336a192d675c47649d18c05916d104e934ed324e5b8b51c024fb2d362695d745da624d9f77c2878227d9e80306fb69ea45b301ecc1
diff --git a/dev-tex/minted/minted-3.4.0.ebuild b/dev-tex/minted/minted-3.4.0.ebuild
new file mode 100644
index 000000000000..791efc6c8be5
--- /dev/null
+++ b/dev-tex/minted/minted-3.4.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 latex-package
+
+DESCRIPTION="LaTeX package for source code syntax highlighting"
+HOMEPAGE="https://github.com/gpoore/minted/"
+SRC_URI="
+ https://github.com/gpoore/${PN}/archive/refs/tags/latex/v${PV}.tar.gz
+ -> ${P}.tar.gz
+ https://github.com/gpoore/minted/commit/45ccea404689680513be3b78d2c0579f6250f963.patch
+ -> ${PN}-3.4.0-explicitly-set-build-backend.patch
+"
+
+S="${WORKDIR}"/${PN}-latex-v${PV}
+
+LICENSE="|| ( BSD LPPL-1.3 )"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="doc"
+
+RDEPEND="
+ >=dev-python/latexrestricted-0.6.0
+ >=dev-python/pygments-2.17.0
+ >=dev-tex/latex2pydata-0.4.0
+ dev-texlive/texlive-latexextra
+"
+BDEPEND="doc? ( dev-texlive/texlive-fontsextra )"
+
+PATCHES=(
+ "${DISTDIR}"/${PN}-3.4.0-explicitly-set-build-backend.patch
+)
+
+src_prepare() {
+ default
+
+ rm latex/minted/${PN}.pdf || die
+}
+
+src_compile() {
+ pushd python &> /dev/null || die
+ distutils-r1_src_compile
+ popd &> /dev/null || die
+
+ pushd latex/minted &> /dev/null || die
+ latex-package_src_compile
+ popd &> /dev/null || die
+}
+
+src_install() {
+ dodoc README.md
+
+ pushd python &> /dev/null || die
+ docinto python
+ dodoc *.md
+ distutils-r1_src_install
+ popd &> /dev/null || die
+
+ pushd latex &> /dev/null || die
+ docinto latex
+ dodoc *.md
+ popd &> /dev/null || die
+
+ pushd latex/minted &> /dev/null || die
+ local -x LATEX_DOC_ARGUMENTS="-shell-escape"
+ latex-package_src_install
+ if use doc; then
+ latex-package_src_doinstall pdf
+ fi
+ popd &> /dev/null || die
+}