mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
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>
This commit is contained in:
parent
de92f3a3f8
commit
0826b6a8c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157811
1
MOVED
1
MOVED
@ -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
|
||||
|
@ -123,6 +123,7 @@
|
||||
SUBDIR += ttfm
|
||||
SUBDIR += unrar
|
||||
SUBDIR += unzip
|
||||
SUBDIR += ve
|
||||
SUBDIR += vflib
|
||||
SUBDIR += vim-scdoc
|
||||
SUBDIR += wenju
|
||||
|
24
chinese/ve/Makefile
Normal file
24
chinese/ve/Makefile
Normal file
@ -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>
|
3
chinese/ve/distinfo
Normal file
3
chinese/ve/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ve-1.0.tgz) = 8ac6f78f46dd95f2e8ad08e3d8052751
|
||||
SHA256 (ve-1.0.tgz) = 3e68bd062ea62722b8f0d5c558a45d9cf006a67a838b59b41b3e90487c79e32b
|
||||
SIZE (ve-1.0.tgz) = 31527
|
28
chinese/ve/files/extrapatch-screen.c
Normal file
28
chinese/ve/files/extrapatch-screen.c
Normal file
@ -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);
|
34
chinese/ve/files/patch-Makefile
Normal file
34
chinese/ve/files/patch-Makefile
Normal file
@ -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
|
20
chinese/ve/pkg-descr
Normal file
20
chinese/ve/pkg-descr
Normal file
@ -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
|
4
chinese/ve/pkg-plist
Normal file
4
chinese/ve/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/ve
|
||||
share/ve/00readme.txt
|
||||
share/ve/ve.hlp
|
||||
@dirrm share/ve
|
Loading…
Reference in New Issue
Block a user