summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatoro Mahri <matoro@users.noreply.github.com>2023-06-17 02:10:28 -0400
committerSam James <sam@gentoo.org>2023-06-24 03:12:35 +0100
commit03fcac5d04b464a44c8aefda6654197eab404da0 (patch)
treea56b56a9ed4c114f832a5c5159ffbec7604d7024 /dev-libs/rinutils
parentdev-perl/Test-TrailingSpace: new package, add 0.60.100 (diff)
downloadgentoo-03fcac5d04b464a44c8aefda6654197eab404da0.tar.gz
gentoo-03fcac5d04b464a44c8aefda6654197eab404da0.tar.bz2
gentoo-03fcac5d04b464a44c8aefda6654197eab404da0.zip
dev-libs/rinutils: wire up tests
Bug: https://bugs.gentoo.org/908237 Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com> Closes: https://github.com/gentoo/gentoo/pull/31522 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/rinutils')
-rw-r--r--dev-libs/rinutils/rinutils-0.10.2-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/rinutils/rinutils-0.10.2-r1.ebuild b/dev-libs/rinutils/rinutils-0.10.2-r1.ebuild
new file mode 100644
index 000000000000..1ced32d57306
--- /dev/null
+++ b/dev-libs/rinutils/rinutils-0.10.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Set of C headers containing macros and static functions"
+HOMEPAGE="https://www.shlomifish.org/open-source/projects/ https://github.com/shlomif/rinutils"
+SRC_URI="https://github.com/shlomif/${PN}/releases/download/${PV}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+KEYWORDS="~alpha ~amd64"
+RESTRICT="!test? ( test )"
+
+DEPEND="${RDEPEND}
+ test? ( dev-util/cmocka )"
+BDEPEND="${RDEPEND}
+ test? (
+ dev-perl/Env-Path
+ dev-perl/Path-Tiny
+ dev-perl/Inline
+ dev-perl/Inline-C
+ dev-perl/Test-TrailingSpace
+ dev-perl/Test-Differences
+ dev-perl/IO-All
+ dev-perl/Perl-Critic
+ dev-perl/Perl-Tidy
+ dev-perl/Test-Pod
+ dev-perl/Test-Pod-Coverage
+ dev-perl/Test-Trap
+ )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DDISABLE_APPLYING_RPATH=OFF
+ -DWITH_TEST_SUITE=$(usex test ON OFF)
+ )
+
+ cmake_src_configure
+}