1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic multilib-minimal
8 if [[ ${PV} == *9999 ]] ; then
9 EGIT_REPO_URI="git://git.code.sf.net/p/libwpd/librevenge"
10 inherit git-r3 autotools
12 SRC_URI="https://sf.net/projects/libwpd/files/${PN}/${P}/${P}.tar.xz"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
15 DESCRIPTION="Helper library for REVerse ENGineered formats filters"
16 HOMEPAGE="https://sf.net/p/libwpd/librevenge"
18 LICENSE="|| ( MPL-2.0 LGPL-2.1 )"
21 RESTRICT="!test? ( test )"
24 doc? ( app-doc/doxygen )
27 sys-libs/zlib[${MULTILIB_USEDEP}]
31 test? ( dev-util/cppunit[${MULTILIB_USEDEP}] )
36 [[ ${PV} = *9999 ]] && eautoreconf
39 append-cxxflags -std=c++11
42 multilib_src_configure() {
47 $(use_enable test tests)
49 ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
52 multilib_src_install_all() {
54 find "${D}" -name '*.la' -type f -delete || die