From 3b1240dbe34f0cb4e705eee553c4fd36be78f8dc Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Tue, 7 Jul 2026 02:17:04 -0700 Subject: [PATCH] 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 --- dev-tex/tabularray/Manifest | 1 + dev-tex/tabularray/tabularray-2025.11.27.ebuild | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-tex/tabularray/Manifest b/dev-tex/tabularray/Manifest index 5b50bc2189..e33d424c8c 100644 --- a/dev-tex/tabularray/Manifest +++ b/dev-tex/tabularray/Manifest @@ -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 diff --git a/dev-tex/tabularray/tabularray-2025.11.27.ebuild b/dev-tex/tabularray/tabularray-2025.11.27.ebuild index 2029f0488a..da00caebb7 100644 --- a/dev-tex/tabularray/tabularray-2025.11.27.ebuild +++ b/dev-tex/tabularray/tabularray-2025.11.27.ebuild @@ -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 }