1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libetonyek.git"
7 [[ ${PV} == 9999 ]] && inherit autotools git-r3
9 DESCRIPTION="Library parsing Apple Keynote presentations"
10 HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
11 [[ ${PV} == 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/libetonyek/${P}.tar.xz"
13 LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
15 [[ ${PV} == 9999 ]] || \
16 KEYWORDS="~amd64 ~arm ~x86"
17 IUSE="doc static-libs test"
27 >=dev-util/mdds-1.2.2:1
31 doc? ( app-doc/doxygen )
32 test? ( dev-util/cppunit )
36 if [[ $(gcc-major-version) -lt 4 ]] || {
37 [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]]; }
39 eerror "Compilation with gcc older than 4.8 is not supported"
40 die "Too old gcc found."
46 [[ -d m4 ]] || mkdir "m4"
47 [[ ${PV} == 9999 ]] && eautoreconf
53 $(use_with doc docs) \
54 $(use_enable static-libs static) \
55 $(use_enable test tests) \
61 find "${D}" -name '*.la' -delete || die