summaryrefslogtreecommitdiff
path: root/dev-python/outputcheck
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/outputcheck
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/outputcheck')
-rw-r--r--dev-python/outputcheck/Manifest1
-rw-r--r--dev-python/outputcheck/files/outputcheck-0.4.2-Driver.patch11
-rw-r--r--dev-python/outputcheck/metadata.xml22
-rw-r--r--dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild51
4 files changed, 85 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/stp/OutputCheck/issues/</bugs-to>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
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"
+}