From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C41F3158020 for ; Sat, 5 Nov 2022 04:33:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CA20E07D1; Sat, 5 Nov 2022 04:33:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86377E07D1 for ; Sat, 5 Nov 2022 04:33:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3DE3D341295 for ; Sat, 5 Nov 2022 04:33:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7FAF86D2 for ; Sat, 5 Nov 2022 04:33:11 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1667622628.640f8e674a25c16d37f95ba1b647628615847f5f.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/cfv/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/cfv/Manifest app-arch/cfv/cfv-3.0.0.ebuild app-arch/cfv/metadata.xml X-VCS-Directories: app-arch/cfv/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 640f8e674a25c16d37f95ba1b647628615847f5f X-VCS-Branch: master Date: Sat, 5 Nov 2022 04:33:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 08f52c44-163b-44a2-9ee0-cb7dd1822be6 X-Archives-Hash: 33840ebfd843204ef7f46cc5e3821083 commit: 640f8e674a25c16d37f95ba1b647628615847f5f Author: Louis Sautier gentoo org> AuthorDate: Sat Nov 5 03:26:00 2022 +0000 Commit: Louis Sautier gentoo org> CommitDate: Sat Nov 5 04:30:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=640f8e67 app-arch/cfv: resurrect package, version 3.0.0 Signed-off-by: Louis Sautier gentoo.org> app-arch/cfv/Manifest | 1 + app-arch/cfv/cfv-3.0.0.ebuild | 48 +++++++++++++++++++++++++++++++++++++++++++ app-arch/cfv/metadata.xml | 20 ++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/app-arch/cfv/Manifest b/app-arch/cfv/Manifest new file mode 100644 index 000000000000..db038dfc39a1 --- /dev/null +++ b/app-arch/cfv/Manifest @@ -0,0 +1 @@ +DIST cfv-3.0.0.gh.tar.gz 91600 BLAKE2B 5a0d53a2b75973967ef976ce55d5262f71af97a8d7c64e8ea94ed9d66fd12778e10321e82bdbc4b8037df3f1a9c9c817694a7cd5e60615fc903127df9057b04f SHA512 9a44bf20f0a4f48a93631353d0b0ab79ea15d19f1da5492296dd4bd4e6208d3f0d71e957165e31d07b5faa7fc75122f0ae5ddbd8d54b9c6b633c43695b362640 diff --git a/app-arch/cfv/cfv-3.0.0.ebuild b/app-arch/cfv/cfv-3.0.0.ebuild new file mode 100644 index 000000000000..5b940295d074 --- /dev/null +++ b/app-arch/cfv/cfv-3.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# Tests fail with pypy3 as of PyPy 7.3.9 / Python 3.9.12 +PYTHON_COMPAT=( python3_{8..11} ) + +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+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + app-arch/cksfv + ) +" + +python_prepare_all() { + # Remove upstream's attempt to install the man page + sed -i '/\sdata_files=/d' setup.py || die + distutils-r1_python_prepare_all +} + +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" || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + doman cfv.1 +} + +pkg_postinst() { + optfeature "the dimension column of JPEG Sheriff crc files" dev-python/pillow +} diff --git a/app-arch/cfv/metadata.xml b/app-arch/cfv/metadata.xml new file mode 100644 index 000000000000..373591c9c7a7 --- /dev/null +++ b/app-arch/cfv/metadata.xml @@ -0,0 +1,20 @@ + + + + + sbraz@gentoo.org + Louis Sautier + + + cfv is a utility to test and create a wide range of checksum + verification files. It currently supports testing and creating sfv, + sfvmd5, csv, csv2, csv4, md5, bsdmd5, sha1, sha224, sha256, sha384, + sha512, torrent and crc files. Test-only support is available for par, + par2. + + + cfv + cfv-project/cfv + https://github.com/cfv-project/cfv/issues + +