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 90366158095 for ; Tue, 23 Aug 2022 13:43:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCC11E07E0; Tue, 23 Aug 2022 13:43:33 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85E58E07E0 for ; Tue, 23 Aug 2022 13:43:33 +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 93B453408F0 for ; Tue, 23 Aug 2022 13:43:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AC9D156D for ; Tue, 23 Aug 2022 13:43:30 +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: <1661262055.31862cd96272809389aa0a6389bfa9d7dc333309.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/librnp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/librnp/librnp-0.16.0.ebuild X-VCS-Directories: dev-util/librnp/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 31862cd96272809389aa0a6389bfa9d7dc333309 X-VCS-Branch: master Date: Tue, 23 Aug 2022 13:43:30 +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: 93c238bf-4694-4fe8-8674-3c12235b2248 X-Archives-Hash: 901cb8e1963888626fc7a2dc03ac88da commit: 31862cd96272809389aa0a6389bfa9d7dc333309 Author: Joonas Niilola gentoo org> AuthorDate: Tue Aug 23 13:40:55 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Aug 23 13:40:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31862cd9 dev-util/librnp: enable tests, use "usex" in ebuild Signed-off-by: Joonas Niilola gentoo.org> dev-util/librnp/librnp-0.16.0.ebuild | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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 +}