diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-02-01 09:24:41 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-02-01 09:25:57 +0100 |
commit | ae7d6140c423e20e030b86520822cabc3ab0080a (patch) | |
tree | 69e08df7021a64f4afba75cbcb055f072aaed691 /eclass/latex-package.eclass | |
parent | eclass/latex-package.eclass: reindent (diff) | |
download | gentoo-ae7d6140c423e20e030b86520822cabc3ab0080a.tar.gz gentoo-ae7d6140c423e20e030b86520822cabc3ab0080a.tar.bz2 gentoo-ae7d6140c423e20e030b86520822cabc3ab0080a.zip |
eclass/latex-package.eclass: Use in_iuse and build doc conditionnally if doc useflag is present; ref. bug #573530
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r-- | eclass/latex-package.eclass | 16 |
1 files changed, 9 insertions, 7 deletions
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}"` |