From 5b585c8b30476393c07b4bbee5e71202ee4a3978 Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Wed, 18 Dec 2024 14:59:24 +0100 Subject: dev-util/nihtest: add 1.9.1 Signed-off-by: Alexander Miller Closes: https://github.com/gentoo/gentoo/pull/39767 Signed-off-by: Sam James --- dev-util/nihtest/Manifest | 1 + dev-util/nihtest/nihtest-1.9.1.ebuild | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 dev-util/nihtest/nihtest-1.9.1.ebuild diff --git a/dev-util/nihtest/Manifest b/dev-util/nihtest/Manifest index 66d190898891..4854ad1a2ee5 100644 --- a/dev-util/nihtest/Manifest +++ b/dev-util/nihtest/Manifest @@ -1,3 +1,4 @@ DIST nihtest-1.5.2.tar.gz 39901 BLAKE2B c6b71b457ec7ff2d154061d31f009e44b4208901bfaf7ff16c3b70d4da7e0790238ed21c310651e89ac7a8a335c9d5131b974a945ad41bff74da5ba14ecbf581 SHA512 7f7e29e6c1320cb2f1886b6a73c43e11a672bd42471d01a47d0941970b478361b3e463d7d64b4275ed707d87fe27773b34c0f79f398494393330d7091f9f2f53 DIST nihtest-1.7.0.tar.gz 40925 BLAKE2B c21a5de44c3739b8e9dceac2391f1dc53ad276759389cfbf93e4cc0688ae7170f3cd56423f3c0be3b12ca7ea07f7168b78f3a0e3ad7c6a959019253360b57ed1 SHA512 2f84a4e3491fff64f9ae41c69cb79cd917c9c3ce7f6912d54e2110e1221b62c1a129c2e31ebac077d635f5cd788e97c4d9465eb3fb414bb054e5ceed32260ddd DIST nihtest-1.8.0.tar.gz 41036 BLAKE2B 79e78b81e7bfbc4f8cdfbb518ece417acd15e37fae4988785f9ec6c16ab5a9374d0464eb8564a6461c0283589d40777c94032f612d3b8b34f94e11222a82d500 SHA512 fdef4ce9f5990f44eda54115767fe01e2f894c0b9b398060d31a424a00d1a8df15c9f12f0d6864b3686a82875294e2c837cc481e3cda130497de6ba6d3a5f620 +DIST nihtest-1.9.1.tar.gz 43132 BLAKE2B f863ad9c8fc9c12e4ccc317cecc97d21a4586675cff35e5dfd38ef22e61f0622ddcd00517618eab9a0c32db84d094a6d64c48fa100cdd55bf88cc9bffdb94d0e SHA512 5897551fe1d5be0c3a10408aae44c2a7090f2ca7edd99b361699c85173473ef7474da3da9daa5aa9cc04a7e9215aee781971ecdbb604799d617160bf1be3b858 diff --git a/dev-util/nihtest/nihtest-1.9.1.ebuild b/dev-util/nihtest/nihtest-1.9.1.ebuild new file mode 100644 index 000000000000..1849d849b7f6 --- /dev/null +++ b/dev-util/nihtest/nihtest-1.9.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake distutils-r1 pypi + +DESCRIPTION="A testing tool for command line utilities" +HOMEPAGE=" + https://nih.at/nihtest/ + https://github.com/nih-at/nihtest + https://pypi.org/project/nihtest/ +" +SRC_URI+=" + https://nih.at/nihtest/${P}.tar.gz + https://github.com/nih-at/nihtest/releases/download/v${PV}/${P}.tar.gz +" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep 'dev-python/python-dateutil[${PYTHON_USEDEP}]') +" +BDEPEND="test? ( ${RDEPEND} )" + +DOCS=( NEWS.md README.md TODO.md ) + +src_prepare() { + distutils-r1_src_prepare + if use test; then + CMAKE_USE_DIR=${S}/tests + BUILD_DIR=${WORKDIR}/tests_build cmake_src_prepare + fi +} + +python_test() { + local BUILD_DIR=${WORKDIR}/tests_build + local mycmakeargs=( -DNIHTEST=nihtest ) + cmake_src_configure + cmake_src_compile + cmake_src_test +} + +src_install() { + distutils-r1_src_install + newman manpages/nihtest.man nihtest.1 + newman manpages/nihtest.conf.man nihtest.conf.5 + newman manpages/nihtest-case.man nihtest-case.5 +} -- cgit v1.2.3-65-gdbad