From 775a7bbf130d0d425411f1196c8bb5c91ad7721a Mon Sep 17 00:00:00 2001 From: Marco Scardovi Date: Tue, 22 Jun 2021 17:27:08 +0200 Subject: [PATCH] dev-libs/olm: add ~arm64 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi --- dev-libs/olm/olm-3.2.4-r1.ebuild | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dev-libs/olm/olm-3.2.4-r1.ebuild diff --git a/dev-libs/olm/olm-3.2.4-r1.ebuild b/dev-libs/olm/olm-3.2.4-r1.ebuild new file mode 100644 index 0000000000..006ec1b638 --- /dev/null +++ b/dev-libs/olm/olm-3.2.4-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +IUSE="doc test" +RESTRICT="!test? ( test )" + +src_configure() { + local -a mycmakeargs=( + -DOLM_TESTS="$(usex test)" + ) + + cmake_src_configure +} + +src_test() { + BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test +} + +src_install() { + use doc && DOCS=( README.md docs/{{,meg}olm,signing}.md ) + + cmake_src_install +}