--- cvs/gentoo-x86/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild 2005-01-01 21:44:52.000000000 -0500 +++ overlay/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild 2005-02-21 07:27:28.297202660 -0500 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild,v 1.2 2005/01/01 17:29:19 eradicator Exp $ -IUSE="" +IUSE="doc" inherit gnome2 @@ -21,8 +21,22 @@ >=dev-cpp/glibmm-2.4" DEPEND="${RDEPEND} - dev-util/pkgconfig" + dev-util/pkgconfig + doc? ( app-doc/doxygen )" MAKEOPTS="${MAKEOPTS} -j1" DOCS="AUTHORS ChangeLog NEWS README*" + +src_compile() { + gnome2_src_compile + if use doc ; then + cd docs/reference + emake || die "failed to build docs" + fi +} + +src_install() { + gnome2_src_install + use doc && dohtml docs/reference/${PV%.*}/html/* +}