From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D2F391582EF for ; Tue, 25 Feb 2025 16:36:47 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BBB5B343243 for ; Tue, 25 Feb 2025 16:36:47 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C0FE41103AC; Tue, 25 Feb 2025 16:36:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B9DDA1103AC for ; Tue, 25 Feb 2025 16:36:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71CDF343231 for ; Tue, 25 Feb 2025 16:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0FED27F0 for ; Tue, 25 Feb 2025 16:36:44 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1740501358.cfabc04a8241583e29634e447f831ef15bad6459.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/latex-package.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: cfabc04a8241583e29634e447f831ef15bad6459 X-VCS-Branch: master Date: Tue, 25 Feb 2025 16:36:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e02ef0f4-57af-421a-a3ea-0845c16167e2 X-Archives-Hash: 9365a47555b8cf3415a0426896787d49 commit: cfabc04a8241583e29634e447f831ef15bad6459 Author: Florian Schmaus gentoo org> AuthorDate: Thu Feb 20 08:41:33 2025 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Tue Feb 25 16:35:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfabc04a latex-package.eclass: introduce LATEX_ENGINE variable Closes: https://bugs.gentoo.org/950021 Signed-off-by: Florian Schmaus gentoo.org> eclass/latex-package.eclass | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index f23897d4315c..e35da30e1b44 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -79,6 +79,12 @@ TEXMF="/usr/share/texmf-site" # DESCRIPTION above) SUPPLIER="misc" +# @ECLASS_VARIABLE: LATEX_ENGINE +# @DESCRIPTION: +# When compiling documentation (.tex/.dtx), use the specified engine, +# e.g., lualatex, to build the documention. Defaults to pdflatex. +: "${LATEX_ENGINE:=pdflatex}" + # @ECLASS_VARIABLE: LATEX_DOC_ARGUMENTS # @DESCRIPTION: # When compiling documentation (.tex/.dtx), this variable will be passed @@ -140,12 +146,18 @@ latex-package_src_doinstall() { einfo "Making documentation: ${i}" local mypdflatex=( - pdflatex + ${LATEX_ENGINE} ${LATEX_DOC_ARGUMENTS} --halt-on-error --interaction=nonstopmode "${i}" ) + + if [[ ${LATEX_ENGINE} == "lualatex" ]]; then + # bug #950021 + local -x TEXMFCACHE="${T}" TEXMFVAR="${T}" + fi + # some macros need compiler called twice, do it here. if nonfatal edo "${mypdflatex[@]}"; then edo "${mypdflatex[@]}"