From 04f0b7378b99aed246badbe072846936a6f2029f Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 17 Jan 2023 08:15:19 +0000 Subject: Adding metadata --- dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild | 39 ++++++++++++++++++++++ dev-python/OutputCheck/OutputCheck-0.4.2.ebuild | 37 -------------------- .../files/OutputCheck-0.4.2-Driver.patch | 11 ++++++ 3 files changed, 50 insertions(+), 37 deletions(-) create mode 100644 dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild delete mode 100644 dev-python/OutputCheck/OutputCheck-0.4.2.ebuild create mode 100644 dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch (limited to 'dev-python/OutputCheck') 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..d81da52f8128 --- /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_{7,8,9,10,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" +} diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild deleted file mode 100644 index 48d9b091dc9b..000000000000 --- a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# 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_{7,8,9,10,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}] )" - -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" -} diff --git a/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch new file mode 100644 index 000000000000..9812bd728e0c --- /dev/null +++ b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch @@ -0,0 +1,11 @@ +--- a/OutputCheck/Driver.py ++++ b/OutputCheck/Driver.py +@@ -34,7 +34,7 @@ ExitCode = enum('SUCCESS', + + def main(args): + parser = argparse.ArgumentParser(description=__doc__) +- parser.add_argument('check_file', type=argparse.FileType('rU'), help='File containing check commands') ++ parser.add_argument('check_file', type=argparse.FileType('r'), help='File containing check commands') + parser.add_argument('--file-to-check=', type=argparse.FileType('r'), default='-', help='File to check (default %(default)s)') + parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to use from check_file') + parser.add_argument("-l","--log-level",type=str, default="INFO", choices=['debug','info','warning','error']) -- cgit v1.3