summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2016-01-20 14:34:35 +0000
committerleot <leot@pkgsrc.org>2016-01-20 14:34:35 +0000
commit4c6ca133e53f76fbbbe41e17618bd7d8f50ea602 (patch)
tree8d86348b92b787682fc7f876e8e65ed1a74bb943 /misc
parent0c04cf164d16a870e1d4faeb96021b2af2eeb90e (diff)
downloadpkgsrc-4c6ca133e53f76fbbbe41e17618bd7d8f50ea602.tar.gz
Update misc/dvtm to 0.15.
pkgsrc changes: * Delete NO_CONFIGURE and convert SUBST_STAGE.* to pre-configure as suggested in The pkgsrc guide. (no functional changes intended) Changes: * More complicated default key bindings for potentially destructive actions to minimize the chance of accidental presses: MOD-x-x closes the focused window MOD-q-q quits dvtm * Simplified client creation code, elimination of useless intermediate shell. This should fix Mod-C (the creation of a new window with the same working directory as the currently focused window) for systems where procfs is available. * Copymode coloring: if enabled in config.def.h (which is currently only the case for less) the piped scrollback buffer will contain escape codes to preserve the coloring. $ DVTM_EDITOR=less dvtm Generate some colored output and press MOD-e (i.e. CTRL-g-e by default) less should now display the same content (that is with color) and provide search functionality etc. * Urgent flag indications (after a client received a bell) are redrawn as soon as possible. * Small bug fixes for terminal emulation and mouse actions. Slight cleanup of config.def.h and the dvtm-status script.
Diffstat (limited to 'misc')
-rw-r--r--misc/dvtm/Makefile7
-rw-r--r--misc/dvtm/distinfo11
-rw-r--r--misc/dvtm/patches/patch-vt.c21
3 files changed, 30 insertions, 9 deletions
diff --git a/misc/dvtm/Makefile b/misc/dvtm/Makefile
index d403235d88a..f333468ad28 100644
--- a/misc/dvtm/Makefile
+++ b/misc/dvtm/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2015/08/23 08:54:12 leot Exp $
+# $NetBSD: Makefile,v 1.14 2016/01/20 14:34:35 leot Exp $
-DISTNAME= dvtm-0.14
+DISTNAME= dvtm-0.15
CATEGORIES= misc
MASTER_SITES= http://www.brain-dump.org/projects/dvtm/
@@ -10,10 +10,9 @@ COMMENT= Dynamic virtual terminal manager
LICENSE= mit
USE_LANGUAGES= c99
-NO_CONFIGURE= yes
SUBST_CLASSES+= config
-SUBST_STAGE.config= pre-build
+SUBST_STAGE.config= pre-configure
SUBST_MESSAGE.config= Fixing config.mk
SUBST_FILES.config= config.mk
SUBST_SED.config= -e 's,/usr/local,${PREFIX},'
diff --git a/misc/dvtm/distinfo b/misc/dvtm/distinfo
index c08787133dc..8070e9f3d29 100644
--- a/misc/dvtm/distinfo
+++ b/misc/dvtm/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2015/11/03 23:49:34 agc Exp $
+$NetBSD: distinfo,v 1.13 2016/01/20 14:34:35 leot Exp $
-SHA1 (dvtm-0.14.tar.gz) = 205a2165e70455309f7ed6a6f11b3072fb9b13c3
-RMD160 (dvtm-0.14.tar.gz) = d9e04111e0b1a476c3a280ca58f9d7766309ae82
-SHA512 (dvtm-0.14.tar.gz) = d47f55b4ce47582f665ac5b5d86bb9137722f65b157bdd80aaaf45a2cd8d783a3b0718886c7a7ea1d900762359316c2d76816460dac03484e122d43c64f57dd6
-Size (dvtm-0.14.tar.gz) = 35893 bytes
+SHA1 (dvtm-0.15.tar.gz) = 9bcec7af79b2adfead88c5513fa19b53dad6e134
+RMD160 (dvtm-0.15.tar.gz) = f4222388098891433711020b2739e5756b7c2122
+SHA512 (dvtm-0.15.tar.gz) = 48a0c8fd6a50fe5d43414d0223c9f4b9920a31d42fe3bfc428ce1ae7d0e41a41ebe2597eae0824c7c76bfb0e32a13e440c8d5fcdb1886d55d6791fa3fe3fd77b
+Size (dvtm-0.15.tar.gz) = 40511 bytes
SHA1 (patch-aa) = 468fdc831372b9c78c9c7f5606f7c6246bb2943f
+SHA1 (patch-vt.c) = 5f32e7fee242a701fc5412dc5b031a8c2332dfc8
diff --git a/misc/dvtm/patches/patch-vt.c b/misc/dvtm/patches/patch-vt.c
new file mode 100644
index 00000000000..81cfdb0edbc
--- /dev/null
+++ b/misc/dvtm/patches/patch-vt.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-vt.c,v 1.1 2016/01/20 14:34:35 leot Exp $
+
+Avoid a possible bug when colors are encountered (also imported upstream).
+
+--- vt.c.orig 2016-01-09 11:40:56.000000000 +0000
++++ vt.c
+@@ -1827,6 +1827,14 @@ static void init_colors(void)
+ color_pairs_max = MIN(COLOR_PAIRS, MAX_COLOR_PAIRS);
+ if (COLORS)
+ color2palette = calloc((COLORS + 2) * (COLORS + 2), sizeof(short));
++ /*
++ * XXX: On undefined color-pairs NetBSD curses pair_content() set fg
++ * and bg to default colors while ncurses set them respectively to
++ * 0 and 0. Initialize all color-pairs in order to have consistent
++ * behaviour despite the implementation used.
++ */
++ for (short i = 1; i < COLOR_PAIRS; i++)
++ init_pair(i, 0, 0);
+ vt_color_reserve(COLOR_WHITE, COLOR_BLACK);
+ }
+