1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="The TeX Portable Graphic Format"
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/~zlogene/distfiles/${CATEGORY}/${PN}/${P}-revisioned.xz
12 doc? ( https://github.com/pgf-tikz/pgf/releases/download/${PV}/pgfmanual.pdf -> ${P}-pgfmanual.pdf )"
14 LICENSE="GPL-2 LPPL-1.3c FDL-1.2"
16 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
19 RDEPEND="dev-texlive/texlive-latexrecommended"
24 insinto "${TEXMF}"/tex/generic/${PN}
25 newins "${WORKDIR}"/${P}-revisioned pgf.revision.tex
31 cd "${S}/doc/generic/pgf" || die
32 dodoc AUTHORS ChangeLog README
34 docinto /usr/share/doc/${P}/texdoc
35 # pgfmanual is now split from the main tar archive
36 newdoc "${DISTDIR}/${P}-pgfmanual.pdf" pgfmanual.pdf
37 doins -r images macros text-en version-*
39 dosym "${ED}/usr/share/doc/${P}/texdoc" "${TEXMF}/doc/latex/${PN}"
40 docompress -x "/usr/share/doc/${P}/texdoc/"