1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
7 inherit autotools python-single-r1
9 DESCRIPTION="Standalone file import filter library for spreadsheet documents"
10 HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md"
12 if [[ ${PV} == *9999* ]]; then
13 EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git"
16 SRC_URI="https://kohei.us/files/orcus/src/${P}.tar.xz"
17 KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~x86"
21 SLOT="0/0.15" # based on SONAME of liborcus.so
22 IUSE="python +spreadsheet-model tools"
24 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
27 dev-libs/boost:=[zlib(+)]
29 python? ( ${PYTHON_DEPS} )
30 spreadsheet-model? ( dev-libs/libixion:${SLOT} )
36 PATCHES=( "${FILESDIR}/${P}-bashism.patch" ) # bug 723130
39 use python && python-single-r1_pkg_setup
52 $(use_enable spreadsheet-model)
55 econf "${myeconfargs[@]}"
60 find "${D}" -name '*.la' -type f -delete || die