--- doxygen-1.5.5.ebuild 2008-06-30 12:51:31.000000000 +0200 +++ doxygen-1.5.5-r1.ebuild 2008-06-30 12:50:38.000000000 +0200 @@ -11,10 +11,10 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug doc nodot qt3 tetex elibc_FreeBSD" +IUSE="debug doc nodot qt3 latex elibc_FreeBSD" RDEPEND="qt3? ( $(qt_min_version 3.3) ) - tetex? ( virtual/tetex ) + latex? ( virtual/latex-base ) dev-lang/python virtual/libiconv media-libs/libpng @@ -94,30 +94,30 @@ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" \ LINK_SHLIB="$(tc-getCXX)" all || die 'emake failed' - # generate html and pdf (if tetex in use) documents. + # generate html and pdf (if latex in use) documents. # errors here are not considered fatal, hence the ewarn message # TeX's font caching in /var/cache/fonts causes sandbox warnings, # so we allow it. if use doc; then if use nodot; then - sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ - {Doxyfile,doc/Doxyfile} || ewarn "disabling dot failed" + sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ + {Doxyfile,doc/Doxyfile} || ewarn "disabling dot failed" fi - if use tetex; then - addwrite /var/cache/fonts - addwrite /var/cache/fontconfig - addwrite /usr/share/texmf/fonts/pk - addwrite /usr/share/texmf/ls-R - make pdf || ewarn '"make pdf docs" failed.' + if use latex; then + addwrite /var/cache/fonts + addwrite /var/cache/fontconfig + addwrite /usr/share/texmf/fonts/pk + addwrite /usr/share/texmf/ls-R + make pdf || ewarn '"make pdf docs" failed.' else - cp doc/Doxyfile doc/Doxyfile.orig - cp doc/Makefile doc/Makefile.orig - sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ - doc/Doxyfile - sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ - -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ - -e "s/@sed/# @sed/" doc/Makefile - make docs || ewarn '"make html docs" failed.' + cp doc/Doxyfile doc/Doxyfile.orig + cp doc/Makefile doc/Makefile.orig + sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ + doc/Doxyfile + sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ + -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ + -e "s/@sed/# @sed/" doc/Makefile + make docs || ewarn '"make html docs" failed.' fi fi } @@ -137,8 +137,8 @@ # pdf and html manuals if use doc; then insinto /usr/share/doc/"${PF}" - if use tetex; then - doins latex/doxygen_manual.pdf + if use latex; then + doins latex/doxygen_manual.pdf fi dohtml -r html/* fi @@ -148,7 +148,7 @@ fdo-mime_desktop_database_update elog - elog "The USE flags qt3, doc, and tetex will enable doxywizard, or" + elog "The USE flags qt3, doc, and latex will enable doxywizard, or" elog "the html and pdf documentation, respectively. For examples" elog "and other goodies, see the source tarball. For some example" elog "output, run doxygen on the doxygen source using the Doxyfile"