dev-libs/olm: Import from guru

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-06-14 13:16:32 +02:00
parent 16065fedef
commit 12cac95407
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
3 changed files with 52 additions and 0 deletions

1
dev-libs/olm/Manifest Normal file
View File

@ -0,0 +1 @@
DIST olm-3.1.4.tar.bz2 461540 BLAKE2B fa69b1543330c5da37c04227b51197ba57968ef24def40df621b85c0988eac91f8a155f600ab26849f2cd213059c97c7035be6dcca0943245cd4e4895da314b3 SHA512 87265d835ca7332d162bd3573dffdd09c8337c464dd673f100db9193e8ea4cedd8cb2a92cf2c34ad1b552a55bbbce8f87a47559ccfba03fa69b32fc7ff07f5f0

15
dev-libs/olm/metadata.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>Ronny (tastytea) Gutbrod</name>
</maintainer>
<longdescription lang="en">
An implementation of the Double Ratchet cryptographic ratchet written in
C and C++11 and exposed as a C API.
</longdescription>
<upstream>
<bugs-to>https://gitlab.matrix.org/matrix-org/olm/-/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@ -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
}