mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-tex/tabularray: install prebuilt manual with USE=doc
The doc flag was a no-op because the source tarball ships no PDF, so enabling it installed nothing extra. Fetch the upstream release zip and install its prebuilt tabularray.pdf. Closes: https://bugs.gentoo.org/978874 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST tabularray-2025.11.27-doc.zip 920631 BLAKE2B d8cd7d73204a68b45a417ec12845d82ab38f3c5750a198cf9392f27b5760535eb578a25056eb0448592a9f3122a7c474ddf8bea0f3eab52378c8dda7895f61a1 SHA512 b63747be5ead5075174c25aca832f8e2c254ff84bd54a451a9a80105ef0afe9b56b4d716eec0212e4eb60cf292d69ab683aba23de45a4315e77824ae7a78cf20
|
||||
DIST tabularray-2025.11.27.tar.gz 3882424 BLAKE2B bb4398cf77ccae1f829829fc45dbe483348c74667bef32354971f92ece35f545fbf4a2dcafd97e3656a3ded1d4621d11c8e7e0113569944691a3f03d1aa1fbbe SHA512 466982d8a140e7c6a8e1dd24647a27b973189efe13b6757df3fc78b6481dc0311a537a80ceb3df2054cd84c2c3571cd8cf1c9f297730734b99fd9e6b1ab95be4
|
||||
|
||||
@@ -7,7 +7,8 @@ inherit latex-package
|
||||
|
||||
DESCRIPTION="Typeset tabulars and arrays with LATEX3"
|
||||
HOMEPAGE="https://www.ctan.org/pkg/tabularray/"
|
||||
SRC_URI="https://github.com/lvjr/tabularray/archive/refs/tags/2025C.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/lvjr/tabularray/archive/refs/tags/2025C.tar.gz -> ${P}.tar.gz
|
||||
doc? ( https://github.com/lvjr/tabularray/releases/download/2025C/tabularray-2025C.zip -> ${P}-doc.zip )"
|
||||
|
||||
S="${WORKDIR}/${PN}-2025C"
|
||||
|
||||
@@ -23,7 +24,8 @@ RDEPEND="
|
||||
dev-texlive/texlive-plaingeneric
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )"
|
||||
|
||||
TEXMF="/usr/share/texmf-site"
|
||||
|
||||
@@ -31,6 +33,9 @@ src_install() {
|
||||
latex-package_src_doinstall styles
|
||||
dodoc README.md
|
||||
if use doc ; then
|
||||
# Upstream ships the manual only as a prebuilt PDF in the release
|
||||
# archive, so install that rather than rebuilding with lualatex.
|
||||
cp "${WORKDIR}"/${PN}/tabularray.pdf "${S}"/ || die
|
||||
latex-package_src_doinstall pdf
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user