Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 01 Feb 2016 08:26:11
Message-Id: 1454315157.ae7d6140c423e20e030b86520822cabc3ab0080a.aballier@gentoo
1 commit: ae7d6140c423e20e030b86520822cabc3ab0080a
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 08:24:41 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 08:25:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae7d6140
7
8 eclass/latex-package.eclass: Use in_iuse and build doc conditionnally if doc useflag is present; ref. bug #573530
9
10 eclass/latex-package.eclass | 16 +++++++++-------
11 1 file changed, 9 insertions(+), 7 deletions(-)
12
13 diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
14 index 39211be..1a092d3 100644
15 --- a/eclass/latex-package.eclass
16 +++ b/eclass/latex-package.eclass
17 @@ -51,10 +51,10 @@
18 # you must either grab each file individually, or find a place to mirror an
19 # archive of them. (iBiblio)
20 #
21 -# It inherits base in EAPI 5 and earlier.
22 +# It inherits base and eutils in EAPI 5 and earlier.
23
24 case ${EAPI:-0} in
25 - 0|1|2|3|4|5) inherit base ;;
26 + 0|1|2|3|4|5) inherit base eutils ;;
27 6) ;;
28 *) die "Unknown EAPI ${EAPI} for ${ECLASS}" ;;
29 esac
30 @@ -124,11 +124,13 @@ latex-package_src_doinstall() {
31 done
32 ;;
33 "tex" | "dtx")
34 - for i in `find . -maxdepth 1 -type f -name "*.${1}"`
35 - do
36 - einfo "Making documentation: $i"
37 - texi2dvi -q -c --language=latex $i &> /dev/null || die
38 - done
39 + if ! in_iuse doc || use doc ; then
40 + for i in `find . -maxdepth 1 -type f -name "*.${1}"`
41 + do
42 + einfo "Making documentation: $i"
43 + texi2dvi -q -c --language=latex $i &> /dev/null || die
44 + done
45 + fi
46 ;;
47 "tfm" | "vf" | "afm")
48 for i in `find . -maxdepth 1 -type f -name "*.${1}"`