Skip to content

Commit

Permalink
dev-util/librnp: new package, add 0.16.0
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Aug 22, 2022
1 parent 93ab003 commit 30070af
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-util/librnp/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST librnp-0.16.0.tar.gz 2755417 BLAKE2B bdd06b1bd20ae816b54be19fa844767e9978eb387487db85db2dcd699da1d1b426455565a6c0508bf3782e07317d3bf6ae3613ebe6f8721f80849cb985e7850f SHA512 3d1ba077f85b08ca308d0ebc6499b3a2f32db38f0fd3abbfa7c38277d4552d2bcb7b2e7d07b7fa3222130af347b73d853136974ec289d6de3e97c1e18e407b36
47 changes: 47 additions & 0 deletions dev-util/librnp/librnp-0.16.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
8 changes: 8 additions & 0 deletions dev-util/librnp/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 30070af

Please sign in to comment.