summaryrefslogtreecommitdiff
path: root/editors/ve
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2002-04-19 14:05:17 +0000
committerzuntum <zuntum@pkgsrc.org>2002-04-19 14:05:17 +0000
commit2ef35b80492c07d472ed58544b9aad308096a2ba (patch)
treec8d9ffa6c739d843e574e262439553ea4c5aade5 /editors/ve
parente4fc702488b6713a014da14d72e29aed79a9c708 (diff)
downloadpkgsrc-2ef35b80492c07d472ed58544b9aad308096a2ba.tar.gz
Initial import of ve-1.0
NTHU-CS Maple BBS 2.36 BBS-like editor ve is a tiny editor. Besides normal functions, it has some great features for programmers -- goto line (ESC-G) cut & paste cross files (Ctrl-G to see ve.hlp) block shift left/right (ESC-J/K, Ctrl-G to see ve.hlp) parenthesis matching (ESC-[) seaching (Ctrl-S, ESC-n, ESC-p) (matching start of line, case sensitive/in-sensitive, forward/backward) undo line (ESC - '-', or ESC-_ ) undelete lines (ESC-u) ... emacs-like hot-key Provided by Rui-Xiang Guo <rxg@netbsd.org> in pkg/16268
Diffstat (limited to 'editors/ve')
-rw-r--r--editors/ve/DESCR14
-rw-r--r--editors/ve/Makefile21
-rw-r--r--editors/ve/PLIST4
-rw-r--r--editors/ve/distinfo7
-rw-r--r--editors/ve/patches/patch-aa27
-rw-r--r--editors/ve/patches/patch-ab12
-rw-r--r--editors/ve/patches/patch-ac22
7 files changed, 107 insertions, 0 deletions
diff --git a/editors/ve/DESCR b/editors/ve/DESCR
new file mode 100644
index 00000000000..7a92795ab61
--- /dev/null
+++ b/editors/ve/DESCR
@@ -0,0 +1,14 @@
+NTHU-CS Maple BBS 2.36 BBS-like editor
+
+ve is a tiny editor. Besides normal functions, it has some
+great features for programmers --
+goto line (ESC-G)
+cut & paste cross files (Ctrl-G to see ve.hlp)
+block shift left/right (ESC-J/K, Ctrl-G to see ve.hlp)
+parenthesis matching (ESC-[)
+seaching (Ctrl-S, ESC-n, ESC-p)
+ (matching start of line, case sensitive/in-sensitive, forward/backward)
+undo line (ESC - '-', or ESC-_ )
+undelete lines (ESC-u)
+...
+emacs-like hot-key
diff --git a/editors/ve/Makefile b/editors/ve/Makefile
new file mode 100644
index 00000000000..5e7bf5867ce
--- /dev/null
+++ b/editors/ve/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+
+DISTNAME= ve-1.0
+CATEGORIES= editors
+MASTER_SITES= ftp://freebsd.ntu.edu.tw/FreeBSD/woju/source/ \
+ ftp://freebsd.csie.nctu.edu.tw/pub/taiwan/NTU/woju/source/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= rxg@netbsd.org
+COMMENT= NTHU-CS Maple BBS 2.36 BBS-like editor
+
+post-patch:
+ ${SED} "s,/usr/local,${PREFIX},g" ${WRKSRC}/edit.c > ${WRKSRC}/edit.c.done
+ ${MV} ${WRKSRC}/edit.c.done ${WRKSRC}/edit.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ve ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/ve
+ ${INSTALL_DATA} ${WRKSRC}/ve.hlp ${PREFIX}/share/ve
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/editors/ve/PLIST b/editors/ve/PLIST
new file mode 100644
index 00000000000..730da930b74
--- /dev/null
+++ b/editors/ve/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+bin/ve
+share/ve/ve.hlp
+@dirrm share/ve
diff --git a/editors/ve/distinfo b/editors/ve/distinfo
new file mode 100644
index 00000000000..84d5c707f74
--- /dev/null
+++ b/editors/ve/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+
+SHA1 (ve-1.0.tgz) = 0faac299b697ff6dfc28d234ee47089ad4d148ff
+Size (ve-1.0.tgz) = 31527 bytes
+SHA1 (patch-aa) = 5cd86d04368f46cf247db23b99202f5a8c44f61a
+SHA1 (patch-ab) = b9fb31c6c047bad051e1e11f611f67fec75f6f86
+SHA1 (patch-ac) = 6b6c6e2d79076994a133001ba44495760d3b8930
diff --git a/editors/ve/patches/patch-aa b/editors/ve/patches/patch-aa
new file mode 100644
index 00000000000..77470a11c59
--- /dev/null
+++ b/editors/ve/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+
+--- Makefile.orig Sun Apr 7 16:11:20 2002
++++ Makefile
+@@ -1,10 +1,9 @@
+-CC = gcc
+-OBJ = edit.o term.o screen.o stuff.o io.o editor.o
++OBJ = edit.o term.o screen.o stuff.o io.o editor.o entab.o
+
+ #----------------------------------------------------------
+-# FreeBSD
++# FreeBSD / NetBSD
+ #----------------------------------------------------------
+-CFLAGS = -DVEDITOR
++CFLAGS += -DVEDITOR
+ LIBS = -ltermcap -lcompat
+
+ #----------------------------------------------------------
+@@ -31,7 +30,7 @@
+ cp 00readme.txt ve.hlp /usr/local/share/ve
+
+ ve: $(OBJ)
+- gcc $(CFLAGS) -o ve $(OBJ) $(LIBS)
++ $(CC) $(CFLAGS) -o ve $(OBJ) $(LIBS)
+
+ entab: entab.o
+ gcc -o entab entab.o
diff --git a/editors/ve/patches/patch-ab b/editors/ve/patches/patch-ab
new file mode 100644
index 00000000000..f31c4fc964e
--- /dev/null
+++ b/editors/ve/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+
+--- edit.c.orig Sun Apr 7 16:13:24 2002
++++ edit.c
+@@ -793,6 +793,7 @@
+ fclose(fp);
+ stat(FPath, &st0);
+ modified = -1;
++ convert(FPath);
+ }
+
+ return saveheader ? KEEP_EDITING : aborted;
diff --git a/editors/ve/patches/patch-ac b/editors/ve/patches/patch-ac
new file mode 100644
index 00000000000..2eba0f33c26
--- /dev/null
+++ b/editors/ve/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/04/19 14:05:17 zuntum Exp $
+
+--- entab.c.orig Sun Apr 7 16:15:48 2002
++++ entab.c
+@@ -9,7 +9,7 @@
+
+ void convert(char* filename);
+
+-
++/*
+ main(int argc, char *argv[]) {
+ int i;
+
+@@ -24,7 +24,7 @@
+ fprintf(stderr, "\nFinished\n");
+ return 0;
+ }
+-
++*/
+
+ void convert(char* filename)
+ {