1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 EGIT_REPO_URI="git://anongit.freedesktop.org/git/libreoffice/libetonyek"
8 [[ ${PV} == 9999 ]] && inherit git-r3
10 DESCRIPTION="Library parsing Apple Keynote presentations"
11 HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
12 [[ ${PV} == 9999 ]] || SRC_URI="http://dev-www.libreoffice.org/src/${PN}/${P}.tar.xz"
14 LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
16 [[ ${PV} == 9999 ]] || \
17 KEYWORDS="amd64 ~arm x86"
18 IUSE="doc static-libs test"
21 >=app-text/liblangtag-0.5
28 >=dev-util/mdds-1.2.0:1
32 doc? ( app-doc/doxygen )
33 test? ( dev-util/cppunit )
37 "${FILESDIR}/${P}-mdds-1.2.patch" # patch taken from Debian
38 "${FILESDIR}/${P}-drop-test.patch" # bug 595022
42 if [[ $(gcc-major-version) -lt 4 ]] || {
43 [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]]; }
45 eerror "Compilation with gcc older than 4.8 is not supported"
46 die "Too old gcc found."
52 [[ -d m4 ]] || mkdir "m4"
59 $(use_with doc docs) \
60 $(use_enable static-libs static) \
61 $(use_enable test tests)
66 find "${D}" -name '*.la' -delete || die