pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/rlwrap Update misc/rlwrap to 0.43



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0050708a2c6
branches:  trunk
changeset: 360929:b0050708a2c6
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Apr 10 20:30:15 2017 +0000

description:
Update misc/rlwrap to 0.43

pkgsrc changes:
 - depends on python3* now that filters can be written in Python
 - update MASTER_SITES and HOMEPAGE (old homepage seems no longer available)
 - take MAINTAINERship

Changes:
0.43
----
 - Added Hisanobu Okuda's rlwrapfilter.py python3 module
   and example filters. Filters can now be written in python
   as well as perl.
 - If a filter was used, rlwrap would pass all input, output,
   history items, prompts, ... through the filter, even if it
   wouldn't change them. Now, at startup, filters (even filter
   pipelines) tell rlwrap which messages they handle, after which
   rlwrap won't bother them with anything else.
 - Added bindable readline command rlwrap-direct-keypress
   that bypasses readline editing and sends its keypress directly
   to the rlwrapped command (like CTRL-G for the Erlang shell)
 - Added bindable readline command rlwrap-hotkey that passes
   the current input buffer and history to the filter (or
   filter pipeline) specified with the '-z' option. This can
   be used e.g. to insert the current selection at the cursor
   position, or to edit (re-write) the history.
   This uncovered quite a few bugs and inconsistencies:
      - My ncurses' termcap emulation misses some codes (like
        term_cursor_hpos) that its terminfo has. rlwrap now
        always searches terminfo before termcap.
      - rlwrap was confused about the role of history_offset,
        resulting in muddled and unclear (although correct) code.
      - rlwrap --history-size -0 would clobber the history file
        (as per the manual - that has been updated as well)
      - rlwrap's ad hoc way of sending lists of strings to filters
        by interspersing them with TABS or spaces is becoming
        unwieldy, it has been replaced by a standard encoding
        <length1><string1><length2><string2>.... (where the
        <lengths> are fixed length hexadecimal numbers (this is a
        contribution by Hisanobu Okuda)
 - Playing back a readline macro consisting of more than one line
   would crash with SIGSEGV
 - rlwrap with negative --histsize would fail when there is no
   history file yet.
 - An empty prompt would make $filter->{cumulative_output} miss
   its last line
 - Pre-given (-P) input would only be put in input line after
   cooking timeout (usually 40 msec)
 - One-shot (-o) rlwrap could accept more than one line when input
   in quick succession.
 - rlwrap didn't delete the tempfiles used in a multi-line
   edit
 - configure.ac now works even when cross-compiling (skipping some
   tests, but providing sensible defaults)
 - --enable-pedantic-ansi is a new configure option separate from
   --enable-debug (it used to be implied by --enable-debug)
 - --complete-filenames (-c) will now work on OS X and FreeBSD as well

diffstat:

 misc/rlwrap/Makefile |  19 +++++++++++++------
 misc/rlwrap/PLIST    |  12 +++++++++++-
 misc/rlwrap/distinfo |  10 +++++-----
 3 files changed, 29 insertions(+), 12 deletions(-)

diffs (98 lines):

diff -r c5bde3ab2273 -r b0050708a2c6 misc/rlwrap/Makefile
--- a/misc/rlwrap/Makefile      Mon Apr 10 20:26:54 2017 +0000
+++ b/misc/rlwrap/Makefile      Mon Apr 10 20:30:15 2017 +0000
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.17 2017/01/04 22:19:17 roy Exp $
+# $NetBSD: Makefile,v 1.18 2017/04/10 20:30:15 leot Exp $
 #
 
-DISTNAME=      rlwrap-0.42
-PKGREVISION=   4
+DISTNAME=      rlwrap-0.43
 CATEGORIES=    misc
-MASTER_SITES=  http://utopia.knoware.nl/~hlub/uck/rlwrap/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=hanslub42/}
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://utopia.knoware.nl/~hlub/uck/rlwrap/
+MAINTAINER=    leot%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/hanslub42/rlwrap
 COMMENT=       Provides command line editing and history for other commands
 LICENSE=       gnu-gpl-v2
 
@@ -17,6 +17,7 @@
 REPLACE_PERL+= filters/censor_passwords
 REPLACE_PERL+= filters/count_in_prompt
 REPLACE_PERL+= filters/ftp_filter
+REPLACE_PERL+= filters/handle_hotkeys
 REPLACE_PERL+= filters/history_format
 REPLACE_PERL+= filters/listing
 REPLACE_PERL+= filters/logger
@@ -29,10 +30,16 @@
 REPLACE_PERL+= filters/template
 REPLACE_PERL+= filters/unbackspace
 
+REPLACE_PYTHON+=       filters/*.py
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 TEST_TARGET=           check
 
 .include "options.mk"
+
 BUILDLINK_API_DEPENDS.readline+=readline>=4.2
 .include "../../devel/readline/buildlink3.mk"
+.include "../../lang/python/application.mk"
 .include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c5bde3ab2273 -r b0050708a2c6 misc/rlwrap/PLIST
--- a/misc/rlwrap/PLIST Mon Apr 10 20:26:54 2017 +0000
+++ b/misc/rlwrap/PLIST Mon Apr 10 20:30:15 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2012/09/30 22:10:42 dholland Exp $
+@comment $NetBSD: PLIST,v 1.4 2017/04/10 20:30:15 leot Exp $
 bin/rlwrap
 man/man1/rlwrap.1
 man/man3/RlwrapFilter.3pm
@@ -8,15 +8,25 @@
 share/rlwrap/filters/RlwrapFilter.3pm
 share/rlwrap/filters/RlwrapFilter.pm
 share/rlwrap/filters/censor_passwords
+share/rlwrap/filters/censor_passwords.py
 share/rlwrap/filters/count_in_prompt
+share/rlwrap/filters/count_in_prompt.py
 share/rlwrap/filters/ftp_filter
+share/rlwrap/filters/ftp_filter.py
+share/rlwrap/filters/handle_hotkeys
+share/rlwrap/filters/handle_hotkeys.py
 share/rlwrap/filters/history_format
 share/rlwrap/filters/listing
 share/rlwrap/filters/logger
+share/rlwrap/filters/logger.py
 share/rlwrap/filters/null
+share/rlwrap/filters/null.py
 share/rlwrap/filters/paint_prompt
+share/rlwrap/filters/paint_prompt.py
 share/rlwrap/filters/pipeline
 share/rlwrap/filters/pipeto
+share/rlwrap/filters/pipeto.py
+share/rlwrap/filters/rlwrapfilter.py
 share/rlwrap/filters/scrub_prompt
 share/rlwrap/filters/simple_macro
 share/rlwrap/filters/template
diff -r c5bde3ab2273 -r b0050708a2c6 misc/rlwrap/distinfo
--- a/misc/rlwrap/distinfo      Mon Apr 10 20:26:54 2017 +0000
+++ b/misc/rlwrap/distinfo      Mon Apr 10 20:30:15 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 23:49:48 agc Exp $
+$NetBSD: distinfo,v 1.6 2017/04/10 20:30:15 leot Exp $
 
-SHA1 (rlwrap-0.42.tar.gz) = 8d2ad1be9b6c362439825ae5456a2ba5cdd7eb07
-RMD160 (rlwrap-0.42.tar.gz) = 53cdabd0ad7edcad56ddd2c9101eb811cdde9a70
-SHA512 (rlwrap-0.42.tar.gz) = 991885e75aabf0d43581d59f7c78f7f64c3f32072de08ff5796cba75c0716548d2186cbe2d739f3e772871e3586d036f069db73b2ee8a30b2f7985088d0f68df
-Size (rlwrap-0.42.tar.gz) = 279608 bytes
+SHA1 (rlwrap-0.43.tar.gz) = 0c0a3a6012a003d4ae3a44e9f82f9090b4ac4650
+RMD160 (rlwrap-0.43.tar.gz) = 8c122eb2acb8963132be744aae0f6d416169877e
+SHA512 (rlwrap-0.43.tar.gz) = 4a1440b2eef3a1664c6381eb09c19f4030de2c0ef4f1f3509f7d6e130d3c5e9c3ceb00fc6ea6052b22bbe1f6b162f72e0b47564df34ccecc5220f195c22e86a1
+Size (rlwrap-0.43.tar.gz) = 313139 bytes



Home | Main Index | Thread Index | Old Index