diff options
-rw-r--r-- | MOVED | 1 | ||||
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/ve/Makefile | 24 | ||||
-rw-r--r-- | chinese/ve/distinfo | 3 | ||||
-rw-r--r-- | chinese/ve/files/extrapatch-screen.c | 28 | ||||
-rw-r--r-- | chinese/ve/files/patch-Makefile | 34 | ||||
-rw-r--r-- | chinese/ve/pkg-descr | 20 | ||||
-rw-r--r-- | chinese/ve/pkg-plist | 4 |
8 files changed, 114 insertions, 1 deletions
@@ -2036,7 +2036,6 @@ biology/deft||2006-01-14|Mastersite disappeared biology/flip||2006-01-14|Mastersite disappeared chinese/MT||2006-01-14|Does not work with MT 3 chinese/chinput2||2006-01-14|Mastersite disappeared -chinese/ve||2006-01-14|Mastersite disappeared chinese/wangttf||2006-01-14|Mastersite disappeared comms/vpb2||2006-01-14|Mastersite disappeared deskutils/journal||2006-01-14|Mastersite disappeared diff --git a/chinese/Makefile b/chinese/Makefile index abae04b0e02f..eefd8fbce635 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -123,6 +123,7 @@ SUBDIR += ttfm SUBDIR += unrar SUBDIR += unzip + SUBDIR += ve SUBDIR += vflib SUBDIR += vim-scdoc SUBDIR += wenju 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 |