1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 EGIT_REPO_URI="git://anongit.freedesktop.org/libreoffice/cppunit"
8 [[ ${PV} = 9999 ]] && inherit git-2 autotools
9 inherit eutils flag-o-matic
11 DESCRIPTION="C++ port of the famous JUnit framework for unit testing"
12 HOMEPAGE="http://www.freedesktop.org/wiki/Software/cppunit"
13 [[ ${PV} = 9999 ]] || SRC_URI="http://dev-www.libreoffice.org/src/${P}.tar.gz"
17 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
18 [[ ${PV} = 9999 ]] || \
19 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
20 IUSE="doc examples static-libs"
29 DOCS=( AUTHORS BUGS NEWS README THANKS TODO doc/FAQ )
30 [[ ${PV} = 9999 ]] || DOCS+=( ChangeLog )
33 [[ ${PV} = 9999 ]] && eautoreconf
37 # Anything else than -O0 breaks on alpha
38 use alpha && replace-flags "-O?" -O0
41 $(use_enable static-libs static) \
42 $(use_enable doc doxygen) \
43 $(use_enable doc dot) \
44 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
45 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
46 --disable-silent-rules
52 prune_libtool_files --all
54 if use examples ; then
55 find examples -iname "*.o" -delete
56 insinto /usr/share/${PN}