src_prepare-overlay/dev-libs/olm/olm-3.1.5-r1.ebuild
Alfred Wingate 6d5d54e383
dev-libs/olm: add python use to 3.1.5 and remove 3.1.4
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2020-09-22 21:29:23 +03:00

47 lines
974 B
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9} )
DISTUTILS_OPTIONAL=1
inherit cmake distutils-r1
DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++"
HOMEPAGE="https://git.matrix.org/git/olm/about/"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.matrix.org/matrix-org/${PN}.git"
else
SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0/$(ver_cut 1)"
IUSE="python"
DEPEND="
python? (
dev-python/cffi[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
)
"
src_prepare() {
cmake_src_prepare
use python && (cd python; distutils-r1_src_prepare)
}
src_compile() {
cmake_src_compile
use python && (cd python; distutils-r1_src_compile)
}
src_install() {
cmake_src_install
use python && (cd python; distutils-r1_src_install)
}