public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/pv/, sys-apps/pv/files/
@ 2021-09-08  0:18 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-09-08  0:18 UTC (permalink / raw
  To: gentoo-commits

commit:     069cb1d9d8574ea6640db956f81921954e0a18ed
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  8 00:05:54 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep  8 00:17:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069cb1d9

sys-apps/pv: add 1.6.19

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/pv/Manifest                             |  1 +
 sys-apps/pv/files/pv-1.6.19-stddef-include.patch | 17 +++++++
 sys-apps/pv/pv-1.6.19.ebuild                     | 64 ++++++++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/sys-apps/pv/Manifest b/sys-apps/pv/Manifest
index 097373f51d7..bf6b7ba788a 100644
--- a/sys-apps/pv/Manifest
+++ b/sys-apps/pv/Manifest
@@ -1 +1,2 @@
+DIST pv-1.6.19.tar.bz2 115130 BLAKE2B 5f8e41bb964ad8fc35c4f046b19e49a416eec4b3641d9ff77a3b9f1d04484b950629bd528c02f38eb7fd9fc1af404805a73c535fa62de4634801fb57c2e0bef8 SHA512 2ae857a8778baf853d4ad704f35afe14b37d615850f5ad52bce53ed7046dffdde720dab9b35f016739d377a062d7178cccdd0a3ccf53cf89918e3623060c9cc8
 DIST pv-1.6.6.tar.bz2 109220 BLAKE2B 1cfb60e49f6301f0d990467a58013522bbc1e28e2936a1a2141918af05149b59b6cc494f290d99ee7072247b8f0e230b799cd5dae6f8aa59d116691319e952cb SHA512 cc841b4bd00e4e8fcaed97da094ebac4a11af1c3f843ce5f73d0c3ab20aca29498c6b1a224c653d40127304d8269d96f413df66b980809e9278ff9544c834a26

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
new file mode 100644
index 00000000000..b28a1c8d063
--- /dev/null
+++ b/sys-apps/pv/files/pv-1.6.19-stddef-include.patch
@@ -0,0 +1,17 @@
+https://github.com/a-j-wood/pv/pull/1
+
+From: Sam James <sam@gentoo.org>
+Date: Wed, 8 Sep 2021 01:03:29 +0100
+Subject: [PATCH] src/pv/number.c: add missing <stddef.h> include for NULL
+
+--- a/src/pv/number.c
++++ b/src/pv/number.c
+@@ -2,6 +2,8 @@
+  * Functions for converting strings to numbers.
+  */
+ 
++#include <stddef.h>
++
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif

diff --git a/sys-apps/pv/pv-1.6.19.ebuild b/sys-apps/pv/pv-1.6.19.ebuild
new file mode 100644
index 00000000000..7acc907bef9
--- /dev/null
+++ b/sys-apps/pv/pv-1.6.19.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info toolchain-funcs plocale
+
+DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe"
+HOMEPAGE="https://www.ivarch.com/programs/pv.shtml"
+SRC_URI="https://www.ivarch.com/programs/sources/${P}.tar.bz2"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc64-solaris ~x86-solaris"
+IUSE="debug nls"
+
+PLOCALES="de en fr pt_BR zh_CN"
+PLOCALE_BACKUP="en"
+
+DOCS=( README doc/NEWS doc/TODO )
+
+# Doesn't build a library.
+QA_CONFIGURE_OPTIONS="--disable-static"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-stddef-include.patch
+)
+
+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
+
+	sed -i configure -e 's|CFLAGS="-g -Wall"|:|g' || die
+
+	# These should produce the same end result (working `pv`).
+	sed -i \
+		-e 's:$(LD) $(LDFLAGS) -o:$(AR) rc:' \
+		autoconf/make/modules.mk~ || die
+
+	sed -i -e 's:usleep 200000 || ::g' tests/019-remote-cksum || die
+
+	disable_locale() {
+		local locale=${1}
+		einfo "Disabling locale ${locale}"
+		sed -i configure -e "/ALL_LINGUAS=/s:${lingua}::g" || die
+	}
+
+	plocale_for_each_disabled_locale disable_locale
+}
+
+src_configure() {
+	tc-export AR
+
+	econf \
+		$(use_enable debug debugging) \
+		$(use_enable nls)
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/pv/, sys-apps/pv/files/
@ 2021-09-12 21:29 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-09-12 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     6f5688b01310bd6ce08e2dde6fe2a9839b7ff832
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 12 21:19:26 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 12 21:29:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f5688b0

sys-apps/pv: add 1.6.20, drop 1.6.19-r1

Just contains the upstreamed build fix patch.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/pv/Manifest                                  |  2 +-
 sys-apps/pv/files/pv-1.6.19-stddef-include.patch      | 17 -----------------
 sys-apps/pv/{pv-1.6.19-r1.ebuild => pv-1.6.20.ebuild} |  4 ----
 3 files changed, 1 insertion(+), 22 deletions(-)

diff --git a/sys-apps/pv/Manifest b/sys-apps/pv/Manifest
index bf6b7ba788a..e5464135645 100644
--- a/sys-apps/pv/Manifest
+++ b/sys-apps/pv/Manifest
@@ -1,2 +1,2 @@
-DIST pv-1.6.19.tar.bz2 115130 BLAKE2B 5f8e41bb964ad8fc35c4f046b19e49a416eec4b3641d9ff77a3b9f1d04484b950629bd528c02f38eb7fd9fc1af404805a73c535fa62de4634801fb57c2e0bef8 SHA512 2ae857a8778baf853d4ad704f35afe14b37d615850f5ad52bce53ed7046dffdde720dab9b35f016739d377a062d7178cccdd0a3ccf53cf89918e3623060c9cc8
+DIST pv-1.6.20.tar.bz2 115310 BLAKE2B b50623f623231e8e8615f960bad83d10e12d5274c57d23ea843d16fce30b3e690284b2d9b01f82a16b9790e2bf26f80f560e226589a62ca677a2cf90ea007691 SHA512 e445f91b298ed285ddab54a3f8a6b5d5297e2e2eb8ad7b2ee2cbacca4adda9c6ca2bf3c77bf2a93373d3875c5b3b0b345d3945cbd91fc2647c6c25f1661a6752
 DIST pv-1.6.6.tar.bz2 109220 BLAKE2B 1cfb60e49f6301f0d990467a58013522bbc1e28e2936a1a2141918af05149b59b6cc494f290d99ee7072247b8f0e230b799cd5dae6f8aa59d116691319e952cb SHA512 cc841b4bd00e4e8fcaed97da094ebac4a11af1c3f843ce5f73d0c3ab20aca29498c6b1a224c653d40127304d8269d96f413df66b980809e9278ff9544c834a26

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
deleted file mode 100644
index b28a1c8d063..00000000000
--- a/sys-apps/pv/files/pv-1.6.19-stddef-include.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-https://github.com/a-j-wood/pv/pull/1
-
-From: Sam James <sam@gentoo.org>
-Date: Wed, 8 Sep 2021 01:03:29 +0100
-Subject: [PATCH] src/pv/number.c: add missing <stddef.h> include for NULL
-
---- a/src/pv/number.c
-+++ b/src/pv/number.c
-@@ -2,6 +2,8 @@
-  * Functions for converting strings to numbers.
-  */
- 
-+#include <stddef.h>
-+
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif

diff --git a/sys-apps/pv/pv-1.6.19-r1.ebuild b/sys-apps/pv/pv-1.6.20.ebuild
similarity index 96%
rename from sys-apps/pv/pv-1.6.19-r1.ebuild
rename to sys-apps/pv/pv-1.6.20.ebuild
index 371943e4161..86f4bf74e30 100644
--- a/sys-apps/pv/pv-1.6.19-r1.ebuild
+++ b/sys-apps/pv/pv-1.6.20.ebuild
@@ -22,10 +22,6 @@ DOCS=( README doc/NEWS doc/TODO )
 # Doesn't build a library.
 QA_CONFIGURE_OPTIONS="--disable-static"
 
-PATCHES=(
-	"${FILESDIR}"/${P}-stddef-include.patch
-)
-
 pkg_setup() {
 	if use kernel_linux; then
 		CONFIG_CHECK="~SYSVIPC"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-12 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-12 21:29 [gentoo-commits] repo/gentoo:master commit in: sys-apps/pv/, sys-apps/pv/files/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2021-09-08  0:18 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox