1 |
commit: 069cb1d9d8574ea6640db956f81921954e0a18ed |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 8 00:05:54 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 8 00:17:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069cb1d9 |
7 |
|
8 |
sys-apps/pv: add 1.6.19 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/pv/Manifest | 1 + |
13 |
sys-apps/pv/files/pv-1.6.19-stddef-include.patch | 17 +++++++ |
14 |
sys-apps/pv/pv-1.6.19.ebuild | 64 ++++++++++++++++++++++++ |
15 |
3 files changed, 82 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/pv/Manifest b/sys-apps/pv/Manifest |
18 |
index 097373f51d7..bf6b7ba788a 100644 |
19 |
--- a/sys-apps/pv/Manifest |
20 |
+++ b/sys-apps/pv/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST pv-1.6.19.tar.bz2 115130 BLAKE2B 5f8e41bb964ad8fc35c4f046b19e49a416eec4b3641d9ff77a3b9f1d04484b950629bd528c02f38eb7fd9fc1af404805a73c535fa62de4634801fb57c2e0bef8 SHA512 2ae857a8778baf853d4ad704f35afe14b37d615850f5ad52bce53ed7046dffdde720dab9b35f016739d377a062d7178cccdd0a3ccf53cf89918e3623060c9cc8 |
23 |
DIST pv-1.6.6.tar.bz2 109220 BLAKE2B 1cfb60e49f6301f0d990467a58013522bbc1e28e2936a1a2141918af05149b59b6cc494f290d99ee7072247b8f0e230b799cd5dae6f8aa59d116691319e952cb SHA512 cc841b4bd00e4e8fcaed97da094ebac4a11af1c3f843ce5f73d0c3ab20aca29498c6b1a224c653d40127304d8269d96f413df66b980809e9278ff9544c834a26 |
24 |
|
25 |
diff --git a/sys-apps/pv/files/pv-1.6.19-stddef-include.patch b/sys-apps/pv/files/pv-1.6.19-stddef-include.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..b28a1c8d063 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/pv/files/pv-1.6.19-stddef-include.patch |
30 |
@@ -0,0 +1,17 @@ |
31 |
+https://github.com/a-j-wood/pv/pull/1 |
32 |
+ |
33 |
+From: Sam James <sam@g.o> |
34 |
+Date: Wed, 8 Sep 2021 01:03:29 +0100 |
35 |
+Subject: [PATCH] src/pv/number.c: add missing <stddef.h> include for NULL |
36 |
+ |
37 |
+--- a/src/pv/number.c |
38 |
++++ b/src/pv/number.c |
39 |
+@@ -2,6 +2,8 @@ |
40 |
+ * Functions for converting strings to numbers. |
41 |
+ */ |
42 |
+ |
43 |
++#include <stddef.h> |
44 |
++ |
45 |
+ #ifdef HAVE_CONFIG_H |
46 |
+ #include "config.h" |
47 |
+ #endif |
48 |
|
49 |
diff --git a/sys-apps/pv/pv-1.6.19.ebuild b/sys-apps/pv/pv-1.6.19.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..7acc907bef9 |
52 |
--- /dev/null |
53 |
+++ b/sys-apps/pv/pv-1.6.19.ebuild |
54 |
@@ -0,0 +1,64 @@ |
55 |
+# Copyright 1999-2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+inherit linux-info toolchain-funcs plocale |
61 |
+ |
62 |
+DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe" |
63 |
+HOMEPAGE="https://www.ivarch.com/programs/pv.shtml" |
64 |
+SRC_URI="https://www.ivarch.com/programs/sources/${P}.tar.bz2" |
65 |
+ |
66 |
+LICENSE="Artistic-2" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc64-solaris ~x86-solaris" |
69 |
+IUSE="debug nls" |
70 |
+ |
71 |
+PLOCALES="de en fr pt_BR zh_CN" |
72 |
+PLOCALE_BACKUP="en" |
73 |
+ |
74 |
+DOCS=( README doc/NEWS doc/TODO ) |
75 |
+ |
76 |
+# Doesn't build a library. |
77 |
+QA_CONFIGURE_OPTIONS="--disable-static" |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}"/${P}-stddef-include.patch |
81 |
+) |
82 |
+ |
83 |
+pkg_setup() { |
84 |
+ if use kernel_linux; then |
85 |
+ CONFIG_CHECK="~SYSVIPC" |
86 |
+ ERROR_SYSVIPC="You will need to enable CONFIG_SYSVIPC in your kernel to use the --remote option." |
87 |
+ linux-info_pkg_setup |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ default |
93 |
+ |
94 |
+ sed -i configure -e 's|CFLAGS="-g -Wall"|:|g' || die |
95 |
+ |
96 |
+ # These should produce the same end result (working `pv`). |
97 |
+ sed -i \ |
98 |
+ -e 's:$(LD) $(LDFLAGS) -o:$(AR) rc:' \ |
99 |
+ autoconf/make/modules.mk~ || die |
100 |
+ |
101 |
+ sed -i -e 's:usleep 200000 || ::g' tests/019-remote-cksum || die |
102 |
+ |
103 |
+ disable_locale() { |
104 |
+ local locale=${1} |
105 |
+ einfo "Disabling locale ${locale}" |
106 |
+ sed -i configure -e "/ALL_LINGUAS=/s:${lingua}::g" || die |
107 |
+ } |
108 |
+ |
109 |
+ plocale_for_each_disabled_locale disable_locale |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ tc-export AR |
114 |
+ |
115 |
+ econf \ |
116 |
+ $(use_enable debug debugging) \ |
117 |
+ $(use_enable nls) |
118 |
+} |