commit: 903ed1d0dac173f4cc241c42746cde458427fb1c Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> AuthorDate: Mon Feb 16 01:11:51 2026 +0000 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> CommitDate: Mon Feb 16 01:11:51 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903ed1d0
app-arch/cfv: add 3.2.0 and Python 3.14 support * The manpage installs properly now, remove the related workaround. * Tests fail unless -e is used, we use `test/test.py -e --exit-early` to match upstream's CI command: https://github.com/cfv-project/cfv/blob/v3.2.0/.github/workflows/ci-python3.yml#L67. * Add the MIT license to match upstream's setup.py. * Drop removed Python 3.10 target. Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> app-arch/cfv/Manifest | 1 + app-arch/cfv/cfv-3.2.0.ebuild | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/app-arch/cfv/Manifest b/app-arch/cfv/Manifest index cdecf640cbc1..33429a7cada4 100644 --- a/app-arch/cfv/Manifest +++ b/app-arch/cfv/Manifest @@ -1,2 +1,3 @@ DIST cfv-3.0.0.gh.tar.gz 91600 BLAKE2B 5a0d53a2b75973967ef976ce55d5262f71af97a8d7c64e8ea94ed9d66fd12778e10321e82bdbc4b8037df3f1a9c9c817694a7cd5e60615fc903127df9057b04f SHA512 9a44bf20f0a4f48a93631353d0b0ab79ea15d19f1da5492296dd4bd4e6208d3f0d71e957165e31d07b5faa7fc75122f0ae5ddbd8d54b9c6b633c43695b362640 DIST cfv-3.1.0.gh.tar.gz 93155 BLAKE2B 45dd2cfa121052a96de4b8d8b9d1b25e4639c3956c8e0878981381dce89560abd3d1c56a7c1d7c3c86f97e767ea43f1d4df08a4be725d392a2a25bb2576f4ee6 SHA512 71c02cc0e5cb1dcf32aa180075744ccde27cf08765a6cf50b24bbdf68d61ba46d9e2e98cc9d414bddf1538ead1426f8eff56cfa788ad283981922c96519b10c4 +DIST cfv-3.2.0.gh.tar.gz 93931 BLAKE2B 902f2817d8d822f6b59db54120b414472b849e7fa39e8b807f342ace651165f657c3f05667105842d955eb6b63a42a7c1d518a4d5217e53a0156d65e6a72834f SHA512 30b2d310c95335a25cc174ec2a2efd102c8cc53d93a083a64d6eca26bf17214b1622fd2565514414e2edfbfe12de9efe5ca423669ce06c2f4f69ca75d95cd32c diff --git a/app-arch/cfv/cfv-3.2.0.ebuild b/app-arch/cfv/cfv-3.2.0.ebuild new file mode 100644 index 000000000000..05f96533b6c3 --- /dev/null +++ b/app-arch/cfv/cfv-3.2.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# Tests fail with pypy3_11 as of PyPy 7.3.20 / Python 3.11.13 +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Command-line File Verify - versatile file checksum creator and verifier" +HOMEPAGE="https://github.com/cfv-project/cfv/" +# Tests aren't included in PyPI tarballs +SRC_URI="https://github.com/cfv-project/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-2+ MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + app-arch/cksfv + ) +" + +python_test() { + # In order to run integration tests in addition to unit tests, we can't + # just rely on pytest here, we need to use upstream's runner. + "${EPYTHON}" "test/test.py" -e --exit-early || die "Tests failed with ${EPYTHON}" +} + +pkg_postinst() { + optfeature "the dimension column of JPEG Sheriff crc files" dev-python/pillow +}
