diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 14:55:53 +0100 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 14:56:22 +0100 |
| commit | 0da42baa6d35192b7edcc12ef961502e56faf1ca (patch) | |
| tree | 9128aa8d790b6151339eaec1204b69af25e559a8 /dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild | |
| parent | a29e0c919c20801cf1ceac212a9989bc4861ff31 (diff) | |
| download | gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.tar.gz gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.tar.bz2 gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.zip | |
dev-python/OutputCheck: fix Driver
remove deprecated open 'U' option
Closes: https://bugs.gentoo.org/891035
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild')
| -rw-r--r-- | dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild new file mode 100644 index 000000000000..fc9ebef88ec2 --- /dev/null +++ b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +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}] )" + +PATCHES=( "${FILESDIR}"/${P}-Driver.patch ) + +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 --verbose "${S}"/tests || die "running test with ${EPYTHON} failed" +} |
