1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ ${PV} = *9999 ]]; then
9 EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libfreehand.git"
10 inherit autotools git-r3
12 SRC_URI="https://dev-www.libreoffice.org/src/libfreehand/${P}.tar.xz"
13 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
15 DESCRIPTION="Library for import of FreeHand drawings"
16 HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
20 IUSE="doc static-libs test"
21 RESTRICT="!test? ( test )"
25 doc? ( app-doc/doxygen )
37 test? ( dev-util/cppunit )
42 [[ -d m4 ]] || mkdir "m4"
43 [[ ${PV} == *9999 ]] && eautoreconf
48 append-cxxflags -std=c++14
53 $(use_enable static-libs static)
54 $(use_enable test tests)
56 econf "${myeconfargs[@]}"
61 find "${D}" -name '*.la' -type f -delete || die