summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/nihtest/Manifest1
-rw-r--r--dev-util/nihtest/nihtest-1.7.0.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/nihtest/Manifest b/dev-util/nihtest/Manifest
index 1494b30b9ebe..ccb8081ac77f 100644
--- a/dev-util/nihtest/Manifest
+++ b/dev-util/nihtest/Manifest
@@ -1,2 +1,3 @@
DIST nihtest-1.5.2.tar.gz 39901 BLAKE2B c6b71b457ec7ff2d154061d31f009e44b4208901bfaf7ff16c3b70d4da7e0790238ed21c310651e89ac7a8a335c9d5131b974a945ad41bff74da5ba14ecbf581 SHA512 7f7e29e6c1320cb2f1886b6a73c43e11a672bd42471d01a47d0941970b478361b3e463d7d64b4275ed707d87fe27773b34c0f79f398494393330d7091f9f2f53
DIST nihtest-1.6.0.tar.gz 40473 BLAKE2B 98c1247485fc49a3a4b8f96dce16e35f7ac706ce8da7fc491ed62ad2c18a1514225ffdfcecae05266958f210d839897263bf2862abf0d771870f29a911f257fe SHA512 b70a7cd5624f7930f48cc75b454993f878a1d3d42035fa6dd90e89cc6d2b1928e8489974c583a814fa009f33749d9dc4614869f0693f51de1d1c74cf77801f0f
+DIST nihtest-1.7.0.tar.gz 40925 BLAKE2B c21a5de44c3739b8e9dceac2391f1dc53ad276759389cfbf93e4cc0688ae7170f3cd56423f3c0be3b12ca7ea07f7168b78f3a0e3ad7c6a959019253360b57ed1 SHA512 2f84a4e3491fff64f9ae41c69cb79cd917c9c3ce7f6912d54e2110e1221b62c1a129c2e31ebac077d635f5cd788e97c4d9465eb3fb414bb054e5ceed32260ddd
diff --git a/dev-util/nihtest/nihtest-1.7.0.ebuild b/dev-util/nihtest/nihtest-1.7.0.ebuild
new file mode 100644
index 000000000000..00f9602d2d51
--- /dev/null
+++ b/dev-util/nihtest/nihtest-1.7.0.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..12} )
+
+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 ~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.mdoc nihtest.1
+ newman manpages/nihtest.conf.mdoc nihtest.conf.5
+ newman manpages/nihtest-case.mdoc nihtest-case.5
+}