From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A5D01581D3 for ; Wed, 15 May 2024 06:21:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BA1CE2A18; Wed, 15 May 2024 06:21:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 248E0E2A18 for ; Wed, 15 May 2024 06:21:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 510ED34072E for ; Wed, 15 May 2024 06:21:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A34851A8B for ; Wed, 15 May 2024 06:21:47 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1715753982.27cc80e37143be618b24241d5640239fb0cc90ca.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/librnp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/librnp/Manifest dev-util/librnp/librnp-0.17.1.ebuild X-VCS-Directories: dev-util/librnp/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 27cc80e37143be618b24241d5640239fb0cc90ca X-VCS-Branch: master Date: Wed, 15 May 2024 06:21:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26ac1432-a3ed-40f1-b80a-5d86847125a1 X-Archives-Hash: bb7d3120fef02bd212f561b289653db1 commit: 27cc80e37143be618b24241d5640239fb0cc90ca Author: Joonas Niilola gentoo org> AuthorDate: Wed May 15 06:19:42 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed May 15 06:19:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27cc80e3 dev-util/librnp: add 0.17.1 Signed-off-by: Joonas Niilola gentoo.org> dev-util/librnp/Manifest | 1 + dev-util/librnp/librnp-0.17.1.ebuild | 85 ++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/dev-util/librnp/Manifest b/dev-util/librnp/Manifest index 1fbb672e9a3f..9b348c7835e8 100644 --- a/dev-util/librnp/Manifest +++ b/dev-util/librnp/Manifest @@ -1 +1,2 @@ DIST librnp-0.17.0.tar.gz 2996461 BLAKE2B 9a6ea0452f067464ef52cef395c2969ba9912c5ed32ac6f4d860a3410965dbfbb1ad5c0d4f25489011d869222a4362a90463f521efe5af4b7c412f0ed1e4570b SHA512 0aa5262aa3be163b8a8931d6b9200ced52bb640cd7b02b50009cfb8d5fe1e664d27b2c4a0a3e534cf59d6ea42fbc1c62c970a07cadc27ab6962e0f69f996f74d +DIST librnp-0.17.1.tar.gz 3515288 BLAKE2B 279cd5c669b469112066c4754a9a5a5c9fbe3ba225be4f85bc507aad9f29cfa166f90cb3dfe83ea8e29964fdfbbf926438fb36bb345da494ed7f70586fa8d7b6 SHA512 0224f79e4dd4b72ddd9c191218327da5485ed1d81321cc3a167cfeea68c00e47cec9151a4177e65e5560039345db3a52e41a093adfdf833f57e867bc559494a5 diff --git a/dev-util/librnp/librnp-0.17.1.ebuild b/dev-util/librnp/librnp-0.17.1.ebuild new file mode 100644 index 000000000000..30ef40bae3c2 --- /dev/null +++ b/dev-util/librnp/librnp-0.17.1.ebuild @@ -0,0 +1,85 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake multiprocessing + +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/0.16.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" +IUSE="+botan man test" + +RDEPEND="app-arch/bzip2 + dev-libs/json-c:= + >=dev-libs/sexpp-0.8.7 + sys-libs/zlib + botan? ( dev-libs/botan:= ) + !botan? ( >=dev-libs/openssl-1.1.1:= )" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +BDEPEND="man? ( dev-ruby/asciidoctor )" + +RESTRICT="!test? ( test )" +S="${WORKDIR}/${P/*lib/}" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test on off) + + -DCRYPTO_BACKEND=$(usex botan botan openssl) + + -DDOWNLOAD_GTEST=off + + -DENABLE_COVERAGE=off + -DENABLE_DOC=$(usex man on off) + -DENABLE_FUZZERS=off + -DENABLE_SANITIZERS=off + + -DSYSTEM_LIBSEXPP=on + ) + + if use botan; then + local mycmakeargs+=( + -DENABLE_AEAD=on + -DENABLE_BLOWFISH=on + -DENABLE_BRAINPOOL=on + -DENABLE_CAST5=on + -DENABLE_IDEA=on + -DENABLE_RIPEMD160=on + -DENABLE_SM2=on + -DENABLE_TWOFISH=on + ) + + # OpenSSL support is still not as complete as botan. + # https://github.com/rnpgp/rnp/issues/1877 SM2, + # https://github.com/openssl/openssl/issues/2046 TWOFISH (won't be implemented). + else + local mycmakeargs+=( + -DENABLE_AEAD=on + -DENABLE_BLOWFISH=on + -DENABLE_BRAINPOOL=on + -DENABLE_CAST5=on + -DENABLE_IDEA=on + -DENABLE_RIPEMD160=on + -DENABLE_SM2=off + -DENABLE_TWOFISH=off + ) + fi + + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}"/src/tests || die + ctest -j$(makeopts_jobs) -R .* --output-on-failure || die +} + +src_install() { + cmake_src_install + find "${D}" -name '*.a' -delete || die +}