summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>2016-03-05 16:56:45 +0100
committerJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>2016-03-05 16:56:45 +0100
commitf6082c51c50081061e5302834b7951600ff7caa1 (patch)
treed23076eb7715e396da8c66446e831a26a7aca304 /eclass/latex-package.eclass
parentkde-apps/akregator: amd64 stable wrt bug #569742 (diff)
downloadgentoo-f6082c51c50081061e5302834b7951600ff7caa1.tar.gz
gentoo-f6082c51c50081061e5302834b7951600ff7caa1.tar.bz2
gentoo-f6082c51c50081061e5302834b7951600ff7caa1.zip
tex-package.eclass: allow passing arguments to pdflatex
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r--eclass/latex-package.eclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index 171110171dd5..a17e5b389f72 100644
--- a/eclass/latex-package.eclass
+++ b/eclass/latex-package.eclass
@@ -71,6 +71,13 @@ TEXMF="/usr/share/texmf-site"
# DESCRIPTION above)
SUPPLIER="misc"
+# @ECLASS-VARIABLE: LATEX_DOC_ARGUMENTS
+# @DESCRIPTION:
+# When compiling documentation (.tex/.dtx), this variable will be passed
+# to pdflatex as additional argument (e.g. -shell-escape). This variable
+# must be set after inherit, as it gets automatically cleared otherwise.
+LATEX_DOC_ARGUMENTS=""
+
# Kept for backwards compatibility
latex-package_has_tetex_3() {
case ${EAPI:-0} in
@@ -128,8 +135,8 @@ latex-package_src_doinstall() {
for i in `find . -maxdepth 1 -type f -name "*.${1}"`
do
einfo "Making documentation: $i"
- if pdflatex --interaction=batchmode $i &> /dev/null ; then
- pdflatex --interaction=batchmode $i &> /dev/null || die
+ if pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null ; then
+ pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null || die
else
einfo "pdflatex failed, trying texi2dvi"
texi2dvi -q -c --language=latex $i &> /dev/null || die