1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools
8 DESCRIPTION="mockpp is a platform independent generic unit testing framework for C++."
9 HOMEPAGE="http://mockpp.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
15 IUSE="boost cppunit doc"
17 RDEPEND="cppunit? ( dev-util/cppunit )
18 boost? ( dev-libs/boost )"
20 doc? ( app-doc/doxygen
21 app-text/docbook-xml-dtd
25 if use boost && use cppunit; then
27 ewarn "Both boost and cppunit use-flags specified, will use boost"
35 epatch "${FILESDIR}/${PV}-destdir.patch"
36 epatch "${FILESDIR}/${PV}-boost_incdir_m4.patch"
42 $(use_enable cppunit) \
43 $(use_enable boost boosttest) \
44 $(use_enable doc doxygen) \
45 $(use_enable doc docbook) || die "econf failed"
46 emake || die "emake failed"
50 # docs get build & installed only if doc use-flag is specified
51 emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install || die "emake install failed"
52 dodoc ChangeLog AUTHORS README TODO