# Copyright 1999-2004 Gentoo Foundation # Copyright 2005 Boris Gruschke # Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="CxxTest is a JUnit/CppUnit/xUnit-like unit testing framework for C++." HOMEPAGE="http://cxxtest.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="examples doc" RDEPEND=">=dev-lang/perl" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} if useq doc; then epatch ${FILESDIR}/01_all_link-to-doc.patch.txt else epatch ${FILESDIR}/01_all_link-to-web.patch.txt fi } src_install() { dobin cxxtestgen.p[ly] insinto usr/include/cxxtest doins cxxtest/* dodoc README COPYING useq doc && { dodoc TODO Versions dohtml docs/* } useq examples && for f in `find sample -type f`; do docinto `dirname $f` dodoc $f done }