summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-02-20 20:53:28 +0000
committerMamoru Komachi <usata@gentoo.org>2004-02-20 20:53:28 +0000
commit8a86e9be928578980f1885b1ef5b0b18089025ea (patch)
tree87f5f6823be44190d47be7d84e7170595ae8ce14 /app-doc/doxygen/doxygen-1.3.5.ebuild
parentupdate HOMEPAGE #42167 (diff)
downloadgentoo-2-8a86e9be928578980f1885b1ef5b0b18089025ea.tar.gz
gentoo-2-8a86e9be928578980f1885b1ef5b0b18089025ea.tar.bz2
gentoo-2-8a86e9be928578980f1885b1ef5b0b18089025ea.zip
Added tetex IUSE flag. Thanks to Ronny Shoebel <ronny@l61.de> for submitting a patch to ebuilds. This closes bug #42067
Diffstat (limited to 'app-doc/doxygen/doxygen-1.3.5.ebuild')
-rw-r--r--app-doc/doxygen/doxygen-1.3.5.ebuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/app-doc/doxygen/doxygen-1.3.5.ebuild b/app-doc/doxygen/doxygen-1.3.5.ebuild
index 92b68773854d..2b0e64d3d449 100644
--- a/app-doc/doxygen/doxygen-1.3.5.ebuild
+++ b/app-doc/doxygen/doxygen-1.3.5.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.3.5.ebuild,v 1.6 2004/02/06 22:11:15 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.3.5.ebuild,v 1.7 2004/02/20 20:53:28 usata Exp $
-IUSE="doc qt"
+IUSE="doc qt tetex"
DESCRIPTION="Doxygen is a documentation system for C++, C, Java, IDL (Corba, Microsoft, and KDE-DCOP flavors) and to some extent PHP and C#."
HOMEPAGE="http://www.doxygen.org"
@@ -14,11 +14,11 @@ KEYWORDS="x86 ~ppc sparc alpha hppa amd64 ia64"
RDEPEND="media-gfx/graphviz
qt? ( x11-libs/qt )
- doc? ( virtual/tetex
+ doc? ( tetex? ( virtual/tetex )
virtual/ghostscript )"
DEPEND=">=sys-apps/sed-4
- ${RDEPEND}"
+ ${RDEPEND}"
src_unpack() {
unpack ${A}
@@ -44,15 +44,25 @@ src_compile() {
./configure ${confopts} || die '"./configure" failed.'
emake all || die '"emake all" failed.'
- # generate html and pdf documents.
+ # generate html and pdf (if tetex 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
- addwrite /var/cache/fonts
- addwrite /usr/share/texmf/fonts/pk
- addwrite /usr/share/texmf/ls-R
- make pdf || ewarn '"make docs" failed.'
+ if use tetex; then
+ addwrite /var/cache/fonts
+ addwrite /usr/share/texmf/fonts/pk
+ addwrite /usr/share/texmf/ls-R
+ make pdf || ewarn '"make 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 docs" failed.'
+ fi
fi
}
@@ -64,7 +74,9 @@ src_install() {
# pdf and html manuals
if use doc; then
insinto /usr/share/doc/${P}
- doins latex/doxygen_manual.pdf
+ if use tetex; then
+ doins latex/doxygen_manual.pdf
+ fi
dohtml -r html/*
fi
}