diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/outputcheck | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-python/outputcheck')
| -rw-r--r-- | dev-python/outputcheck/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/outputcheck/files/outputcheck-0.4.2-Driver.patch | 11 | ||||
| -rw-r--r-- | dev-python/outputcheck/metadata.xml | 24 | ||||
| -rw-r--r-- | dev-python/outputcheck/outputcheck-0.4.2-r2.ebuild | 51 |
4 files changed, 87 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..0891dc52ae07 --- /dev/null +++ b/dev-python/outputcheck/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/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> + <remote-id type="github">stp/OutputCheck</remote-id> + <remote-id type="pypi">OutputCheck</remote-id> + </upstream> +</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" +} |
