Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/olm/
Date: Tue, 26 May 2020 10:49:04
Message-Id: 1590368505.eb5ea965687919c3d8eb96f2959a04ef0e8d04c7.andrewammerlaan@gentoo
1 commit: eb5ea965687919c3d8eb96f2959a04ef0e8d04c7
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun May 24 23:30:35 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon May 25 01:01:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb5ea965
7
8 dev-libs/olm: New package
9
10 Dependency for dev-libs/mtxclient.
11
12 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
13
14 dev-libs/olm/Manifest | 1 +
15 dev-libs/olm/metadata.xml | 15 +++++++++++++++
16 dev-libs/olm/olm-3.1.4.ebuild | 36 ++++++++++++++++++++++++++++++++++++
17 3 files changed, 52 insertions(+)
18
19 diff --git a/dev-libs/olm/Manifest b/dev-libs/olm/Manifest
20 new file mode 100644
21 index 0000000..31dcef7
22 --- /dev/null
23 +++ b/dev-libs/olm/Manifest
24 @@ -0,0 +1 @@
25 +DIST olm-3.1.4.tar.bz2 461540 BLAKE2B fa69b1543330c5da37c04227b51197ba57968ef24def40df621b85c0988eac91f8a155f600ab26849f2cd213059c97c7035be6dcca0943245cd4e4895da314b3 SHA512 87265d835ca7332d162bd3573dffdd09c8337c464dd673f100db9193e8ea4cedd8cb2a92cf2c34ad1b552a55bbbce8f87a47559ccfba03fa69b32fc7ff07f5f0
26
27 diff --git a/dev-libs/olm/metadata.xml b/dev-libs/olm/metadata.xml
28 new file mode 100644
29 index 0000000..001398b
30 --- /dev/null
31 +++ b/dev-libs/olm/metadata.xml
32 @@ -0,0 +1,15 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>gentoo@××××××××.de</email>
38 + <name>Ronny (tastytea) Gutbrod</name>
39 + </maintainer>
40 + <longdescription lang="en">
41 + An implementation of the Double Ratchet cryptographic ratchet written in
42 + C and C++11 and exposed as a C API.
43 + </longdescription>
44 + <upstream>
45 + <bugs-to>https://gitlab.matrix.org/matrix-org/olm/-/issues</bugs-to>
46 + </upstream>
47 +</pkgmetadata>
48
49 diff --git a/dev-libs/olm/olm-3.1.4.ebuild b/dev-libs/olm/olm-3.1.4.ebuild
50 new file mode 100644
51 index 0000000..5030239
52 --- /dev/null
53 +++ b/dev-libs/olm/olm-3.1.4.ebuild
54 @@ -0,0 +1,36 @@
55 +# Copyright 2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +inherit cmake
61 +
62 +DESCRIPTION="Implementation of the olm and megolm cryptographic ratchets"
63 +HOMEPAGE="https://gitlab.matrix.org/matrix-org/olm"
64 +SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2"
65 +
66 +LICENSE="Apache-2.0"
67 +SLOT="0"
68 +IUSE="doc test"
69 +KEYWORDS="~amd64"
70 +
71 +RDEPEND=""
72 +DEPEND="${RDEPEND}"
73 +
74 +src_configure() {
75 + local -a mycmakeargs=(
76 + -DOLM_TESTS="$(usex test)"
77 + )
78 +
79 + cmake_src_configure
80 +}
81 +
82 +src_test() {
83 + BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
84 +}
85 +
86 +src_install() {
87 + use doc && DOCS=( README.md docs/{{,meg}olm,signing}.md )
88 +
89 + cmake_src_install
90 +}