From 26062b5638b6d2a6eedba7797ed6dde6f3d1f01c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 23 Aug 2022 20:45:29 +0100 Subject: gentoo auto-resync : 23:08:2022 - 20:45:29 --- dev-util/librnp/Manifest | 2 +- dev-util/librnp/librnp-0.16.0.ebuild | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'dev-util/librnp') diff --git a/dev-util/librnp/Manifest b/dev-util/librnp/Manifest index 60481570d48c..9d41f457728f 100644 --- a/dev-util/librnp/Manifest +++ b/dev-util/librnp/Manifest @@ -1,3 +1,3 @@ DIST librnp-0.16.0.tar.gz 2755417 BLAKE2B bdd06b1bd20ae816b54be19fa844767e9978eb387487db85db2dcd699da1d1b426455565a6c0508bf3782e07317d3bf6ae3613ebe6f8721f80849cb985e7850f SHA512 3d1ba077f85b08ca308d0ebc6499b3a2f32db38f0fd3abbfa7c38277d4552d2bcb7b2e7d07b7fa3222130af347b73d853136974ec289d6de3e97c1e18e407b36 -EBUILD librnp-0.16.0.ebuild 896 BLAKE2B e78d4c67996cd88c881f9c74bc5edf3b01d6e7d9e657e8823cad9df083fe34a9ff0d99a21349ee3beca70444f68ea516c473214714e9845fc0500cb9a0f4a9c2 SHA512 d222176a990b06e4bb4cecb307de5de2aed0b8003b87a63d5a1c1ae0663eb40d25f025f862f50ec1d6b16251e66b60f37b2ac43884b948503fd53140d62ef249 +EBUILD librnp-0.16.0.ebuild 1002 BLAKE2B 66c33be1432a713a3d987e224c706852c76e09ab4b57db0243c1b859cb2bc0c964209232c9ec0d3d0b0be8bd4aa03b1ae940a6c1c80ab9710d2896731c72812d SHA512 2fe01f4f8ded3f09a27d32fa438fdc565cf12e91f3656823e6f836502e740529832b56928891c1b60ca0e24b0fc96225f4856e8f519a56f91386504d88147639 MISC metadata.xml 339 BLAKE2B 435d74e705e406e63a6349676c46f3a9ce2fb6b3952bd36d31372cadf163ab1f61ba7bfb4de16e4586695783cf9bd3cbd29b67bfe236c6e1fb52e1e2edab14cc SHA512 5431a0d99435dd7001c179159cb728e2b0af71c0c3df23856e1cbc794af2b0808b046de6ead30a8679cace52f67667f5ab634f9ffb04efedf4f24a247eb4f211 diff --git a/dev-util/librnp/librnp-0.16.0.ebuild b/dev-util/librnp/librnp-0.16.0.ebuild index 3c528fc1c13e..4f3c972de1fe 100644 --- a/dev-util/librnp/librnp-0.16.0.ebuild +++ b/dev-util/librnp/librnp-0.16.0.ebuild @@ -12,20 +12,22 @@ SRC_URI="https://github.com/rnpgp/rnp/archive/refs/tags/v${PV}.tar.gz -> ${P}.ta LICENSE="Apache-2.0 BSD BSD-2" SLOT="0" KEYWORDS="~amd64" -IUSE="man" +IUSE="man test" -DEPEND="app-arch/bzip2 +RDEPEND="app-arch/bzip2 dev-libs/botan:2= dev-libs/json-c:= sys-libs/zlib" -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" BDEPEND="man? ( dev-ruby/asciidoctor )" +RESTRICT="!test? ( test )" S="${WORKDIR}/${P/*lib/}" src_configure() { local mycmakeargs=( - -DBUILD_TESTING=off + -DBUILD_TESTING=$(usex test on off) -DCRYPTO_BACKEND=botan @@ -33,15 +35,15 @@ src_configure() { -DDOWNLOAD_RUBYRNP=off -DENABLE_COVERAGE=off + -DENABLE_DOC=$(usex man on off) -DENABLE_FUZZERS=off -DENABLE_SANITIZERS=off ) - if use man; then - mycmakeargs+=( -DENABLE_DOC=on ) - else - mycmakeargs+=( -DENABLE_DOC=off ) - fi - cmake_src_configure } + +src_test() { + cd "${BUILD_DIR}" || die + ctest -j"${MAKEOPTS}" -R .* --output-on-failure || die +} -- cgit v1.2.3