1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 ECVS_SERVER="tinyxml.cvs.sourceforge.net:/cvsroot/tinyxml"
10 DESCRIPTION="A simple C++ XML parser that can be easily integrating into other programs"
11 HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
17 IUSE="debug doc examples"
19 DEPEND="dev-util/scons
20 doc? ( app-doc/doxygen )"
26 use debug && myconf="debug=0"
27 scons ${MAKEOPTS} ${myconf} sharedlibrary=1 program=0 || die "scons failed"
29 doxygen dox || die "doxygen failed"
35 doins *.h || die "installing headers failed"
36 dolib libtinyxml.so || die "installing library failed"
37 dodoc {changes,readme}.txt
39 dohtml docs/* || die "installing docs"
41 if use examples ; then
42 insinto /usr/share/doc/${PF}/samples
43 doins *.xml xmltest.cpp || die "installing examples"