dev-libs/olm: bump to 3.2.4

Bug: https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/28
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2021-06-15 03:55:52 +03:00
parent 692e33c211
commit d5cbc09649
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
2 changed files with 97 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST olm-3.2.1.tar.bz2 462729 BLAKE2B 63d4c33eb79f4d0b4950ad8970d3e4a84d015193df72e4e88ad34d5d82e4c9d3c8677392ba2e12f8a80a67cff5c203b3116a0edf13798a7af3cc4fd8b6312e93 SHA512 adb9cff6148d19df4b83a287723219d4da9efd162f7a2824bee63d824d22c20a10fd2c2d8ce74aff5ec006c6dc8828bd6851cc82be93bc6c4524cf7067080412 DIST olm-3.2.1.tar.bz2 462729 BLAKE2B 63d4c33eb79f4d0b4950ad8970d3e4a84d015193df72e4e88ad34d5d82e4c9d3c8677392ba2e12f8a80a67cff5c203b3116a0edf13798a7af3cc4fd8b6312e93 SHA512 adb9cff6148d19df4b83a287723219d4da9efd162f7a2824bee63d824d22c20a10fd2c2d8ce74aff5ec006c6dc8828bd6851cc82be93bc6c4524cf7067080412
DIST olm-3.2.2.tar.bz2 475682 BLAKE2B f6588281ef236c36c4a678eb02250e6b0d496719dc8736b1bdcbc346a16c3b579d988d6cbe99749473e53bbc03830e90c666ced112cd5a85b63f7ebe0704b6cb SHA512 a541299f2fbdaa2be5698a690cd753142311a3206011d70186e1122d575478f91e7feba207fe5d09ce506330dd1f9fbb71dccb3de7014c5333427fdd3b77b668 DIST olm-3.2.2.tar.bz2 475682 BLAKE2B f6588281ef236c36c4a678eb02250e6b0d496719dc8736b1bdcbc346a16c3b579d988d6cbe99749473e53bbc03830e90c666ced112cd5a85b63f7ebe0704b6cb SHA512 a541299f2fbdaa2be5698a690cd753142311a3206011d70186e1122d575478f91e7feba207fe5d09ce506330dd1f9fbb71dccb3de7014c5333427fdd3b77b668
DIST olm-3.2.4.tar.bz2 479336 BLAKE2B 9de6b869c94a7f47b269b55526408ce6930ac5354495608038888f13efe72a6fab498c85c6ffe073a1f76391cbe4a83cfc6c65382d593bc487dafe64894ca0ed SHA512 94f661a2c9fe22f7dfefc89e488be37da2fe19dedd3ba296e09c55e63886ed82b71a30d84ecbdfa5dee820b1b6a918daefab248536c137459b8f244dc514920b

View File

@ -0,0 +1,96 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{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="Apache-2.0"
SLOT="0/$(ver_cut 1)"
IUSE="python test"
REQUIRED_USE="doc? ( python )"
DEPEND="
python? (
>=dev-python/cffi-1.0.0[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
test? (
dev-python/aspectlib[${PYTHON_USEDEP}]
dev-python/pytest-benchmark[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-flake8[${PYTHON_USEDEP}]
dev-python/pytest-isort[${PYTHON_USEDEP}]
)
)
"
distutils_enable_tests pytest
distutils_enable_sphinx "${S}"/python/docs
DOCS=( "${S}/docs/" )
src_prepare() {
cmake_src_prepare
if use python; then
pushd python || die
distutils-r1_src_prepare
popd || die
fi
}
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DOLM_TESTS=$(usex test ON OFF)
)
cmake_src_configure
if use python; then
pushd python || die
distutils-r1_src_configure
popd || die
fi
}
src_compile() {
cmake_src_compile
if use python; then
pushd python || die
# Let python build find the already built libolm
export LIBRARY_PATH="${BUILD_DIR}/"
distutils-r1_src_compile
popd || die
fi
}
src_install() {
cmake_src_install
if use python; then
pushd python || die
distutils-r1_src_install
popd || die
fi
einstalldocs
}
src_test() {
emake test
if use python; then
pushd python || die
distutils-r1_src_test
popd || die
fi
}