# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/tinyxml/tinyxml-2.5.3_p20090813-r1.ebuild,v 1.1 2010/04/12 13:14:24 ssuominen Exp $ EAPI=2 inherit flag-o-matic toolchain-funcs DESCRIPTION="a simple, small, C++ XML parser that can be easily integrating into other programs" HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html" SRC_URI="mirror://gentoo/${P}.tar.bz2" LICENSE="ZLIB" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug doc stl" RDEPEND="" DEPEND="doc? ( app-doc/doxygen )" src_prepare() { cp -f "${FILESDIR}"/Makefile . || die } src_compile() { use debug && append-cppflags -DDEBUG use stl && append-cppflags -DTIXML_USE_STL tc-export AR CXX RANLIB emake || die "emake failed" if use doc; then doxygen dox || die "doxygen failed" fi } src_install() { dolib.so *.so* || die "dolib.so failed" dolib.a *.a || die "dolib.a failed" insinto /usr/include doins *.h || die "doins failed" dodoc {changes,readme}.txt || die "dodoc failed" if use doc; then dodoc tutorial_gettingStarted.txt || die "dodoc failed" dohtml -r docs/* || die "dohtml failed" fi }