Lines 11-20
Link Here
|
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
14 |
IUSE="debug doc nodot qt3 tetex elibc_FreeBSD" |
14 |
IUSE="debug doc nodot qt3 latex elibc_FreeBSD" |
15 |
|
15 |
|
16 |
RDEPEND="qt3? ( $(qt_min_version 3.3) ) |
16 |
RDEPEND="qt3? ( $(qt_min_version 3.3) ) |
17 |
tetex? ( virtual/tetex ) |
17 |
latex? ( virtual/latex-base ) |
18 |
dev-lang/python |
18 |
dev-lang/python |
19 |
virtual/libiconv |
19 |
virtual/libiconv |
20 |
media-libs/libpng |
20 |
media-libs/libpng |
Lines 94-123
Link Here
|
94 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" \ |
94 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" \ |
95 |
LINK_SHLIB="$(tc-getCXX)" all || die 'emake failed' |
95 |
LINK_SHLIB="$(tc-getCXX)" all || die 'emake failed' |
96 |
|
96 |
|
97 |
# generate html and pdf (if tetex in use) documents. |
97 |
# generate html and pdf (if latex in use) documents. |
98 |
# errors here are not considered fatal, hence the ewarn message |
98 |
# errors here are not considered fatal, hence the ewarn message |
99 |
# TeX's font caching in /var/cache/fonts causes sandbox warnings, |
99 |
# TeX's font caching in /var/cache/fonts causes sandbox warnings, |
100 |
# so we allow it. |
100 |
# so we allow it. |
101 |
if use doc; then |
101 |
if use doc; then |
102 |
if use nodot; then |
102 |
if use nodot; then |
103 |
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
103 |
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
104 |
{Doxyfile,doc/Doxyfile} || ewarn "disabling dot failed" |
104 |
{Doxyfile,doc/Doxyfile} || ewarn "disabling dot failed" |
105 |
fi |
105 |
fi |
106 |
if use tetex; then |
106 |
if use latex; then |
107 |
addwrite /var/cache/fonts |
107 |
addwrite /var/cache/fonts |
108 |
addwrite /var/cache/fontconfig |
108 |
addwrite /var/cache/fontconfig |
109 |
addwrite /usr/share/texmf/fonts/pk |
109 |
addwrite /usr/share/texmf/fonts/pk |
110 |
addwrite /usr/share/texmf/ls-R |
110 |
addwrite /usr/share/texmf/ls-R |
111 |
make pdf || ewarn '"make pdf docs" failed.' |
111 |
make pdf || ewarn '"make pdf docs" failed.' |
112 |
else |
112 |
else |
113 |
cp doc/Doxyfile doc/Doxyfile.orig |
113 |
cp doc/Doxyfile doc/Doxyfile.orig |
114 |
cp doc/Makefile doc/Makefile.orig |
114 |
cp doc/Makefile doc/Makefile.orig |
115 |
sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
115 |
sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
116 |
doc/Doxyfile |
116 |
doc/Doxyfile |
117 |
sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
117 |
sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
118 |
-e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
118 |
-e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
119 |
-e "s/@sed/# @sed/" doc/Makefile |
119 |
-e "s/@sed/# @sed/" doc/Makefile |
120 |
make docs || ewarn '"make html docs" failed.' |
120 |
make docs || ewarn '"make html docs" failed.' |
121 |
fi |
121 |
fi |
122 |
fi |
122 |
fi |
123 |
} |
123 |
} |
Lines 137-144
Link Here
|
137 |
# pdf and html manuals |
137 |
# pdf and html manuals |
138 |
if use doc; then |
138 |
if use doc; then |
139 |
insinto /usr/share/doc/"${PF}" |
139 |
insinto /usr/share/doc/"${PF}" |
140 |
if use tetex; then |
140 |
if use latex; then |
141 |
doins latex/doxygen_manual.pdf |
141 |
doins latex/doxygen_manual.pdf |
142 |
fi |
142 |
fi |
143 |
dohtml -r html/* |
143 |
dohtml -r html/* |
144 |
fi |
144 |
fi |
Lines 148-154
Link Here
|
148 |
fdo-mime_desktop_database_update |
148 |
fdo-mime_desktop_database_update |
149 |
|
149 |
|
150 |
elog |
150 |
elog |
151 |
elog "The USE flags qt3, doc, and tetex will enable doxywizard, or" |
151 |
elog "The USE flags qt3, doc, and latex will enable doxywizard, or" |
152 |
elog "the html and pdf documentation, respectively. For examples" |
152 |
elog "the html and pdf documentation, respectively. For examples" |
153 |
elog "and other goodies, see the source tarball. For some example" |
153 |
elog "and other goodies, see the source tarball. For some example" |
154 |
elog "output, run doxygen on the doxygen source using the Doxyfile" |
154 |
elog "output, run doxygen on the doxygen source using the Doxyfile" |