# 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.ebuild,v 1.5 2010/03/07 10:00:58 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" 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 }