summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe McCann <joem@gentoo.org>2005-02-25 02:12:29 +0000
committerJoe McCann <joem@gentoo.org>2005-02-25 02:12:29 +0000
commit75f8ec8f78d0fb65b8a8e8e63a69e78600651513 (patch)
treed75d442332a6d54dbedfa2fbcab882940a75482e /dev-cpp/libxmlpp
parentAdded ~sparc keyword. (diff)
downloadgentoo-2-75f8ec8f78d0fb65b8a8e8e63a69e78600651513.tar.gz
gentoo-2-75f8ec8f78d0fb65b8a8e8e63a69e78600651513.tar.bz2
gentoo-2-75f8ec8f78d0fb65b8a8e8e63a69e78600651513.zip
Build api docs if use=doc. Thanks to ka0ttic@gentoo.org on bug 82797
(Portage version: 2.0.51-r15)
Diffstat (limited to 'dev-cpp/libxmlpp')
-rw-r--r--dev-cpp/libxmlpp/ChangeLog5
-rw-r--r--dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild20
2 files changed, 21 insertions, 4 deletions
diff --git a/dev-cpp/libxmlpp/ChangeLog b/dev-cpp/libxmlpp/ChangeLog
index 8f2dae3c6b9a..6b3a5f07687a 100644
--- a/dev-cpp/libxmlpp/ChangeLog
+++ b/dev-cpp/libxmlpp/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-cpp/libxmlpp
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libxmlpp/ChangeLog,v 1.16 2005/02/25 02:03:40 joem Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libxmlpp/ChangeLog,v 1.17 2005/02/25 02:12:29 joem Exp $
+
+ 24 Feb 2005; Joe McCann <joem@gentoo.org> libxmlpp-2.8.0.ebuild:
+ Build api docs if use=doc. Thanks to ka0ttic@gentoo.org on bug 82797
24 Feb 2005; Joe McCann <joem@gentoo.org> libxmlpp-1.0.4.ebuild:
add pkgconfig dep, mark x86 stable. bug 82931
diff --git a/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild b/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild
index 9ad950a0fad4..1b6678993bcf 100644
--- a/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild
+++ b/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libxmlpp/libxmlpp-2.8.0.ebuild,v 1.3 2005/02/25 02:12:29 joem Exp $
-IUSE=""
+IUSE="doc"
inherit gnome2
@@ -21,8 +21,22 @@ RDEPEND=">=dev-libs/libxml2-2.6.1
>=dev-cpp/glibmm-2.4"
DEPEND="${RDEPEND}
- dev-util/pkgconfig"
+ dev-util/pkgconfig
+ doc? ( app-doc/doxygen )"
MAKEOPTS="${MAKEOPTS} -j1"
+src_compile() {
+ gnome2_src_compile
+ if use doc ; then
+ cd ${S}/docs/reference
+ emake || die "failed to build docs"
+ fi
+}
+
+src_install() {
+ gnome2_src_install
+ use doc && dohtml docs/reference/${PV%.*}/html/*
+}
+
DOCS="AUTHORS ChangeLog NEWS README*"