1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
inherit latex-package
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="The TeX Portable Graphic Format"
|
9 |
9 |
HOMEPAGE="https://github.com/pgf-tikz/pgf"
|
10 |
|
SRC_URI=" https://github.com/pgf-tikz/pgf/archive/${PV}.tar.gz -> ${P}.tar.gz
|
11 |
|
https://dev.gentoo.org/~tamiko/distfiles/${P}-revisioned.xz
|
12 |
|
doc? ( https://github.com/pgf-tikz/pgf/releases/download/${PV}/pgfmanual-${PV}.pdf -> ${P}-pgfmanual.pdf )"
|
|
10 |
SRC_URI="
|
|
11 |
https://github.com/pgf-tikz/pgf/archive/${PV}.tar.gz -> ${P}.tar.gz
|
|
12 |
doc? ( https://github.com/pgf-tikz/pgf/releases/download/${PV}/pgfmanual-${PV}.pdf -> ${P}-pgfmanual.pdf )
|
|
13 |
"
|
13 |
14 |
|
14 |
15 |
LICENSE="GPL-2 LPPL-1.3c FDL-1.2"
|
15 |
16 |
SLOT="0"
|
... | ... | |
18 |
19 |
|
19 |
20 |
RDEPEND="dev-texlive/texlive-latexrecommended"
|
20 |
21 |
|
21 |
|
DOCS=( README.md doc/generic/pgf/ChangeLog doc/generic/pgf/RELEASE_NOTES.md )
|
|
22 |
# ADJUST ON BUMPS: The date of the according release tag. See also
|
|
23 |
# upstream's build.lua
|
|
24 |
PGF_VERSION_DATE="2023-01-15"
|
22 |
25 |
|
23 |
26 |
src_install() {
|
24 |
27 |
einstalldocs
|
... | ... | |
26 |
29 |
insinto "${TEXMF}"
|
27 |
30 |
doins -r tex
|
28 |
31 |
insinto "${TEXMF}"/tex/generic/${PN}
|
29 |
|
newins "${WORKDIR}"/${P}-revisioned pgf.revision.tex
|
|
32 |
newins - pgf.revision.tex <<EOF
|
|
33 |
\\def\\pgfrevision{${PV}}
|
|
34 |
\\def\\pgfversion{${PV}}
|
|
35 |
\\def\\pgfrevisiondate{${PGF_VERSION_DATE}}
|
|
36 |
\\def\\pgfversiondate{${PGF_VERSION_DATE}}
|
|
37 |
EOF
|
30 |
38 |
|
31 |
39 |
if use source ; then
|
32 |
40 |
doins -r source
|
... | ... | |
37 |
45 |
docinto texdoc
|
38 |
46 |
# pgfmanual is now split from the main tar archive
|
39 |
47 |
newdoc "${DISTDIR}/${P}-pgfmanual.pdf" pgfmanual.pdf
|
40 |
|
doins -r images text-en version-*
|
41 |
|
rm version-for-dvisvgm/en/color.cfg || die # bug 700056
|
|
48 |
doins -r images
|
42 |
49 |
|
43 |
50 |
dosym "../../../doc/${PF}/texdoc" "${TEXMF}/doc/latex/${PN}"
|
44 |
51 |
docompress -x "/usr/share/doc/${P}/texdoc/"
|