From 12cac95407c0a65c8db339b55b61dfa23665c10f Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sun, 14 Jun 2020 13:16:32 +0200 Subject: [PATCH] dev-libs/olm: Import from guru Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay --- dev-libs/olm/Manifest | 1 + dev-libs/olm/metadata.xml | 15 +++++++++++++++ dev-libs/olm/olm-3.1.4.ebuild | 36 +++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dev-libs/olm/Manifest create mode 100644 dev-libs/olm/metadata.xml create mode 100644 dev-libs/olm/olm-3.1.4.ebuild diff --git a/dev-libs/olm/Manifest b/dev-libs/olm/Manifest new file mode 100644 index 0000000..31dcef7 --- /dev/null +++ b/dev-libs/olm/Manifest @@ -0,0 +1 @@ +DIST olm-3.1.4.tar.bz2 461540 BLAKE2B fa69b1543330c5da37c04227b51197ba57968ef24def40df621b85c0988eac91f8a155f600ab26849f2cd213059c97c7035be6dcca0943245cd4e4895da314b3 SHA512 87265d835ca7332d162bd3573dffdd09c8337c464dd673f100db9193e8ea4cedd8cb2a92cf2c34ad1b552a55bbbce8f87a47559ccfba03fa69b32fc7ff07f5f0 diff --git a/dev-libs/olm/metadata.xml b/dev-libs/olm/metadata.xml new file mode 100644 index 0000000..001398b --- /dev/null +++ b/dev-libs/olm/metadata.xml @@ -0,0 +1,15 @@ + + + + + gentoo@tastytea.de + Ronny (tastytea) Gutbrod + + + An implementation of the Double Ratchet cryptographic ratchet written in + C and C++11 and exposed as a C API. + + + https://gitlab.matrix.org/matrix-org/olm/-/issues + + diff --git a/dev-libs/olm/olm-3.1.4.ebuild b/dev-libs/olm/olm-3.1.4.ebuild new file mode 100644 index 0000000..5030239 --- /dev/null +++ b/dev-libs/olm/olm-3.1.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 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" +IUSE="doc test" +KEYWORDS="~amd64" + +RDEPEND="" +DEPEND="${RDEPEND}" + +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 +}