sys-apps/pv: Sync with Gentoo

It's from Gentoo commit a35998f5ff7af21e6a7f95f3ca28e971e153d3f0.
This commit is contained in:
Flatcar Buildbot 2025-02-17 07:10:43 +00:00 committed by Krzesimir Nowak
parent 37fe027f63
commit b655aed988
2 changed files with 61 additions and 0 deletions

View File

@ -6,3 +6,5 @@ DIST pv-1.9.25.tar.gz 415059 BLAKE2B 6c364a63de5ea70651da21d9c6703703cfaa6c528d8
DIST pv-1.9.25.tar.gz.asc 691 BLAKE2B 9b7b134badf9b7d92cbc1eb18808b723dc370c801200ae223eea33837af05e8c358aa5a19af72b75d5c975dbb5418772a528e8cc29fa2ca5e4a7756b76e69787 SHA512 72370c191c87268384e11cf4b206435048fa8010723cc7b19b8d4e7115b43d84eaf5368cd254da73fbadf73faba5852c6283897553b80a4bd47b3be56baa7623
DIST pv-1.9.27.tar.gz 415403 BLAKE2B 12be077145725912cbd21a160adf7302859d443bc57c7c03b517c251814ace66852b5bd5d701a5570bf18f10db1cd606b549b26a0595d8599b46cae5eaa53725 SHA512 04b66d4ce96f6570d8cb3441bb2e421f9a7767e75d716fac033d51947834a56dd226fc02820ea3b7ac4c8276fa69fed0335d9c103af29e64b38e59bf49f1fab7
DIST pv-1.9.27.tar.gz.asc 691 BLAKE2B 7ac1d445892aca207e1ef5163f806cad484d95a649b4ee21fcaa7f97c220e290383a7a30aadc5d5b5d86e86a951f47d99993baf4bc7b39b11de2e11887f74a03 SHA512 76df89e07d28947b84097274457eece164f384a6047c481c4e41fcef91417e4496967186ec1674d433601cfdf209e43e3ecd86a16ac7f9a45610d05642d09b65
DIST pv-1.9.31.tar.gz 417551 BLAKE2B 6018abe674834f45312faa5ce07b49e11258e29fffc11d88ce73f50ae58c47e94defa3d5d819099a6909610e7423d9e42a8ce939fa39fe476cdbf35e89aa0112 SHA512 63cdc6223cde4f3f0daf47b5808a3f72a9cfaf2c05751e971a99d9dd3df2f36430958213c023931f428c87341a5f6c1f3772f30ca992123ea4c2a2e48000ff1d
DIST pv-1.9.31.tar.gz.asc 691 BLAKE2B 7b5b998341db887b14c56fc080d87cb4abb186b4df2c8def638822889a734436fe0c4c132396415bbc0dcb0754f76d0456bb667533ef7ed92ed0c09a62522e8b SHA512 549a3bb3f4f404b3a6e407663ba335e3d4e14303185654771c974335ed5e7ac46dbba71bbf4f26e640217829e58a0da8d6fa139b02f426b60ab074ec97084374

View File

@ -0,0 +1,59 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/pv.asc
inherit linux-info toolchain-funcs verify-sig
DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe"
HOMEPAGE="https://www.ivarch.com/programs/pv.shtml https://codeberg.org/a-j-wood/pv"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://codeberg.org/a-j-wood/pv"
inherit autotools git-r3
else
SRC_URI="
https://www.ivarch.com/programs/sources/${P}.tar.gz
verify-sig? ( https://www.ivarch.com/programs/sources/${P}.tar.gz.txt -> ${P}.tar.gz.asc )
"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
fi
LICENSE="GPL-3+"
SLOT="0"
IUSE="debug ncurses nls"
RDEPEND="ncurses? ( sys-libs/ncurses:= )"
DEPEND="${RDEPEND}"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-pv )"
pkg_setup() {
if use kernel_linux; then
CONFIG_CHECK="~SYSVIPC"
ERROR_SYSVIPC="You will need to enable CONFIG_SYSVIPC in your kernel to use the --remote option."
linux-info_pkg_setup
fi
}
src_prepare() {
default
[[ ${PV} == 9999 ]] && eautoreconf
}
src_configure() {
tc-export AR
econf \
$(use_enable debug debugging) \
$(use_with ncurses) \
$(use_enable nls)
}
src_test() {
# Valgrind is unreliable within sandbox
local -x SKIP_VALGRIND_TESTS=1
emake -Onone check
}