Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pv/
Date: Sun, 30 Jul 2017 09:08:08
Message-Id: 1501405672.a5e4ed2858912fff28fce843be50cd87543a00e1.jer@gentoo
1 commit: a5e4ed2858912fff28fce843be50cd87543a00e1
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 30 09:07:52 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 09:07:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e4ed28
7
8 sys-apps/pv: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 sys-apps/pv/Manifest | 1 +
13 sys-apps/pv/pv-1.6.6.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/sys-apps/pv/Manifest b/sys-apps/pv/Manifest
17 index 870c01da6bf..ad16300cf0d 100644
18 --- a/sys-apps/pv/Manifest
19 +++ b/sys-apps/pv/Manifest
20 @@ -1 +1,2 @@
21 DIST pv-1.6.0.tar.bz2 107723 SHA256 0ece824e0da27b384d11d1de371f20cafac465e038041adab57fcf4b5036ef8d SHA512 bd405901812ca50b910adbcf1d2c540dc0b8612f03687866734a79cfa5b5b8100024c18a1d1413c6613e1f2085989cbb77907da89bec7eda37cdeaa7597129d5 WHIRLPOOL 51312339fa1815a61f58fa0f49b0538289d0308b17c5d03c4c6a7e371052e9911d09cb7a9c1eb032b797a3f56eaa7e5dbfecaf6fb2c1faf3fd1b34c298782c1f
22 +DIST pv-1.6.6.tar.bz2 109220 SHA256 608ef935f7a377e1439c181c4fc188d247da10d51a19ef79bcdee5043b0973f1 SHA512 cc841b4bd00e4e8fcaed97da094ebac4a11af1c3f843ce5f73d0c3ab20aca29498c6b1a224c653d40127304d8269d96f413df66b980809e9278ff9544c834a26 WHIRLPOOL 0afb22c8fb84ed632ddf0657d0d8e2e054a08c16b14cf314b62b76a1afe79911b2c7133dc5ae7567c398305c9dd64d9dd8b2c9f97f4027faeac6d2ec32dfaabb
23
24 diff --git a/sys-apps/pv/pv-1.6.6.ebuild b/sys-apps/pv/pv-1.6.6.ebuild
25 new file mode 100644
26 index 00000000000..b3b8222481a
27 --- /dev/null
28 +++ b/sys-apps/pv/pv-1.6.6.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit linux-info toolchain-funcs
35 +
36 +DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe"
37 +HOMEPAGE="http://www.ivarch.com/programs/pv.shtml"
38 +SRC_URI="http://www.ivarch.com/programs/sources/${P}.tar.bz2"
39 +
40 +LICENSE="Artistic-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x86-solaris"
43 +IUSE="debug nls"
44 +
45 +PV_LINGUAS=( de fr pl pt )
46 +IUSE+=" ${PV_LINGUAS[@]/#/linguas_}"
47 +
48 +DOCS=( README doc/NEWS doc/TODO )
49 +
50 +pkg_setup() {
51 + if use kernel_linux; then
52 + CONFIG_CHECK="~SYSVIPC"
53 + ERROR_SYSVIPC="You will need to enable CONFIG_SYSVIPC in your kernel to use the --remote option."
54 + linux-info_pkg_setup
55 + fi
56 +}
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed -i configure -e 's|CFLAGS="-g -Wall"|:|g' || die
62 +
63 + # These should produce the same end result (working `pv`).
64 + sed -i \
65 + -e 's:$(LD) $(LDFLAGS) -o:$(AR) rc:' \
66 + autoconf/make/modules.mk~ || die
67 +}
68 +
69 +src_configure() {
70 + tc-export AR
71 + local lingua
72 + for lingua in ${PV_LINGUAS[@]}; do
73 + if ! use linguas_${lingua}; then
74 + sed -i configure -e "/ALL_LINGUAS=/s:${lingua}::g" || die
75 + fi
76 + done
77 + econf $(use_enable debug debugging) $(use_enable nls)
78 +}
79 +
80 +src_test() {
81 + sed -i -e 's:usleep 200000 || ::g' tests/019-remote-cksum || die
82 + default
83 +}