Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 14:29:01 +0800 (CST)
From:      chinsan <chinsan.tw@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        vanilla@FreeBSD.org
Subject:   ports/92248: [NEW PORT] chinese/ve: NTHU-CS Maple BBS 2.36 BBS-like editor
Message-ID:  <20060124062901.245285CCD8@smtp1.bc.hgc.com.tw>
Resent-Message-ID: <200601240630.k0O6U6YP006140@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92248
>Category:       ports
>Synopsis:       [NEW PORT] chinese/ve: NTHU-CS Maple BBS 2.36 BBS-like editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 24 06:30:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD smtp1.bc.hgc.com.tw 6.0-STABLE FreeBSD 6.0-STABLE #2: Thu Jan 12 14:11:33 CST 2006 root@smtp1.bc.hgc.com.tw:/usr/obj/usr/src/sys/TAKAKO i386
>Description:
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.

>How-To-Repeat:
>Fix:

--- ve.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ve
#	ve/Makefile
#	ve/distinfo
#	ve/pkg-descr
#	ve/pkg-plist
#	ve/files
#	ve/files/extrapatch-screen.c
#	ve/files/patch-Makefile
#
echo c - ve
mkdir -p ve > /dev/null 2>&1
echo x - ve/Makefile
sed 's/^X//' >ve/Makefile << 'END-of-ve/Makefile'
X# New ports collection makefile for:	ve
X# Date created:		25 Aug 1999
X# Whom:			Ching-Hong Wu <woju@freebsd.ntu.edu.tw>
X#
X# $FreeBSD: ports/chinese/ve/Makefile,v 1.10 2005/10/26 15:57:51 garga Exp $
X#
X
XPORTNAME=	ve
XPORTVERSION=	1.0
XCATEGORIES=	chinese
XMASTER_SITES=	http://chinsan2.twbbs.org/distfiles/ \
X		ftp://chinsan2.twbbs.org/distfiles/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	chinsan.tw@gmail.com
XCOMMENT=	NTHU-CS Maple BBS 2.36 BBS-like editor
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} >= 500113
XEXTRA_PATCHES=	${FILESDIR}/extrapatch-screen.c
X.endif
X
X.include <bsd.port.post.mk>
END-of-ve/Makefile
echo x - ve/distinfo
sed 's/^X//' >ve/distinfo << 'END-of-ve/distinfo'
XMD5 (ve-1.0.tgz) = 8ac6f78f46dd95f2e8ad08e3d8052751
XSHA256 (ve-1.0.tgz) = 3e68bd062ea62722b8f0d5c558a45d9cf006a67a838b59b41b3e90487c79e32b
XSIZE (ve-1.0.tgz) = 31527
END-of-ve/distinfo
echo x - ve/pkg-descr
sed 's/^X//' >ve/pkg-descr << 'END-of-ve/pkg-descr'
XNTHU-CS Maple BBS 2.36 BBS-like editor
X
XBesides normal functions, it has some great features for programmers --
Xgoto line (ESC-G)
Xcut & paste cross files (Ctrl-G to see ve.hlp)
Xblock shift left/right (ESC-J/K, Ctrl-G to see ve.hlp)
Xparenthesis matching (ESC-[)
Xseaching (Ctrl-S, ESC-n, ESC-p)
X   (matching start of line, case sensitive/in-sensitive, forward/backward)
Xundo line (ESC - '-', or ESC-_   )
Xundelete lines (ESC-u)
X...
Xemacs-like hot-key
X
Xve is a tiny editor, about 60K. It's woju's favorite UNIX editor.
XThe most obvious weakness of ve is changing TABs into Spaces. So
Xplease don't use ve to edit TAB-important files, such as Makefile,
Xsendmail.cf, syslog.conf... etc.
X
XWWW: http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/ve.html
END-of-ve/pkg-descr
echo x - ve/pkg-plist
sed 's/^X//' >ve/pkg-plist << 'END-of-ve/pkg-plist'
Xbin/ve
Xshare/ve/00readme.txt
Xshare/ve/ve.hlp
X@dirrm share/ve
END-of-ve/pkg-plist
echo c - ve/files
mkdir -p ve/files > /dev/null 2>&1
echo x - ve/files/extrapatch-screen.c
sed 's/^X//' >ve/files/extrapatch-screen.c << 'END-of-ve/files/extrapatch-screen.c'
X--- screen.c.orig	Thu Dec 18 01:08:35 2003
X+++ screen.c	Thu Dec 18 01:09:44 2003
X@@ -6,7 +6,7 @@
X /* update : 95/12/15                                     */
X /*-------------------------------------------------------*/
X 
X-#include <varargs.h>
X+#include <stdarg.h>
X #include "bbs.h"
X 
X extern char clearbuf[];
X@@ -601,13 +601,12 @@
X 
X 
X void
X-prints(va_alist)
X-va_dcl
X+prints(char *fmt, ...)
X {
X   va_list args;
X-  char buff[512], *fmt;
X+  char buff[512];
X 
X-  va_start(args);
X+  va_start(args, fmt);
X   fmt = va_arg(args, char *);
X   vsprintf(buff, fmt, args);
X   va_end(args);
END-of-ve/files/extrapatch-screen.c
echo x - ve/files/patch-Makefile
sed 's/^X//' >ve/files/patch-Makefile << 'END-of-ve/files/patch-Makefile'
X--- Makefile.orig	Wed Aug 25 14:27:23 1999
X+++ Makefile	Thu Dec 18 01:29:56 2003
X@@ -1,10 +1,11 @@
X-CC = gcc
X+CC ?= cc
X OBJ = edit.o term.o screen.o stuff.o io.o editor.o
X 
X #----------------------------------------------------------
X # FreeBSD
X #----------------------------------------------------------
X-CFLAGS = -DVEDITOR
X+CFLAGS ?= -O -pipe
X+CFLAGS += -DVEDITOR
X LIBS = -ltermcap -lcompat
X 
X #----------------------------------------------------------
X@@ -26,12 +27,12 @@
X 	rm -f *.o ve entab
X 
X install: all
X-	mkdir -p /usr/local/share/ve
X-	cp ve /usr/local/bin
X-	cp 00readme.txt ve.hlp /usr/local/share/ve
X+	mkdir -p $(PREFIX)/share/ve
X+	$(BSD_INSTALL_PROGRAM) ve $(PREFIX)/bin
X+	$(BSD_INSTALL_DATA) 00readme.txt ve.hlp $(PREFIX)/share/ve
X 
X ve: $(OBJ)
X-	gcc $(CFLAGS) -o ve $(OBJ) $(LIBS)
X+	$(CC) $(CFLAGS) -o ve $(OBJ) $(LIBS)
X 
X entab: entab.o
X-	gcc -o entab entab.o
X+	$(CC) -o entab entab.o
END-of-ve/files/patch-Makefile
exit
--- ve.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060124062901.245285CCD8>