pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/pick pick: Import pick-2.0.2 as misc/pick



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7becd5e5b6a
branches:  trunk
changeset: 380028:c7becd5e5b6a
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed May 09 15:26:05 2018 +0000

description:
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!

diffstat:

 misc/pick/DESCR                |   3 +++
 misc/pick/Makefile             |  18 ++++++++++++++++++
 misc/pick/PLIST                |   3 +++
 misc/pick/distinfo             |   7 +++++++
 misc/pick/patches/patch-pick.c |  25 +++++++++++++++++++++++++
 5 files changed, 56 insertions(+), 0 deletions(-)

diffs (76 lines):

diff -r a3f76e043f73 -r c7becd5e5b6a misc/pick/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/pick/DESCR   Wed May 09 15:26:05 2018 +0000
@@ -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 -r a3f76e043f73 -r c7becd5e5b6a misc/pick/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/pick/Makefile        Wed May 09 15:26:05 2018 +0000
@@ -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"
diff -r a3f76e043f73 -r c7becd5e5b6a misc/pick/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/pick/PLIST   Wed May 09 15:26:05 2018 +0000
@@ -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 -r a3f76e043f73 -r c7becd5e5b6a misc/pick/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/pick/distinfo        Wed May 09 15:26:05 2018 +0000
@@ -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
diff -r a3f76e043f73 -r c7becd5e5b6a misc/pick/patches/patch-pick.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/pick/patches/patch-pick.c    Wed May 09 15:26:05 2018 +0000
@@ -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