New package: ex-vi-050325

This commit is contained in:
Christian Neukirchen 2015-01-06 19:59:28 +01:00
parent f68f232527
commit 4cbd5361cd
3 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- config.h 2005-02-19 05:25:39.000000000 -0500
+++ config.h.fixed 2010-01-04 22:02:01.000000000 -0500
@@ -95,8 +95,8 @@
#define TUBESIZE 6000 /* Maximum screen size for visual */
#else /* VMUNIX */
#define TUBELINES 100
-#define TUBECOLS 160
-#define TUBESIZE 16000
+#define TUBECOLS 320
+#define TUBESIZE 32000
#endif /* VMUNIX */
/*

View file

@ -0,0 +1,53 @@
--- ex_tty.c 2005-03-04 13:42:58.000000000 +0100
+++ ex_tty.c 2009-06-25 20:06:57.000000000 +0200
@@ -132,7 +132,8 @@
&ED, &EI, &F0, &F1, &F2, &F3, &F4, &F5, &F6, &F7, &F8, &F9,
&HO, &IC, &IM, &IP, &KD, &KE, &KH, &KL, &KR, &KS, &KU, &LL, &ND, &xNL,
&xPC, &RC, &SC, &SE, &SF, &SO, &SR, &TA, &TE, &TI, &UP, &VB, &VS, &VE,
- &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM
+ &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM,
+ &kI, &kD, &kh, &at7, &kP, &kN
};
bool *sflags[] = {
&AM, &BS, &DA, &DB, &EO, &HC,
@@ -170,7 +171,12 @@
addmac1(KD, "j", "down", arrows, 1);
addmac1(KL, "h", "left", arrows, 1);
addmac1(KR, "l", "right", arrows, 1);
- addmac1(KH, "H", "home", arrows, 1);
+ addmac1(kI, "i", "insert", arrows, 1);
+ addmac1(kD, "x", "delete", arrows, 1);
+ addmac1(kh, "^", "home", arrows, 1);
+ addmac1(at7, "$", "end", arrows, 1);
+ addmac1(kP, "", "pgup", arrows, 1);
+ addmac1(kN, "", "pgdn", arrows, 1);
/*
* Handle funny termcap capabilities
@@ -341,7 +347,7 @@
*(*fp++) = flag;
namp += 2;
} while (*namp);
- namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERI";
+ namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERIkIkDkh@7kPkN";
sp = sstrs;
do {
string = tgetstr(namp, &aoftspace);
--- ex_tty.h 2004-12-01 19:21:06.000000000 +0100
+++ ex_tty.h 2009-06-25 20:06:05.000000000 +0200
@@ -183,6 +183,15 @@
var bool XX; /* Tektronix 4025 insert line */
/* X? is reserved for severely nauseous glitches */
/* If there are enough of these we may need bit masks! */
+/*
+ * Insert, Delete, Home, End, PgUp an PgDown keys
+ */
+var char *kI;
+var char *kD;
+var char *kh;
+var char *at7;
+var char *kP;
+var char *kN;
/*
* From the tty modes...

22
srcpkgs/ex-vi/template Normal file
View file

@ -0,0 +1,22 @@
# Template file for 'ex-vi'
pkgname=ex-vi
version=050325
revision=1
wrksrc="ex-${version}"
build_style=gnu-makefile
make_build_args="PREFIX=/usr TERMLIB=ncurses PRESERVEDIR=/var/tmp LARGEF=-DLARGEF"
make_install_args="INSTALL=/usr/bin/install PRESERVEDIR=/var/tmp STRIP="
makedepends="ncurses-devel"
replaces="nvi>=0"
provides="nvi-${version}_${revision}"
short_desc="The original ex/vi text editor (Heirloom version)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://ex-vi.sourceforge.net/"
distfiles="http://downloads.sourceforge.net/sourceforge/ex-vi/ex-050325.tar.bz2"
checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
disable_parallel=yes
post_install() {
vlicense LICENSE
}