diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-02-09 21:57:24 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-02-09 22:00:43 +0100 |
commit | 698bb3da9d4c0fd8409d70d64fb7154cfdfa449e (patch) | |
tree | 60a0b7e6534746f18627dbcfcea5856f83db8663 | |
parent | dev-tex/latexmk: new package, add 4.83 (diff) | |
download | tex-overlay-698bb3da9d4c0fd8409d70d64fb7154cfdfa449e.tar.gz tex-overlay-698bb3da9d4c0fd8409d70d64fb7154cfdfa449e.tar.bz2 tex-overlay-698bb3da9d4c0fd8409d70d64fb7154cfdfa449e.zip |
dev-tex/pgf: new package, add 3.1.10
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r-- | dev-tex/pgf/Manifest | 2 | ||||
-rw-r--r-- | dev-tex/pgf/metadata.xml | 11 | ||||
-rw-r--r-- | dev-tex/pgf/pgf-3.1.10.ebuild | 64 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-tex/pgf/Manifest b/dev-tex/pgf/Manifest new file mode 100644 index 0000000..6f1b306 --- /dev/null +++ b/dev-tex/pgf/Manifest @@ -0,0 +1,2 @@ +DIST pgf-3.1.10-pgfmanual.pdf 10174139 BLAKE2B 038e00427575b02ace3310379a40e9d5b7362cea7d451bc3c9d5198f321d60e13acd1c0cf9a40ca0400c79a80f6c8b5b9eb98279ddb21e045c34d05c3ec7a261 SHA512 862291baddce938d735171c6b1c42b3acf9177a3009b3b7cfdf7188c399b5cb05e371650dc2214f1888875a497178ed18c0537f2c4628f3d6f563e8264cc43e0 +DIST pgf-3.1.10.tar.gz 2477289 BLAKE2B b43850eaa3b1d75d90b71f838579904fca5d0d9a6434350fef62a20dc7de6206c52c06dc70baf293165d6f89f22e28dfca9b22ba635a82994942b69b5b2161c4 SHA512 16c2cbcdcfa3a34d018a4436ef9e4944d2ac575c2b35403e87e7057837cdc7e95de576a1ea2cc37f5bdf77b87b0119f6e76969ceb910c2b1b97e3d6bb6a8cdf9 diff --git a/dev-tex/pgf/metadata.xml b/dev-tex/pgf/metadata.xml new file mode 100644 index 0000000..66fdf68 --- /dev/null +++ b/dev-tex/pgf/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">pgf</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-tex/pgf/pgf-3.1.10.ebuild b/dev-tex/pgf/pgf-3.1.10.ebuild new file mode 100644 index 0000000..e1fe8a8 --- /dev/null +++ b/dev-tex/pgf/pgf-3.1.10.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit latex-package + +DESCRIPTION="The TeX Portable Graphic Format" +HOMEPAGE="https://github.com/pgf-tikz/pgf" +SRC_URI=" + https://github.com/pgf-tikz/pgf/archive/${PV}.tar.gz -> ${P}.tar.gz + doc? ( https://github.com/pgf-tikz/pgf/releases/download/${PV}/pgfmanual-${PV}.pdf -> ${P}-pgfmanual.pdf ) +" + +LICENSE="GPL-2 LPPL-1.3c FDL-1.2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc source" + +RDEPEND="dev-texlive/texlive-latexrecommended" + +src_install() { + einstalldocs + + insinto "${TEXMF}" + doins -r tex + insinto "${TEXMF}"/tex/generic/${PN} + # Here is one of the rare examples where you want to quote the label + # of the heredoc to prevent the backticks from being evaluated. + newins - pgf.revision.tex <<"EOF" +\begingroup +\catcode`\-=12 +\catcode`\/=12 +\catcode`\.=12 +\catcode`\:=12 +\catcode`\+=12 +\catcode`\-=12 +\gdef\pgfrevision{@PVR@} +\gdef\pgfversion{@PVR@} +\gdef\pgfversiondatetime{2024-02-09 00:00:00 +0000} +\gdef\pgfrevisiondatetime{2024-02-09 00:00:00 +0000} +\gdef\pgf@glob@TMPa#1-#2-#3 #4\relax{#1/#2/#3} +\xdef\pgfversiondate{\expandafter\pgf@glob@TMPa\pgfversiondatetime\relax} +\xdef\pgfrevisiondate{\expandafter\pgf@glob@TMPa\pgfrevisiondatetime\relax} +\endgroup +EOF + sed -i s/@PVR@/${PVR}/ "${ED}/${TEXMF}"/tex/generic/${PN}/pgf.revision.tex || die + + if use source ; then + doins -r source + fi + + if use doc; then + cd "${S}/doc/generic/pgf" || die + docinto texdoc + # pgfmanual is now split from the main tar archive + newdoc "${DISTDIR}/${P}-pgfmanual.pdf" pgfmanual.pdf + doins -r images text-en version-* + rm version-for-dvisvgm/en/color.cfg || die # bug 700056 + + dosym "../../../doc/${PF}/texdoc" "${TEXMF}/doc/latex/${PN}" + docompress -x "/usr/share/doc/${P}/texdoc/" + fi +} |