pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/misc/pick
Module Name: pkgsrc
Committed By: leot
Date: Wed May 9 15:26:05 UTC 2018
Added Files:
pkgsrc/misc/pick: DESCR Makefile PLIST distinfo
pkgsrc/misc/pick/patches: patch-pick.c
Log Message:
pick: Import pick-2.0.2 as misc/pick
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.
Packaged in pkgsrc-wip by Jenz Guenther, thanks!
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/pick/DESCR pkgsrc/misc/pick/Makefile \
pkgsrc/misc/pick/PLIST pkgsrc/misc/pick/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/pick/patches/patch-pick.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/misc/pick/DESCR
diff -u /dev/null pkgsrc/misc/pick/DESCR:1.1
--- /dev/null Wed May 9 15:26:05 2018
+++ pkgsrc/misc/pick/DESCR Wed May 9 15:26:05 2018
@@ -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.
Index: pkgsrc/misc/pick/Makefile
diff -u /dev/null pkgsrc/misc/pick/Makefile:1.1
--- /dev/null Wed May 9 15:26:05 2018
+++ pkgsrc/misc/pick/Makefile Wed May 9 15:26:05 2018
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2018/05/09 15:26:05 leot Exp $
+
+DISTNAME= pick-2.0.2
+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
+
+GNU_CONFIGURE= yes
+
+CFLAGS.NetBSD+= -D_OPENBSD_SOURCE # reallocarray(3), strtonum(3)
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/pick/PLIST
diff -u /dev/null pkgsrc/misc/pick/PLIST:1.1
--- /dev/null Wed May 9 15:26:05 2018
+++ pkgsrc/misc/pick/PLIST Wed May 9 15:26:05 2018
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/09 15:26:05 leot Exp $
+bin/pick
+man/man1/pick.1
Index: pkgsrc/misc/pick/distinfo
diff -u /dev/null pkgsrc/misc/pick/distinfo:1.1
--- /dev/null Wed May 9 15:26:05 2018
+++ pkgsrc/misc/pick/distinfo Wed May 9 15:26:05 2018
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/05/09 15:26:05 leot Exp $
+
+SHA1 (pick-2.0.2.tar.gz) = 6cc08e999f044defff085efa9182678cf25ff132
+RMD160 (pick-2.0.2.tar.gz) = 0d5b69ca295511ac7e32b3a8fea24c590ed089e3
+SHA512 (pick-2.0.2.tar.gz) = 92d74fa62f6c829117c6c3faf6ec39fc5dd66465516be396d21d7b0a92ee10761a1d3f43aa4a454f8d19790ac02a4a1af145139d488344c97a511805c5d6965b
+Size (pick-2.0.2.tar.gz) = 132174 bytes
+SHA1 (patch-pick.c) = cdce675828e0187cc9567aeec93893c9dbd14087
Index: pkgsrc/misc/pick/patches/patch-pick.c
diff -u /dev/null pkgsrc/misc/pick/patches/patch-pick.c:1.1
--- /dev/null Wed May 9 15:26:05 2018
+++ pkgsrc/misc/pick/patches/patch-pick.c Wed May 9 15:26:05 2018
@@ -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