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