summaryrefslogtreecommitdiff
path: root/chinese/ve
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-03-20 21:58:01 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-03-20 21:58:01 +0000
commit0826b6a8c30d6ade29f15ffe62b9c69dbc4ae2bf (patch)
tree00a1e204feef41a73fe9d6b6b7dc5a72777c27bf /chinese/ve
parentUmpf, fix the fix. :-( We want to support the AT90USB646 (and 647), (diff)
NTHU-CS Maple BBS 2.36 BBS-like editor
ve is a tiny editor, about 60K. It's woju's favorite UNIX editor. The most obvious weakness of ve is changing TABs into Spaces. So please don't use ve to edit TAB-important files, such as Makefile, sendmail.cf, syslog.conf... etc. PR: ports/92248 Submitted by: chinsan <chinsan.tw@gmail.com>
Notes
Notes: svn path=/head/; revision=157811
Diffstat (limited to 'chinese/ve')
-rw-r--r--chinese/ve/Makefile24
-rw-r--r--chinese/ve/distinfo3
-rw-r--r--chinese/ve/files/extrapatch-screen.c28
-rw-r--r--chinese/ve/files/patch-Makefile34
-rw-r--r--chinese/ve/pkg-descr20
-rw-r--r--chinese/ve/pkg-plist4
6 files changed, 113 insertions, 0 deletions
diff --git a/chinese/ve/Makefile b/chinese/ve/Makefile
new file mode 100644
index 000000000000..811ae4f14e19
--- /dev/null
+++ b/chinese/ve/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: ve
+# Date created: 25 Aug 1999
+# Whom: Ching-Hong Wu <woju@freebsd.ntu.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ve
+PORTVERSION= 1.0
+CATEGORIES= chinese
+MASTER_SITES= http://chinsan2.twbbs.org/distfiles/ \
+ ftp://chinsan2.twbbs.org/distfiles/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= chinsan.tw@gmail.com
+COMMENT= NTHU-CS Maple BBS 2.36 BBS-like editor
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500113
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-screen.c
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/chinese/ve/distinfo b/chinese/ve/distinfo
new file mode 100644
index 000000000000..7a44530160d1
--- /dev/null
+++ b/chinese/ve/distinfo
@@ -0,0 +1,3 @@
+MD5 (ve-1.0.tgz) = 8ac6f78f46dd95f2e8ad08e3d8052751
+SHA256 (ve-1.0.tgz) = 3e68bd062ea62722b8f0d5c558a45d9cf006a67a838b59b41b3e90487c79e32b
+SIZE (ve-1.0.tgz) = 31527
diff --git a/chinese/ve/files/extrapatch-screen.c b/chinese/ve/files/extrapatch-screen.c
new file mode 100644
index 000000000000..e42a0ee4a5a2
--- /dev/null
+++ b/chinese/ve/files/extrapatch-screen.c
@@ -0,0 +1,28 @@
+--- screen.c.orig Thu Dec 18 01:08:35 2003
++++ screen.c Thu Dec 18 01:09:44 2003
+@@ -6,7 +6,7 @@
+ /* update : 95/12/15 */
+ /*-------------------------------------------------------*/
+
+-#include <varargs.h>
++#include <stdarg.h>
+ #include "bbs.h"
+
+ extern char clearbuf[];
+@@ -601,13 +601,12 @@
+
+
+ void
+-prints(va_alist)
+-va_dcl
++prints(char *fmt, ...)
+ {
+ va_list args;
+- char buff[512], *fmt;
++ char buff[512];
+
+- va_start(args);
++ va_start(args, fmt);
+ fmt = va_arg(args, char *);
+ vsprintf(buff, fmt, args);
+ va_end(args);
diff --git a/chinese/ve/files/patch-Makefile b/chinese/ve/files/patch-Makefile
new file mode 100644
index 000000000000..48b51b3cb974
--- /dev/null
+++ b/chinese/ve/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig Wed Aug 25 14:27:23 1999
++++ Makefile Thu Dec 18 01:29:56 2003
+@@ -1,10 +1,11 @@
+-CC = gcc
++CC ?= cc
+ OBJ = edit.o term.o screen.o stuff.o io.o editor.o
+
+ #----------------------------------------------------------
+ # FreeBSD
+ #----------------------------------------------------------
+-CFLAGS = -DVEDITOR
++CFLAGS ?= -O -pipe
++CFLAGS += -DVEDITOR
+ LIBS = -ltermcap -lcompat
+
+ #----------------------------------------------------------
+@@ -26,12 +27,12 @@
+ rm -f *.o ve entab
+
+ install: all
+- mkdir -p /usr/local/share/ve
+- cp ve /usr/local/bin
+- cp 00readme.txt ve.hlp /usr/local/share/ve
++ mkdir -p $(PREFIX)/share/ve
++ $(BSD_INSTALL_PROGRAM) ve $(PREFIX)/bin
++ $(BSD_INSTALL_DATA) 00readme.txt ve.hlp $(PREFIX)/share/ve
+
+ ve: $(OBJ)
+- gcc $(CFLAGS) -o ve $(OBJ) $(LIBS)
++ $(CC) $(CFLAGS) -o ve $(OBJ) $(LIBS)
+
+ entab: entab.o
+- gcc -o entab entab.o
++ $(CC) -o entab entab.o
diff --git a/chinese/ve/pkg-descr b/chinese/ve/pkg-descr
new file mode 100644
index 000000000000..5bbe0fe28a05
--- /dev/null
+++ b/chinese/ve/pkg-descr
@@ -0,0 +1,20 @@
+NTHU-CS Maple BBS 2.36 BBS-like 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
+
+ve is a tiny editor, about 60K. It's woju's favorite UNIX editor.
+The most obvious weakness of ve is changing TABs into Spaces. So
+please don't use ve to edit TAB-important files, such as Makefile,
+sendmail.cf, syslog.conf... etc.
+
+WWW: http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/ve.html
diff --git a/chinese/ve/pkg-plist b/chinese/ve/pkg-plist
new file mode 100644
index 000000000000..62448e929d0a
--- /dev/null
+++ b/chinese/ve/pkg-plist
@@ -0,0 +1,4 @@
+bin/ve
+share/ve/00readme.txt
+share/ve/ve.hlp
+@dirrm share/ve