summaryrefslogtreecommitdiff
path: root/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-10-06 15:44:41 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-10-06 16:27:35 +0200
commit26f0907c36d6b76906de9f901b09b9ce9d549a2c (patch)
tree2ba5d2faa602c200ee47fe68a6b1f2fef7ecbb12 /dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
parent394488900c4ed9401ec891087136b8b0e42a3180 (diff)
downloadgentoo-26f0907c36d6b76906de9f901b09b9ce9d549a2c.tar.gz
gentoo-26f0907c36d6b76906de9f901b09b9ce9d549a2c.tar.bz2
gentoo-26f0907c36d6b76906de9f901b09b9ce9d549a2c.zip
dev-python/OutputCheck: new package; add version 0.4.2
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/OutputCheck/OutputCheck-0.4.2.ebuild')
-rw-r--r--dev-python/OutputCheck/OutputCheck-0.4.2.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
new file mode 100644
index 000000000000..d1ec3ff584ba
--- /dev/null
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for checking the output of console programs inspired by LLVM's FileCheck"
+HOMEPAGE="https://github.com/stp/OutputCheck/"
+SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( dev-python/lit[${PYTHON_USEDEP}] )"
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # Remove bad tests.
+ rm "${S}"/tests/invalid-regex-syntax.smt2 ||
+ die "failed to remove bad tests"
+
+ # Create RELEASE-VERSION file.
+ echo ${PV} > "${S}"/RELEASE-VERSION ||
+ die "failed to write RELEASE-VERSION"
+}
+
+python_test() {
+ lit "${S}"/tests || die "running test with ${EPYTHON} failed"
+}