mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
add extrapatch and unbreak this port on -current.
PR: 60343 Submitted by: leeym Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
8b94b4ebc5
commit
bfded1e9e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96975
@ -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>
|
||||
|
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);
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user