2020-03-06 22:39:53 +00:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2020-06-01 11:30:01 +00:00
|
|
|
EAPI=7
|
2020-03-06 22:39:53 +00:00
|
|
|
|
2020-10-05 09:58:48 +00:00
|
|
|
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
2020-06-01 11:30:01 +00:00
|
|
|
|
|
|
|
inherit cmake-utils python-r1
|
2020-03-06 22:39:53 +00:00
|
|
|
|
|
|
|
DESCRIPTION="Implementation of the olm and megolm cryptographic ratchets"
|
|
|
|
HOMEPAGE="https://gitlab.matrix.org/matrix-org/olm"
|
|
|
|
SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2"
|
|
|
|
|
2020-06-01 11:44:38 +00:00
|
|
|
LICENSE="Apache-2.0"
|
2020-03-06 22:39:53 +00:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2020-06-01 11:30:01 +00:00
|
|
|
IUSE="+python"
|
|
|
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
python? (
|
|
|
|
${PYTHON_DEPS}
|
|
|
|
dev-python/cffi[${PYTHON_USEDEP}]
|
|
|
|
dev-python/future[${PYTHON_USEDEP}]
|
|
|
|
dev-python/typing[${PYTHON_USEDEP}]
|
|
|
|
)"
|
|
|
|
|
|
|
|
compile_pybinding() {
|
|
|
|
cd python
|
|
|
|
"${EPYTHON}" setup.py build || die
|
|
|
|
python_optimize
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
|
|
|
|
|
|
|
if use python; then
|
|
|
|
python_foreach_impl compile_pybinding
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
install_pybinding() {
|
|
|
|
cd python
|
|
|
|
"${EPYTHON}" setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" || die
|
|
|
|
python_optimize
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
if use python; then
|
|
|
|
python_foreach_impl install_pybinding
|
|
|
|
fi
|
|
|
|
}
|