From: Alexis Ballier Date: Mon, 1 Feb 2016 08:24:41 +0000 (+0100) Subject: eclass/latex-package.eclass: Use in_iuse and build doc conditionnally if doc useflag... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ae7d6140c423e20e030b86520822cabc3ab0080a;p=gentoo.git eclass/latex-package.eclass: Use in_iuse and build doc conditionnally if doc useflag is present; ref. bug #573530 --- diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index 39211be6e181..1a092d3d7d37 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -51,10 +51,10 @@ # you must either grab each file individually, or find a place to mirror an # archive of them. (iBiblio) # -# It inherits base in EAPI 5 and earlier. +# It inherits base and eutils in EAPI 5 and earlier. case ${EAPI:-0} in - 0|1|2|3|4|5) inherit base ;; + 0|1|2|3|4|5) inherit base eutils ;; 6) ;; *) die "Unknown EAPI ${EAPI} for ${ECLASS}" ;; esac @@ -124,11 +124,13 @@ latex-package_src_doinstall() { done ;; "tex" | "dtx") - for i in `find . -maxdepth 1 -type f -name "*.${1}"` - do - einfo "Making documentation: $i" - texi2dvi -q -c --language=latex $i &> /dev/null || die - done + if ! in_iuse doc || use doc ; then + for i in `find . -maxdepth 1 -type f -name "*.${1}"` + do + einfo "Making documentation: $i" + texi2dvi -q -c --language=latex $i &> /dev/null || die + done + fi ;; "tfm" | "vf" | "afm") for i in `find . -maxdepth 1 -type f -name "*.${1}"`