pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils Add sysutils/yank.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/857130ca501f
branches:  trunk
changeset: 443391:857130ca501f
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Dec 11 13:38:57 2020 +0000

description:
Add sysutils/yank.

The yank(1) utility reads input from stdin and display a selection interface
that allows a field to be selected and copied to the clipboard. Fields are
either recognized by a regular expression using the -g option or by splitting
the input on a delimiter sequence using the -d option.

Using the arrow keys will move the selected field. The interface supports
several Emacs and Vi like key bindings, consult the man page for further
reference. Pressing the return key will invoke the yank command and write
the selected field to its stdin. The yank command defaults to xsel(1) but
could be anything that accepts input on stdin. When invoking yank, everything
supplied after the -- option will be used as the yank command.

diffstat:

 sysutils/Makefile      |   3 ++-
 sysutils/yank/DESCR    |  11 +++++++++++
 sysutils/yank/Makefile |  16 ++++++++++++++++
 sysutils/yank/PLIST    |   3 +++
 sysutils/yank/distinfo |   6 ++++++
 5 files changed, 38 insertions(+), 1 deletions(-)

diffs (69 lines):

diff -r 6c8be22ed20e -r 857130ca501f sysutils/Makefile
--- a/sysutils/Makefile Fri Dec 11 12:11:53 2020 +0000
+++ b/sysutils/Makefile Fri Dec 11 13:38:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.921 2020/12/10 06:13:14 nia Exp $
+# $NetBSD: Makefile,v 1.922 2020/12/11 13:38:57 nia Exp $
 #
 
 COMMENT=       System utilities
@@ -846,6 +846,7 @@
 SUBDIR+=       xosview
 SUBDIR+=       xps
 SUBDIR+=       xuvmstat
+SUBDIR+=       yank
 SUBDIR+=       ytree
 SUBDIR+=       zabbix
 SUBDIR+=       zabbix-frontend
diff -r 6c8be22ed20e -r 857130ca501f sysutils/yank/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yank/DESCR       Fri Dec 11 13:38:57 2020 +0000
@@ -0,0 +1,11 @@
+The yank(1) utility reads input from stdin and display a selection interface
+that allows a field to be selected and copied to the clipboard. Fields are
+either recognized by a regular expression using the -g option or by splitting
+the input on a delimiter sequence using the -d option.
+
+Using the arrow keys will move the selected field. The interface supports
+several Emacs and Vi like key bindings, consult the man page for further
+reference. Pressing the return key will invoke the yank command and write
+the selected field to its stdin. The yank command defaults to xsel(1) but
+could be anything that accepts input on stdin. When invoking yank, everything
+supplied after the -- option will be used as the yank command.
diff -r 6c8be22ed20e -r 857130ca501f sysutils/yank/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yank/Makefile    Fri Dec 11 13:38:57 2020 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2020/12/11 13:38:57 nia Exp $
+
+DISTNAME=      yank-1.2.0
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mptre/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mptre/yank
+COMMENT=       Copy terminal output to clipboard
+LICENSE=       mit
+
+MAKE_FLAGS+=   PREFIX=${PREFIX}
+MAKE_FLAGS+=   MANPREFIX=${PREFIX}/${PKGMANDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6c8be22ed20e -r 857130ca501f sysutils/yank/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yank/PLIST       Fri Dec 11 13:38:57 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/11 13:38:57 nia Exp $
+bin/yank
+man/man1/yank.1
diff -r 6c8be22ed20e -r 857130ca501f sysutils/yank/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yank/distinfo    Fri Dec 11 13:38:57 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/12/11 13:38:57 nia Exp $
+
+SHA1 (yank-1.2.0.tar.gz) = cc76f407869dac79e2701f67292c80cd3696b59f
+RMD160 (yank-1.2.0.tar.gz) = b114c1b5899f9cca3ab1cf4118daca0cbae2e341
+SHA512 (yank-1.2.0.tar.gz) = 2a8b1e506452a337f1214ce96192dc3f55a8bcfd922151d308e60218fabd75c09407c6e41f42555ca0c885d74db4c5e0340f9f3c73375e0fb3f4c136614bbeb7
+Size (yank-1.2.0.tar.gz) = 8759 bytes



Home | Main Index | Thread Index | Old Index