ports/56000: Update port: editors/gate to 2.05

KATO Tsuguru tkato at prontomail.com
Tue Aug 26 15:10:32 UTC 2003


>Number:         56000
>Category:       ports
>Synopsis:       Update port: editors/gate to 2.05
>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 Aug 26 08:10:21 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 2.05

Remove file:
files/patch-aa
files/patch-ab
files/patch-ac
files/patch-ad
files/patch-ae
files/patch-af

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/editors/gate/Makefile editors/gate/Makefile
--- /usr/ports/editors/gate/Makefile	Sat Aug 16 13:21:13 2003
+++ editors/gate/Makefile	Mon Aug 25 22:06:39 2003
@@ -6,26 +6,33 @@
 #
 
 PORTNAME=	gate
-PORTVERSION=	2.04c
+PORTVERSION=	2.05
 CATEGORIES=	editors
-MASTER_SITES=   http://www.wwnet.net/~janc/software/
-DISTNAME=	${PORTNAME}
+MASTER_SITES=	http://www.unixpapa.com/software/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A simple and unobtrusive line-oriented text editor
 
-RUN_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell
-
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+BUILD_DEPENDS=	aspell:${PORTSDIR}/textproc/aspell
+RUN_DEPENDS=	aspell:${PORTSDIR}/textproc/aspell
 
+USE_REINPLACE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-aspell=${LOCALBASE}/bin/aspell
 ALL_TARGET=	gate gate.1
 
 MAN1=		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 ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/gate.1 ${PREFIX}/man/man1
-	${MKDIR} ${PREFIX}/share/gate
-	${INSTALL_DATA} ${WRKSRC}/gate.help ${PREFIX}/share/gate
+	${INSTALL_MAN} ${WRKSRC}/gate.1 ${MANPREFIX}/man/man1
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/gate.help ${DATADIR}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/editors/gate/distinfo editors/gate/distinfo
--- /usr/ports/editors/gate/distinfo	Fri Jul 21 19:11:32 2000
+++ editors/gate/distinfo	Mon Aug 25 21:48:45 2003
@@ -1 +1 @@
-MD5 (gate.tar.gz) = d7c10db9858cf6ad0a48cbb6dd2949de
+MD5 (gate-2.05.tar.gz) = b071870246c6ecb03c6f74b328ef8ef8
diff -urN /usr/ports/editors/gate/files/patch-aa editors/gate/files/patch-aa
--- /usr/ports/editors/gate/files/patch-aa	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,24 +0,0 @@
---- Makefile.orig	Wed Jul 24 02:23:43 1996
-+++ Makefile	Fri Jul 21 17:57:55 2000
-@@ -150,17 +150,17 @@
- #LIB=	-ltermcap
- 
- # my Linux box with international ispell - Debugging only
--CFLAGS= -g \
-+CFLAGS+= -g \
- 	-DBSD \
- 	-DYAPP \
- 	-DNOVICE \
- 	-DIISPELL \
- 	-DPICO_BUG \
--	-DSPELL_PATH='"/usr/local/bin/ispell"' \
--	-DDICT_DIR='"/usr/local/lib"'  \
-+	-DSPELL_PATH='"$(LOCALBASE)/bin/ispell"' \
-+	-DDICT_DIR='"$(LOCALBASE)/share/ispell"'  \
- 	-DLANG_DEFAULT='"english"'\
- 	-DDEFAULT_EDITOR='"/usr/bin/vi"' \
--	-DHELP_FILE='"/home/janc/src/gate/gate.help"'
-+	-DHELP_FILE='"$(PREFIX)/share/gate/gate.help"'
- LIB=	-ltermcap
- 
- OBJS=main.o line.o syst.o util.o cmd.o file.o opt.o subs.o term.o proc.o spel.o
diff -urN /usr/ports/editors/gate/files/patch-ab editors/gate/files/patch-ab
--- /usr/ports/editors/gate/files/patch-ab	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,31 +0,0 @@
---- file.c.orig	Mon Jul 17 23:05:48 2000
-+++ file.c	Mon Jul 17 23:12:29 2000
-@@ -59,12 +59,12 @@
-  * open file descriptor.
-  */
- 
--FILE *copy_file(char *wname)
-+FILE *copy_file(char *wname, int fd)
- {
- FILE *wfp;
- int ch;
- 	
--    if ((wfp= fopen(wname,"w+")) == NULL)
-+    if ((wfp= fdopen(fd,"w+")) == NULL)
-     {
- 	printf("Cannot open file %s\n",wname);
- 	return(NULL);
-@@ -84,10 +84,12 @@
- void write_file(char *wname)
- {
- FILE *fp;
-+int fd;
-   
-     if (expand_tilde(wname)) return;
- 
--    if ((fp= copy_file(wname)) == NULL) return;
-+    fd = open(wname, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
-+    if ((fp= copy_file(wname, fd)) == NULL) return;
-     fclose(fp);
-     printf("Saved in file %s\n",wname);
- }
diff -urN /usr/ports/editors/gate/files/patch-ac editors/gate/files/patch-ac
--- /usr/ports/editors/gate/files/patch-ac	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-ac	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- gate.h.orig	Mon Jul 17 23:20:52 2000
-+++ gate.h	Mon Jul 17 23:21:15 2000
-@@ -213,7 +213,7 @@
- 
- /* FILE.C */
- void read_file(char *rname, int strip);
--FILE *copy_file(char *wname);
-+FILE *copy_file(char *wname, int fd);
- void write_file(char *wname);
- void typefile(char *name);
- void emptyfile(void);
diff -urN /usr/ports/editors/gate/files/patch-ad editors/gate/files/patch-ad
--- /usr/ports/editors/gate/files/patch-ad	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-ad	Thu Jan  1 09:00:00 1970
@@ -1,19 +0,0 @@
---- proc.c.orig	Mon Jul 17 23:13:54 2000
-+++ proc.c	Mon Jul 17 23:14:26 2000
-@@ -57,13 +57,14 @@
- char tmpname[20];
- FILE *cfp;
- long oldt;
-+int fd;
- 
-     /* We could use a call to make_copy() here, but this method survives
-      * interupts better
-      */
-     strcpy(tmpname, "/tmp/gateXXXXXX");
--    mktemp(tmpname);
--    if ((cfp= fopen(tmpname,"w+")) == NULL)
-+    fd = mkstemp(tmpname);
-+    if ((cfp= fdopen(fd,"w+")) == NULL)
-     {
- 	printf("Cannot open file %s.\n",tmpname);
- 	return(NULL);
diff -urN /usr/ports/editors/gate/files/patch-ae editors/gate/files/patch-ae
--- /usr/ports/editors/gate/files/patch-ae	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-ae	Thu Jan  1 09:00:00 1970
@@ -1,20 +0,0 @@
---- spel.c.orig	Mon Jul 17 23:14:49 2000
-+++ spel.c	Mon Jul 17 23:15:57 2000
-@@ -9,7 +9,7 @@
- typedef struct dirent dirent;
- #define dnamlen(d) strlen(d->d_name)
- #else
--#include <sys/dir.h>
-+#include <dirent.h>
- typedef struct direct dirent;
- #define dnamlen(d) (d->d_namlen)
- #endif
-@@ -298,7 +298,7 @@
- #ifdef DICT_DIR
- char buf[BUFSIZE+1];
- DIR *ispd;
--dirent *de;
-+struct dirent *de;
- int n= 0;
- int namlen;
- 
diff -urN /usr/ports/editors/gate/files/patch-af editors/gate/files/patch-af
--- /usr/ports/editors/gate/files/patch-af	Fri Jul 21 19:11:38 2000
+++ editors/gate/files/patch-af	Thu Jan  1 09:00:00 1970
@@ -1,16 +0,0 @@
---- subs.c.orig	Mon Jul 17 23:16:19 2000
-+++ subs.c	Mon Jul 17 23:16:45 2000
-@@ -40,10 +40,11 @@
- {
- char tmpname[18];
- FILE *fp;
-+int fd;
- 
-     strcpy(tmpname, "/tmp/gateXXXXXX");
--    mktemp(tmpname);
--    fp= copy_file(tmpname);
-+    fd = mkstemp(tmpname);
-+    fp= copy_file(tmpname, fd);
-     unlink(tmpname);
-     return(fp);
- }
diff -urN /usr/ports/editors/gate/pkg-descr editors/gate/pkg-descr
--- /usr/ports/editors/gate/pkg-descr	Fri Jul 21 19:11:44 2000
+++ editors/gate/pkg-descr	Mon Aug 25 21:46:10 2003
@@ -17,4 +17,4 @@
 filter your text through something like the unix "fmt" command. It
 provides a nice spell-checking interface too. 
 
-WWW: http://www.wwnet.net/~janc/gate.html
+WWW: http://www.unixpapa.com/gate.html
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list