commit:     30070afeced3023c8f75e52b2163d2874389a19e
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 22 16:41:33 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Aug 22 16:50:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30070afe

dev-util/librnp: new package, add 0.16.0

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-util/librnp/Manifest             |  1 +
 dev-util/librnp/librnp-0.16.0.ebuild | 47 ++++++++++++++++++++++++++++++++++++
 dev-util/librnp/metadata.xml         |  8 ++++++
 3 files changed, 56 insertions(+)

diff --git a/dev-util/librnp/Manifest b/dev-util/librnp/Manifest
new file mode 100644
index 000000000000..b506ebb23de8
--- /dev/null
+++ b/dev-util/librnp/Manifest
@@ -0,0 +1 @@
+DIST librnp-0.16.0.tar.gz 2755417 BLAKE2B 
bdd06b1bd20ae816b54be19fa844767e9978eb387487db85db2dcd699da1d1b426455565a6c0508bf3782e07317d3bf6ae3613ebe6f8721f80849cb985e7850f
 SHA512 
3d1ba077f85b08ca308d0ebc6499b3a2f32db38f0fd3abbfa7c38277d4552d2bcb7b2e7d07b7fa3222130af347b73d853136974ec289d6de3e97c1e18e407b36

diff --git a/dev-util/librnp/librnp-0.16.0.ebuild 
b/dev-util/librnp/librnp-0.16.0.ebuild
new file mode 100644
index 000000000000..3c528fc1c13e
--- /dev/null
+++ b/dev-util/librnp/librnp-0.16.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="High performance C++ OpenPGP library"
+HOMEPAGE="https://www.rnpgp.org/ https://github.com/rnpgp/rnp";
+SRC_URI="https://github.com/rnpgp/rnp/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="man"
+
+DEPEND="app-arch/bzip2
+       dev-libs/botan:2=
+       dev-libs/json-c:=
+       sys-libs/zlib"
+RDEPEND="${DEPEND}"
+BDEPEND="man? ( dev-ruby/asciidoctor )"
+
+S="${WORKDIR}/${P/*lib/}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING=off
+
+               -DCRYPTO_BACKEND=botan
+
+               -DDOWNLOAD_GTEST=off
+               -DDOWNLOAD_RUBYRNP=off
+
+               -DENABLE_COVERAGE=off
+               -DENABLE_FUZZERS=off
+               -DENABLE_SANITIZERS=off
+       )
+
+       if use man; then
+               mycmakeargs+=( -DENABLE_DOC=on )
+       else
+               mycmakeargs+=( -DENABLE_DOC=off )
+       fi
+
+       cmake_src_configure
+}

diff --git a/dev-util/librnp/metadata.xml b/dev-util/librnp/metadata.xml
new file mode 100644
index 000000000000..d7a0807d3469
--- /dev/null
+++ b/dev-util/librnp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Mozilla Team</name>
+  </maintainer>
+</pkgmetadata>

Reply via email to