commit:     e3f50204586f2520fd195979ac22423643103bbe
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  2 09:16:42 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Aug  2 09:16:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3f50204

eclass/latex-package.eclass: Add LATEX_PACKAGE_SKIP variable to allow skipping 
rebuild of some docs.

 eclass/latex-package.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index bfddfad..d810e28 100644
--- a/eclass/latex-package.eclass
+++ b/eclass/latex-package.eclass
@@ -138,6 +138,7 @@ latex-package_src_doinstall() {
                                if ! in_iuse doc || use doc ; then
                                        for i in `find . -maxdepth 1 -type f 
-name "*.${1}"`
                                        do
+                                               [ -n "${LATEX_PACKAGE_SKIP}" ] 
&& has ${i##*/} ${LATEX_PACKAGE_SKIP} && continue
                                                einfo "Making documentation: $i"
                                                if pdflatex 
${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null ; then
                                                        pdflatex 
${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null || die

Reply via email to