public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/librnp/
Date: Tue, 23 Aug 2022 13:43:30 +0000 (UTC)	[thread overview]
Message-ID: <1661262055.31862cd96272809389aa0a6389bfa9d7dc333309.juippis@gentoo> (raw)

commit:     31862cd96272809389aa0a6389bfa9d7dc333309
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 13:40:55 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> 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 <juippis <AT> 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
+}


             reply	other threads:[~2022-08-23 13:43 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-23 13:43 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-26  8:27 [gentoo-commits] repo/gentoo:master commit in: dev-util/librnp/ Arthur Zamarin
2025-07-26  6:50 Joonas Niilola
2025-06-02 19:08 Joonas Niilola
2025-04-23 11:24 Sam James
2025-02-08  8:00 Joonas Niilola
2025-01-02  6:43 Joonas Niilola
2024-11-15  7:18 Joonas Niilola
2024-07-22  6:16 Joonas Niilola
2024-07-21  6:25 Joonas Niilola
2024-06-08  6:39 Joonas Niilola
2024-05-23  5:54 Joonas Niilola
2024-05-15  6:21 Joonas Niilola
2024-04-15  6:03 Joonas Niilola
2023-09-21 18:58 WANG Xuerui
2023-06-21  7:04 Joonas Niilola
2023-06-21  7:04 Joonas Niilola
2023-06-21  6:03 Joonas Niilola
2023-06-09  8:53 Joonas Niilola
2023-06-09  8:53 Joonas Niilola
2023-05-08  7:44 Joonas Niilola
2023-05-03 12:16 Sam James
2023-05-03 11:33 Arthur Zamarin
2023-05-03 11:09 Joonas Niilola
2023-04-15  6:19 Joonas Niilola
2023-04-13 13:36 Joonas Niilola
2023-04-13 13:36 Joonas Niilola
2023-04-13  5:55 Joonas Niilola
2022-09-25  6:42 Joonas Niilola
2022-09-24 13:57 Joonas Niilola
2022-09-24 13:57 Joonas Niilola
2022-09-24 13:57 Joonas Niilola
2022-09-23 12:53 Joonas Niilola
2022-09-19  6:06 Joonas Niilola
2022-09-13  9:08 Joonas Niilola
2022-09-13  7:32 Joonas Niilola
2022-08-24 16:09 Arthur Zamarin
2022-08-24  7:04 Sam James
2022-08-24  2:44 Joonas Niilola
2022-08-23  1:16 Sam James
2022-08-22 16:50 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1661262055.31862cd96272809389aa0a6389bfa9d7dc333309.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox