2020-03-17 08:50:13 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
2020-05-29 11:06:45 +03:00
|
|
|
inherit autotools python-single-r1
|
2020-03-17 08:50:13 +03:00
|
|
|
|
|
|
|
DESCRIPTION="Standalone file import filter library for spreadsheet documents"
|
|
|
|
HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md"
|
|
|
|
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git"
|
2020-05-29 11:06:45 +03:00
|
|
|
inherit git-r3
|
2020-03-17 08:50:13 +03:00
|
|
|
else
|
|
|
|
SRC_URI="https://kohei.us/files/orcus/src/${P}.tar.xz"
|
2020-05-21 10:57:11 +03:00
|
|
|
KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~x86"
|
2020-03-17 08:50:13 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0/0.15" # based on SONAME of liborcus.so
|
2020-05-29 11:06:45 +03:00
|
|
|
IUSE="python +spreadsheet-model tools"
|
|
|
|
|
|
|
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
2020-03-17 08:50:13 +03:00
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-libs/boost:=[zlib(+)]
|
|
|
|
sys-libs/zlib
|
|
|
|
python? ( ${PYTHON_DEPS} )
|
2020-04-12 01:41:53 +03:00
|
|
|
spreadsheet-model? ( dev-libs/libixion:${SLOT} )
|
2020-03-17 08:50:13 +03:00
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
2020-04-12 01:41:53 +03:00
|
|
|
dev-util/mdds:1/1.5
|
2020-03-17 08:50:13 +03:00
|
|
|
"
|
|
|
|
|
2020-05-29 11:06:45 +03:00
|
|
|
PATCHES=( "${FILESDIR}/${P}-bashism.patch" ) # bug 723130
|
2020-03-17 08:50:13 +03:00
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
use python && python-single-r1_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
2020-05-29 11:06:45 +03:00
|
|
|
eautoreconf
|
2020-03-17 08:50:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local myeconfargs=(
|
2020-05-29 11:06:45 +03:00
|
|
|
--disable-static
|
2020-03-17 08:50:13 +03:00
|
|
|
--disable-werror
|
|
|
|
$(use_enable python)
|
|
|
|
$(use_enable spreadsheet-model)
|
|
|
|
$(use_with tools)
|
|
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
find "${D}" -name '*.la' -type f -delete || die
|
|
|
|
}
|