Skip to content

Commit

Permalink
eclass/latex-package.eclass: Use in_iuse and build doc conditionnally…
Browse files Browse the repository at this point in the history
… if doc useflag is present; ref. bug #573530
  • Loading branch information
aballier committed Feb 1, 2016
1 parent 3bf69d3 commit ae7d614
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions eclass/latex-package.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"`
Expand Down

0 comments on commit ae7d614

Please sign in to comment.