From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/outputcheck/Manifest | 1 + .../files/outputcheck-0.4.2-Driver.patch | 11 +++++ dev-python/outputcheck/metadata.xml | 22 ++++++++++ dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild | 51 ++++++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 dev-python/outputcheck/Manifest create mode 100644 dev-python/outputcheck/files/outputcheck-0.4.2-Driver.patch create mode 100644 dev-python/outputcheck/metadata.xml create mode 100644 dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild (limited to 'dev-python/outputcheck') diff --git a/dev-python/outputcheck/Manifest b/dev-python/outputcheck/Manifest new file mode 100644 index 000000000000..fcdf322a8084 --- /dev/null +++ b/dev-python/outputcheck/Manifest @@ -0,0 +1 @@ +DIST OutputCheck-0.4.2.gh.tar.gz 16436 BLAKE2B 8c1678746b9fc11cf7b554da83a2e5a51c7095931894a543340e905ccff1e7240f1bb8ec12d348af9662ce7e515d70d6e8a93d1e6ab15629545aa5019a7fe648 SHA512 0abd1ca69c4ef683cc455c222979b313ed8b4906725cc534b80906cc4fb9a0acad855d4a6c39aa4777bbdc35309857082197a0cacdc191e4afb8a8a9a4bb2bed 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']) diff --git a/dev-python/outputcheck/metadata.xml b/dev-python/outputcheck/metadata.xml new file mode 100644 index 000000000000..fea3ad5c4c37 --- /dev/null +++ b/dev-python/outputcheck/metadata.xml @@ -0,0 +1,22 @@ + + + + + xgqt@gentoo.org + Maciej Barć + + + python@gentoo.org + Python + + + OutputCheck is a tool for checking the output of console programs that is + inspired by the FileCheck tool used by LLVM. It has its own small language + (Check Directives) for describing the expected output of a tool that is + considerably more convenient and more powerful than GNU grep. + + + https://github.com/stp/OutputCheck/issues/ + + baldeagleos-repo + diff --git a/dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild b/dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild new file mode 100644 index 000000000000..5a89b8a05230 --- /dev/null +++ b/dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +MY_P=OutputCheck-${PV} +DESCRIPTION="A tool for checking the output of console programs inspired by LLVM's FileCheck" +HOMEPAGE=" + https://github.com/stp/OutputCheck/ + https://pypi.org/project/OutputCheck/ +" +SRC_URI=" + https://github.com/stp/OutputCheck/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-python/lit[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + local PATCHES=( + "${FILESDIR}/${PN}-0.4.2-Driver.patch" + ) + + 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" +} -- cgit v1.3