diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-04-14 18:45:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-04-14 18:45:23 +0000 |
| commit | 8fdc3a2b9cc2cfe01893b9cb3f923c210287b0f1 (patch) | |
| tree | 67723745baeb547a82176791d74b80470cdb8d29 /dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild | |
| parent | 63e9c2d7721dccfc29927b157ad9c1934f727820 (diff) | |
| download | baldeagleos-repo-8fdc3a2b9cc2cfe01893b9cb3f923c210287b0f1.tar.gz baldeagleos-repo-8fdc3a2b9cc2cfe01893b9cb3f923c210287b0f1.tar.xz baldeagleos-repo-8fdc3a2b9cc2cfe01893b9cb3f923c210287b0f1.zip | |
Adding metadata
Diffstat (limited to 'dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild')
| -rw-r--r-- | dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
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..2f0636874995 --- /dev/null +++ b/dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +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}/${PN}-0.4.2-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" +} |
