commit: 775a7bbf130d0d425411f1196c8bb5c91ad7721a Author: Marco Scardovi <marco <AT> scardovi <DOT> com> AuthorDate: Tue Jun 22 15:27:08 2021 +0000 Commit: Marco Scardovi <marco <AT> scardovi <DOT> com> CommitDate: Tue Jun 22 15:27:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=775a7bbf
dev-libs/olm: add ~arm64 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> dev-libs/olm/olm-3.2.4-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 000000000..006ec1b63 --- /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 +}
