Index: head/editors/gate/Makefile =================================================================== --- head/editors/gate/Makefile (revision 415134) +++ head/editors/gate/Makefile (revision 415135) @@ -1,34 +1,35 @@ # Created by: James Howard # $FreeBSD$ PORTNAME= gate PORTVERSION= 2.06 PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= http://www.unixpapa.com/software/ MAINTAINER= ports@FreeBSD.org COMMENT= Simple and unobtrusive line-oriented text editor BUILD_DEPENDS= aspell:textproc/aspell RUN_DEPENDS= aspell:textproc/aspell USES= ncurses GNU_CONFIGURE= yes +USE_CSTD= gnu89 CONFIGURE_ARGS= --with-aspell=${LOCALBASE}/bin/aspell ALL_TARGET= gate gate.1 post-patch: @${REINPLACE_CMD} -e \ 's|$${res_datadir}|${DATADIR}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|^char \*malloc();||g' ${WRKSRC}/term.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gate ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/gate.1 ${STAGEDIR}${MANPREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/gate.help ${STAGEDIR}${DATADIR} .include Index: head/editors/gate/files/patch-Makefile.in =================================================================== --- head/editors/gate/files/patch-Makefile.in (revision 415134) +++ head/editors/gate/files/patch-Makefile.in (revision 415135) @@ -1,11 +1,11 @@ --- Makefile.in.orig 2003-06-19 16:47:56 UTC +++ Makefile.in -@@ -25,7 +25,7 @@ DIST= README $(SRCS) gate.h config.h.in +@@ -25,7 +25,7 @@ DIST= README $(SRCS) gate.h config.h.in Makefile.in gate.1.C gate.help CHANGES gate: $(OBJS) - $(CC) -o gate $(CFLAGS) $(OBJS) $(LIBS) + $(CC) -o gate $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) main.o: main.c gate.h config.h util.o: util.c gate.h config.h Index: head/editors/gate/files/patch-configure =================================================================== --- head/editors/gate/files/patch-configure (revision 415134) +++ head/editors/gate/files/patch-configure (revision 415135) @@ -1,11 +1,20 @@ --- configure.orig 2005-01-24 06:35:15 UTC +++ configure @@ -1766,7 +1766,7 @@ else cat conftest.$ac_ext >&5 fi rm -f conftest* -test "$ac_cv_search_tgetent" = "no" && for i in termcap curses; do +test "$ac_cv_search_tgetent" = "no" && for i in ncurses; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <> confdefs.h < is NULL, then this does a more ordinary, wrapless read. + */ + +-int getline(char *buf, char *wbuf, int *wcol, char *prompt) ++int get_line(char *buf, char *wbuf, int *wcol, char *prompt) + { + int linemode= (wbuf == NULL); /* reading single line, not file */ + int wrapon= !linemode; /* is line wrap enabled? */ Property changes on: head/editors/gate/files/patch-line.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/editors/gate/files/patch-main.c =================================================================== --- head/editors/gate/files/patch-main.c (nonexistent) +++ head/editors/gate/files/patch-main.c (revision 415135) @@ -0,0 +1,11 @@ +--- main.c.orig 2005-01-24 17:05:01 UTC ++++ main.c +@@ -87,7 +87,7 @@ int main(int argc,char **argv) + wcol= 0; + for (;;) + { +- if (getline(bf[sw], bf[!sw], &wcol, prompt)) ++ if (get_line(bf[sw], bf[!sw], &wcol, prompt)) + { + putchar('\n'); + done(RET_ENTER); Property changes on: head/editors/gate/files/patch-main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/editors/gate/files/patch-spel.c =================================================================== --- head/editors/gate/files/patch-spel.c (revision 415134) +++ head/editors/gate/files/patch-spel.c (revision 415135) @@ -1,13 +1,11 @@ -diff --git spel.c spel.c -index 5c53256..1e9ad04 100644 ---- spel.c +--- spel.c.orig 2003-06-19 16:55:51 UTC +++ spel.c -@@ -151,7 +151,7 @@ empty_repl() - /* ADD_REPL - Add the given replacement to the list of replacements. - * "replace" may be NULL to indicate that the word is to be ignored. - */ -- -+void - add_repl(char *word, int word_len, char *replace) - { - struct repl *r; +@@ -683,7 +683,7 @@ int fix_word(char *line, int offset, int + for(;;) + { + subtask= 1; +- if (getline(bf,NULL,&wcol,st)) ++ if (get_line(bf,NULL,&wcol,st)) + { + printf("\nSpell Check Interupted.\n"); + return 1; Index: head/editors/gate/files/patch-subs.c =================================================================== --- head/editors/gate/files/patch-subs.c (revision 415134) +++ head/editors/gate/files/patch-subs.c (revision 415135) @@ -1,13 +1,20 @@ -diff --git subs.c subs.c -index 287d9d3..a6caea9 100644 ---- subs.c +--- subs.c.orig 2005-01-24 06:16:01 UTC +++ subs.c +@@ -74,7 +74,7 @@ int ask_spell_subs(char **replace, int * + subtask= 1; + sprintf(st,"Replacement for \"%.*s\" (? for help): ", + strlen(match+1)-1, match+1); +- if (getline(*replace= bf,NULL,wcol,st)) ++ if (get_line(*replace= bf,NULL,wcol,st)) + { + printf("\nSpell Check Interupted.\n"); + do_subs= 'q'; @@ -429,7 +429,7 @@ int cliplast(char *lastbuf, int bufsize) #endif /* Make a copy of the file */ - if ((cfp= make_copy()) == NULL) return; + if ((cfp= make_copy()) == NULL) return 0; fflush(cfp); fseek(cfp,0L,0);