Install this version:
emerge -a =dev-util/nihtest-1.11.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/nihtest-1.11.1
Or alternatively:
emerge --autounmask-write -a =dev-util/nihtest-1.11.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.11.1 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 1999-2026 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_{11..14} )
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
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
}
Manage flags for this package:
euse -i <flag> -p dev-util/nihtest |
euse -E <flag> -p dev-util/nihtest |
euse -D <flag> -p dev-util/nihtest