pkgsrc-WIP-changes archive

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

vis-editor: Update wip/vis-editor to 0.5



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Nov 24 12:59:18 2018 +0100
Changeset:	6b4527a2452b6b20db92132071122873973d82f1

Modified Files:
	vis-editor/DESCR
	vis-editor/Makefile
	vis-editor/PLIST
	vis-editor/distinfo
Added Files:
	vis-editor/patches/patch-configure

Log Message:
vis-editor: Update wip/vis-editor to 0.5

pkgsrc changes:
- Include mk/curses.buildlink3.mk instead ncursesw bl3 (at least on
  NetBSD-current seems to work fine)
- Remove HOMEPAGE from the DESCR (pkg_info already reports it, no
  need to have it in DESCR too)

0.5
---
- Fix for a buffer overflow when dealing with invalid/incomplete
  Unicode sequences which caused an infinite loop/crash. With default
  compilation flags this should not be exploitable, but opening a
  malicious file would lose all unsaved changes.
- Fix color support in ncurses 6.1
- New default 256 color theme: zenburn. It should hopefully work
- better with the default color palette.
- Updated Docker based builds (make docker) to use latest Alpine
  Linux packages to produce a statically linked, self-contained binary.
- Take symbolic keys into account when evaluating key prefixes (ci<
  is not a prefix of ci<Tab>).
- Improved paragraph text objects.
- Reset count after handling ,
- Lexer updates for Clojure, Scheme, ASM, Pony, PHP, Python, Erlang,
  xs and ReasonML.
- Correct handling of g/^$/ construct to match empty lines in
  commands like:
   x g/^$/ d
- <C-v><Enter> now inserts \r rather than \n, this currently also
  affects r<Enter> which might not be desirable.
- Fix command prompt malfunction triggered by special cursor position.
- Configure script can be interrupted.
- Removed ! operator, use :|
- Ignore SIGQUIT
- vis-open(1) fixes

0.4
---
- Selections as core editing primitives. Cursors have been superseded
  by singleton selections. Overlapping selections are now merged. This
  change is also reflected in the exposed Lua API (for which still no
  stability guarantee is given).
- Selections can be saved into marks on which set operations can be
  performed:
   m save selections
   M restore selections
   | set union
   & set intersection
   \ set minus
   ! set complement
   z| pairwise union
   z& pairwise intersection
   z+ pairwise combine, choose longer
   z- pairwise combine, choose shorter
   z< pairwise combine, choose leftmost
   z> pairwise combine, choose rightmost
- Marks are specified using '{mark} analogous to "{register}.
- Jump list based on marks:
   g< jump backward
   g> jump forward
   gs save currently active selections
- New register # to insert the current selection number.
- Drop special handling of \r\n line endings. \r will be displayed
  as ^M. Enter will always insert \n.
- Fix Unicode regex search with libtre backend.
- New count specifiers for sam's g and v commands to keep/drop
  selections based on their index.
- On macOS saving files larger than INT_MAX bytes should work.
- New :set show-eof to toggle the display of end of file markers ~
  as before it is enabled by default.
- Double leading slashes of paths are stripped.
- Improved :< command implementation to only use a pipe when necessary.
- New lexers for Myrddin and strace(1), updates for Elixir, Perl
  and Forth.
- Fix compilation for GNU Hurd. The vis package is now built for all
  supported Debian architectures.
- Improve job control of forked processes. SIGINT is now properly
  delivered to child processes.
- Commands given a huge count can now be interrupted using .
  This is implemented in cooperative fashion, meaning a single long
  running operation can still not be interrupted.
- More efficient line wise motions based on optimized mem{r,}chr(3)
  libc functions.
- Optionally support vim compatible n/N search direction.
- Reproducible, statically linked, self contained binary built using
  the Alpine Docker image. The idea being that it is a single file
  which can be copied to any Linux >= 2.6 system to provide a usable
  editor. It has an embedded tar archive which contains the required
  Lua support files which are extracted to a temporary directory using
  libuntar.
- Preliminary C API documentation found at: http://vis.rtfd.io
- Updated manual page.
- Various code cleanups.

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

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

diffstat:
 vis-editor/DESCR                   |  2 --
 vis-editor/Makefile                | 11 ++++++++---
 vis-editor/PLIST                   | 10 ++++++++++
 vis-editor/distinfo                |  9 +++++----
 vis-editor/patches/patch-configure | 16 ++++++++++++++++
 5 files changed, 39 insertions(+), 9 deletions(-)

diffs:
diff --git a/vis-editor/DESCR b/vis-editor/DESCR
index c690bb4b8d..c849370119 100644
--- a/vis-editor/DESCR
+++ b/vis-editor/DESCR
@@ -3,5 +3,3 @@ Vis aims to be a modern, legacy free, simple yet efficient vim-like editor.
 The intention is not to be bug for bug compatible with vim, instead a similar
 editing experience should be provided. The goal could thus be summarized as
 "80% of vim's features implemented in roughly 1% of the code".
-
-https://github.com/martanne/vis
diff --git a/vis-editor/Makefile b/vis-editor/Makefile
index 9ac7a6a253..4f531aa44a 100644
--- a/vis-editor/Makefile
+++ b/vis-editor/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=		vis-0.3
+DISTNAME=		vis-0.5
 PKGNAME=		${DISTNAME:S/vis/vis-editor/}
 CATEGORIES=		editors
 MASTER_SITES=		${MASTER_SITE_GITHUB:=martanne/}
@@ -28,6 +28,8 @@ CONFIGURE_ARGS+=	--prefix=${PREFIX}
 CONFIGURE_ARGS+=	--sharedir=${PREFIX}/share
 CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
 
+CFLAGS.NetBSD+=		-D_NETBSD_SOURCE	# XXX: needed for memrchr(3)
+
 .include "../../mk/bsd.prefs.mk"
 
 SUBST_CLASSES+=			fix-paths
@@ -41,7 +43,10 @@ SUBST_SED.fix-paths+=		-e "s,$${SHAREPREFIX}/${DISTBASE},$${SHAREPREFIX}/${PKGBA
 SUBST_CLASSES+=			binary-names
 SUBST_STAGE.binary-names=	pre-build
 SUBST_MESSAGE.binary-names=	Fixing binary names.
-SUBST_FILES.binary-names=	vis-complete vis-open man/*.1 lua/plugins/*.lua vis.c vis.h
+SUBST_FILES.binary-names+=	man/*.1
+SUBST_FILES.binary-names+=	lua/plugins/*.lua
+SUBST_FILES.binary-names+=	main.c vis-menu.c vis-registers.c vis.h 
+SUBST_FILES.binary-names+=	vis-complete vis-open
 SUBST_SED.binary-names=		-e 's,'${DISTBASE}'-\(open\),'${PKGBASE}'-\1,g'
 SUBST_SED.binary-names+=	-e 's,'${DISTBASE}'-\(clipboard\),'${PKGBASE}'-\1,g'
 SUBST_SED.binary-names+=	-e 's,'${DISTBASE}'-\(complete\),'${PKGBASE}'-\1,g'
@@ -64,7 +69,7 @@ post-install:
 
 DEPENDS+=	${LUA_PKGPREFIX}-lpeg-[0-9]*:../../devel/lua-lpeg
 .include "../../lang/lua/buildlink3.mk"
-.include "../../devel/ncursesw/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
 .include "../../wip/libtermkey/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/vis-editor/PLIST b/vis-editor/PLIST
index be6643b1fa..068d5c4262 100644
--- a/vis-editor/PLIST
+++ b/vis-editor/PLIST
@@ -11,6 +11,8 @@ man/man1/vis-editor-digraph.1
 man/man1/vis-editor-menu.1
 man/man1/vis-editor-open.1
 man/man1/vis-editor.1
+share/doc/vis-editor/LICENSE
+share/doc/vis-editor/README.md
 share/vis-editor/lexer.lua
 share/vis-editor/lexers/LICENSE
 share/vis-editor/lexers/README.md
@@ -31,6 +33,7 @@ share/vis-editor/lexers/bibtex.lua
 share/vis-editor/lexers/boo.lua
 share/vis-editor/lexers/caml.lua
 share/vis-editor/lexers/chuck.lua
+share/vis-editor/lexers/clojure.lua
 share/vis-editor/lexers/cmake.lua
 share/vis-editor/lexers/coffeescript.lua
 share/vis-editor/lexers/container.lua
@@ -83,12 +86,14 @@ share/vis-editor/lexers/lexer.lua
 share/vis-editor/lexers/lilypond.lua
 share/vis-editor/lexers/lisp.lua
 share/vis-editor/lexers/litcoffee.lua
+share/vis-editor/lexers/logtalk.lua
 share/vis-editor/lexers/lua.lua
 share/vis-editor/lexers/makefile.lua
 share/vis-editor/lexers/man.lua
 share/vis-editor/lexers/markdown.lua
 share/vis-editor/lexers/matlab.lua
 share/vis-editor/lexers/moonscript.lua
+share/vis-editor/lexers/myrddin.lua
 share/vis-editor/lexers/nemerle.lua
 share/vis-editor/lexers/networkd.lua
 share/vis-editor/lexers/nim.lua
@@ -101,6 +106,7 @@ share/vis-editor/lexers/php.lua
 share/vis-editor/lexers/pico8.lua
 share/vis-editor/lexers/pike.lua
 share/vis-editor/lexers/pkgbuild.lua
+share/vis-editor/lexers/pony.lua
 share/vis-editor/lexers/powershell.lua
 share/vis-editor/lexers/prolog.lua
 share/vis-editor/lexers/props.lua
@@ -110,6 +116,7 @@ share/vis-editor/lexers/pure.lua
 share/vis-editor/lexers/python.lua
 share/vis-editor/lexers/rails.lua
 share/vis-editor/lexers/rc.lua
+share/vis-editor/lexers/reason.lua
 share/vis-editor/lexers/rebol.lua
 share/vis-editor/lexers/rest.lua
 share/vis-editor/lexers/rexx.lua
@@ -125,6 +132,7 @@ share/vis-editor/lexers/sml.lua
 share/vis-editor/lexers/snobol4.lua
 share/vis-editor/lexers/spin.lua
 share/vis-editor/lexers/sql.lua
+share/vis-editor/lexers/strace.lua
 share/vis-editor/lexers/systemd.lua
 share/vis-editor/lexers/taskpaper.lua
 share/vis-editor/lexers/tcl.lua
@@ -140,6 +148,7 @@ share/vis-editor/lexers/verilog.lua
 share/vis-editor/lexers/vhdl.lua
 share/vis-editor/lexers/wsf.lua
 share/vis-editor/lexers/xml.lua
+share/vis-editor/lexers/xs.lua
 share/vis-editor/lexers/xtend.lua
 share/vis-editor/lexers/yaml.lua
 share/vis-editor/plugins/complete-filename.lua
@@ -153,6 +162,7 @@ share/vis-editor/themes/default-16.lua
 share/vis-editor/themes/default-256.lua
 share/vis-editor/themes/light-16.lua
 share/vis-editor/themes/solarized.lua
+share/vis-editor/themes/zenburn.lua
 share/vis-editor/vis-std.lua
 share/vis-editor/vis.lua
 share/vis-editor/visrc.lua
diff --git a/vis-editor/distinfo b/vis-editor/distinfo
index 17dbc22829..35d5e2f590 100644
--- a/vis-editor/distinfo
+++ b/vis-editor/distinfo
@@ -1,6 +1,7 @@
 $NetBSD$
 
-SHA1 (vis-0.3.tar.gz) = e0247b46a548ff5db5519779bceeea70333484d5
-RMD160 (vis-0.3.tar.gz) = f9def4246d035a57e222c282f6ad1f475b172a7b
-SHA512 (vis-0.3.tar.gz) = e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62
-Size (vis-0.3.tar.gz) = 334216 bytes
+SHA1 (vis-0.5.tar.gz) = d2fa0788d4f70d5d69560e730f7c753d13729c52
+RMD160 (vis-0.5.tar.gz) = 5ff5a1636fd884c49ed931905878181a8182bdea
+SHA512 (vis-0.5.tar.gz) = e6ee7228c13d26342a4fb7884412c018118199a809cf18985eaa48232081fad0d7110364e55937e71e139bbe2cd24c2964d801e64f078d7ba7f2a999eeef72cc
+Size (vis-0.5.tar.gz) = 390440 bytes
+SHA1 (patch-configure) = 856635866c5b97f93dc7dc74e2d71d365de4af05
diff --git a/vis-editor/patches/patch-configure b/vis-editor/patches/patch-configure
new file mode 100644
index 0000000000..35839264f6
--- /dev/null
+++ b/vis-editor/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Gracefully fallback to curses(3) (no libcurses `.pc' file is present
+and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
+
+--- configure.orig	2017-07-23 17:38:55.000000000 +0000
++++ configure
+@@ -308,7 +308,7 @@ int main(int argc, char *argv[]) {
+ }
+ EOF
+ 
+-	for libcurses in ncursesw ncurses libcurses; do
++	for libcurses in ncursesw ncurses curses; do
+ 		printf " checking for %s... " "$libcurses"
+ 
+ 		if test "$have_pkgconfig" = "yes" ; then


Home | Main Index | Thread Index | Old Index