pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pick: Update to version 4.0.0, PR pkg/57599



Module Name:	pkgsrc-wip
Committed By:	Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By:	drixter
Date:		Wed Oct 7 22:35:52 2026 +0200
Changeset:	12944da24533efce39c2eac5a96df42b77306187

Added Files:
	pick/COMMIT_MSG
	pick/DESCR
	pick/Makefile
	pick/PLIST
	pick/distinfo
	pick/patches/patch-pick.c

Log Message:
pick: Update to version 4.0.0, PR pkg/57599

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=12944da24533efce39c2eac5a96df42b77306187

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pick/COMMIT_MSG           | 22 ++++++++++++++++++++++
 pick/DESCR                |  3 +++
 pick/Makefile             | 24 ++++++++++++++++++++++++
 pick/PLIST                |  3 +++
 pick/distinfo             |  6 ++++++
 pick/patches/patch-pick.c | 25 +++++++++++++++++++++++++
 6 files changed, 83 insertions(+)

diffs:
diff --git a/pick/COMMIT_MSG b/pick/COMMIT_MSG
new file mode 100644
index 0000000000..3eac95601b
--- /dev/null
+++ b/pick/COMMIT_MSG
@@ -0,0 +1,22 @@
+pick: Update to version 4.0.0
+
+Changes
+Remove -v option, your package manager of choice can already provide the
+same information
+(2905675)
+(Anton Lindqvist)
+
+Remove -h option in favor of the manual.
+(93a552b)
+(Anton Lindqvist)
+
+Do not output options as part of the usage output, in favor of the manual
+instead.
+(e253d7d)
+(Anton Lindqvist)
+
+Bug fixes
+Mark unused variables in compat files as extern in order to compile using
+GCC 10.
+(160d7be)
+(Benjamin Porter)
diff --git a/pick/DESCR b/pick/DESCR
new file mode 100644
index 0000000000..e429a3f74c
--- /dev/null
+++ b/pick/DESCR
@@ -0,0 +1,3 @@
+The pick utility allows users to select from a set of choices using an interface
+with fuzzy search functionality. The choices are read from stdin, and the
+selected choice written to stdout.
diff --git a/pick/Makefile b/pick/Makefile
new file mode 100644
index 0000000000..8b36b24623
--- /dev/null
+++ b/pick/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.3 2019/03/12 19:02:45 leot Exp $
+
+DISTNAME=	pick-4.0.0
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=mptre/}
+GITHUB_RELEASE=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	dbotw%gmx.net@localhost
+HOMEPAGE=	https://github.com/mptre/pick/
+COMMENT=	Fuzzy search tool for the command-line
+LICENSE=	mit
+
+HAS_CONFIGURE=	yes
+
+CONFIGURE_ENV+=	INSTALL=${INSTALL_PROGRAM:Q}
+CONFIGURE_ENV+=	INSTALL_MAN=${INSTALL_MAN:Q}
+CONFIGURE_ENV+=	MANDIR=${PREFIX}/${PKGMANDIR}
+
+CFLAGS.NetBSD+=	-D_OPENBSD_SOURCE	# reallocarray(3), strtonum(3)
+
+TEST_TARGET=	test
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pick/PLIST b/pick/PLIST
new file mode 100644
index 0000000000..d15626211d
--- /dev/null
+++ b/pick/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/09 15:26:05 leot Exp $
+bin/pick
+man/man1/pick.1
diff --git a/pick/distinfo b/pick/distinfo
new file mode 100644
index 0000000000..361da1d7ab
--- /dev/null
+++ b/pick/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.5 2021/10/26 10:59:21 nia Exp $
+
+BLAKE2s (pick-4.0.0.tar.gz) = 0bb5b4edc9e03e82db972d66ca8513d2222999dae35871cb13b343865cf0f0af
+SHA512 (pick-4.0.0.tar.gz) = 690f8ee174f69ec5897831b71f22bc82dbdaf71329e2b540cfb06e49963231196efe6192d1f564c1c7029c7335736d42f02483850ccbb2bd5bcd1dc52b034f56
+Size (pick-4.0.0.tar.gz) = 29786 bytes
+SHA1 (patch-pick.c) = cdce675828e0187cc9567aeec93893c9dbd14087
diff --git a/pick/patches/patch-pick.c b/pick/patches/patch-pick.c
new file mode 100644
index 0000000000..9cc8ea7784
--- /dev/null
+++ b/pick/patches/patch-pick.c
@@ -0,0 +1,25 @@
+$NetBSD: patch-pick.c,v 1.1 2018/05/09 15:26:05 leot Exp $
+
+tparm(3) expects a `const char *' as first argument, adjust tty_parm1()
+accordingly.
+
+--- pick.c.orig	2018-04-10 19:52:06.000000000 +0000
++++ pick.c
+@@ -90,7 +90,7 @@ static void			 toggle_sigwinch(int);
+ static int			 tty_getc(void);
+ static const char		*tty_getcap(char *);
+ static void			 tty_init(int);
+-static const char		*tty_parm1(char *, int);
++static const char		*tty_parm1(const char *, int);
+ static int			 tty_putc(int);
+ static void			 tty_restore(int);
+ static void			 tty_size(void);
+@@ -1063,7 +1063,7 @@ tty_getcap(char *cap)
+ }
+ 
+ const char *
+-tty_parm1(char *cap, int a)
++tty_parm1(const char *cap, int a)
+ {
+ 	return tparm(cap, a, 0, 0, 0, 0, 0, 0, 0, 0);
+ }


Home | Main Index | Thread Index | Old Index