diff options
author | leeym <leeym@FreeBSD.org> | 2003-12-31 08:24:03 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-12-31 08:24:03 +0800 |
commit | ae9b172d89da3473a301c9056247a8afdaf15f55 (patch) | |
tree | cb8248e639f164d7c3c0a9a9f901f25d90346728 /chinese | |
parent | ebbff4ef1a7396fcfe6ce11e23baaeae2503934b (diff) | |
download | freebsd-ports-gnome-ae9b172d89da3473a301c9056247a8afdaf15f55.tar.gz freebsd-ports-gnome-ae9b172d89da3473a301c9056247a8afdaf15f55.tar.zst freebsd-ports-gnome-ae9b172d89da3473a301c9056247a8afdaf15f55.zip |
add extrapatch and unbreak this port on -current.
PR: 60343
Submitted by: leeym
Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/ve/Makefile | 2 | ||||
-rw-r--r-- | chinese/ve/files/extrapatch-screen.c | 28 | ||||
-rw-r--r-- | chinese/ve/files/patch-Makefile | 16 | ||||
-rw-r--r-- | chinese/ve/pkg-descr | 14 |
4 files changed, 41 insertions, 19 deletions
diff --git a/chinese/ve/Makefile b/chinese/ve/Makefile index ef70c3f5d468..053e68cfbfab 100644 --- a/chinese/ve/Makefile +++ b/chinese/ve/Makefile @@ -18,7 +18,7 @@ COMMENT= NTHU-CS Maple BBS 2.36 BBS-like editor .include <bsd.port.pre.mk> .if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (need to replace varargs.h with stdarg.h)" +EXTRA_PATCHES= ${FILESDIR}/extrapatch-screen.c .endif .include <bsd.port.post.mk> 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 index 725f6f357693..48b51b3cb974 100644 --- a/chinese/ve/files/patch-Makefile +++ b/chinese/ve/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Wed Oct 22 16:44:56 2003 -+++ Makefile Wed Oct 22 16:45:37 2003 +--- 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 @@ -14,8 +14,16 @@ LIBS = -ltermcap -lcompat #---------------------------------------------------------- -@@ -31,7 +32,7 @@ - cp 00readme.txt ve.hlp /usr/local/share/ve +@@ -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) diff --git a/chinese/ve/pkg-descr b/chinese/ve/pkg-descr index c70284dd8ddf..af4c62940b43 100644 --- a/chinese/ve/pkg-descr +++ b/chinese/ve/pkg-descr @@ -1,7 +1,5 @@ NTHU-CS Maple BBS 2.36 BBS-like editor -ftp://wj.o3.net/freebsd/woju/source/ve.txt - Besides normal functions, it has some great features for programmers -- goto line (ESC-G) cut & paste cross files (Ctrl-G to see ve.hlp) @@ -18,15 +16,3 @@ 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. - -Manual -- -ve.hlp: less -r ve.hlp - -About TAB/SPACE -diff -b f.orig f.new -or "-durb" - -man expand/unexpand - -See Also -- -ports/chinese/big5con |