2019-03-12 16:39:08 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2012-09-11 00:10:23 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-03-12 16:39:08 +03:00
|
|
|
EAPI=7
|
2012-09-11 00:10:23 +04:00
|
|
|
|
2019-12-03 09:04:34 +03:00
|
|
|
PYTHON_COMPAT=( python3_{5,6,7,8} )
|
2019-03-12 16:39:08 +03:00
|
|
|
inherit python-single-r1
|
2012-09-11 00:10:23 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Standalone file import filter library for spreadsheet documents"
|
2015-04-05 19:06:46 +03:00
|
|
|
HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md"
|
2019-03-12 16:39:08 +03:00
|
|
|
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git"
|
|
|
|
inherit git-r3 autotools
|
|
|
|
else
|
|
|
|
SRC_URI="https://kohei.us/files/orcus/src/${P}.tar.xz"
|
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
|
|
|
fi
|
2012-09-11 00:10:23 +04:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
2019-07-29 11:04:19 +03:00
|
|
|
SLOT="0/0.15" # based on SONAME of liborcus.so
|
2016-02-23 18:55:43 +03:00
|
|
|
IUSE="python +spreadsheet-model static-libs tools"
|
2012-09-11 00:10:23 +04:00
|
|
|
|
2012-09-17 18:33:14 +04:00
|
|
|
RDEPEND="
|
2019-11-03 01:09:39 +03:00
|
|
|
dev-libs/boost:=[zlib(+)]
|
2018-09-13 08:57:31 +03:00
|
|
|
sys-libs/zlib
|
2016-02-23 18:55:43 +03:00
|
|
|
python? ( ${PYTHON_DEPS} )
|
2019-07-29 11:04:19 +03:00
|
|
|
spreadsheet-model? ( >=dev-libs/libixion-0.15.0:= )
|
2012-09-11 00:10:23 +04:00
|
|
|
"
|
2012-09-17 18:33:14 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2019-07-29 11:04:19 +03:00
|
|
|
>=dev-util/mdds-1.5.0:1
|
2012-09-17 18:33:14 +04:00
|
|
|
"
|
2012-09-11 00:10:23 +04:00
|
|
|
|
2016-02-23 18:55:43 +03:00
|
|
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
use python && python-single-r1_pkg_setup
|
|
|
|
}
|
|
|
|
|
2012-09-11 00:10:23 +04:00
|
|
|
src_prepare() {
|
2016-10-03 09:31:27 +03:00
|
|
|
default
|
2013-04-20 18:31:04 +04:00
|
|
|
[[ ${PV} == 9999 ]] && eautoreconf
|
2012-09-11 00:10:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
2013-01-17 00:38:12 +04:00
|
|
|
--disable-werror \
|
2016-02-23 18:55:43 +03:00
|
|
|
$(use_enable python) \
|
|
|
|
$(use_enable spreadsheet-model) \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
$(use_with tools)
|
2012-09-11 00:10:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
2019-12-03 09:04:34 +03:00
|
|
|
find "${D}" -name '*.la' -type f -delete || die
|
2012-09-11 00:10:23 +04:00
|
|
|
}
|