# Copyright 1999-2009 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.ebuild,v 1.4 2009/08/14 08:03:27 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" IUSE="debug doc" RDEPEND="" DEPEND="doc? ( app-doc/doxygen )" src_prepare() { cp -f "${FILESDIR}"/Makefile . || die } src_compile() { use debug && append-cppflags -DDEBUG 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 }