ports/69108: Update port: graphics/duhdraw to 2.7.7

KATO Tsuguru tkato432 at yahoo.com
Thu Jul 15 16:10:24 UTC 2004


>Number:         69108
>Category:       ports
>Synopsis:       Update port: graphics/duhdraw to 2.7.7
>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:   Thu Jul 15 16:10:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 2.7.7

Remove file:
files/patch-aa
files/patch-ab
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/duhdraw/Makefile graphics/duhdraw/Makefile
--- /usr/ports/graphics/duhdraw/Makefile	Wed Nov  5 00:38:05 2003
+++ graphics/duhdraw/Makefile	Thu Jul 15 00:59:23 2004
@@ -6,18 +6,24 @@
 #
 
 PORTNAME=	duhdraw
-PORTVERSION=	2.6.96
+PORTVERSION=	2.7.7
 CATEGORIES=	graphics
-MASTER_SITES=	http://www.wwco.com/~wls/opensource/
-DISTNAME=	duhdraw-2.7.1
+MASTER_SITES=	http://www.cs.helsinki.fi/u/penberg/duhdraw/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	An ANSI graphic drawing program
 
-WRKSRC=		${WRKDIR}/duhdraw-2.7.1
+USE_REINPLACE=	yes
+MAKE_ARGS=	CC="${CC} ${CFLAGS}"
+
+PLIST_FILES=	bin/ansi bin/ansitoc bin/duhdraw
+
+post-patch:
+	@${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/duhdraw.c
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/ansi ${PREFIX}/bin/ansi
-	${INSTALL_SCRIPT} ${WRKSRC}/ansitoc ${PREFIX}/bin/ansitoc
-	${INSTALL_SCRIPT} ${WRKSRC}/duhdraw ${PREFIX}/bin/duhdraw
+	${INSTALL_PROGRAM} ${WRKSRC}/ansi ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/ansitoc ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/duhdraw ${PREFIX}/bin
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/duhdraw/distinfo graphics/duhdraw/distinfo
--- /usr/ports/graphics/duhdraw/distinfo	Thu Jan 29 20:25:42 2004
+++ graphics/duhdraw/distinfo	Thu Jul 15 00:51:12 2004
@@ -1,2 +1,2 @@
-MD5 (duhdraw-2.7.1.tar.gz) = 9e667706d4abde64088a4a4a3010d171
-SIZE (duhdraw-2.7.1.tar.gz) = 46652
+MD5 (duhdraw-2.7.7.tar.gz) = 555c14fe6d4a21604461eaddc978b603
+SIZE (duhdraw-2.7.7.tar.gz) = 47801
diff -urN /usr/ports/graphics/duhdraw/files/patch-aa graphics/duhdraw/files/patch-aa
--- /usr/ports/graphics/duhdraw/files/patch-aa	Sat Sep 21 09:33:36 2002
+++ graphics/duhdraw/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,12 +0,0 @@
-*** duhdraw.c.old	Fri Jun 21 18:04:08 2002
---- duhdraw.c	Fri Jun 21 18:04:17 2002
-***************
-*** 11,17 ****
-  #include <stdio.h>
-  #include <dirent.h>
-  #include <sys/stat.h>
-- #include <malloc.h>
-  #include <time.h>
-  #include <curses.h> 
-  #include <ctype.h>
---- 11,16 ----
diff -urN /usr/ports/graphics/duhdraw/files/patch-ab graphics/duhdraw/files/patch-ab
--- /usr/ports/graphics/duhdraw/files/patch-ab	Sat Sep 21 09:33:36 2002
+++ graphics/duhdraw/files/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,29 +0,0 @@
---- Makefile.orig	Thu Apr  4 19:16:01 2002
-+++ Makefile	Fri Sep 20 17:28:35 2002
-@@ -1,5 +1,6 @@
- # These are the production settings
--CC=gcc -O2 -s
-+CC?=cc
-+CFLAGS+=-s
- STRIP=strip
- LIBS=-lncurses
- 
-@@ -11,15 +12,15 @@
- all:	duhdraw ansitoc ansi
- 
- ansi:	cleanansi
--	$(CC) -o ansi ansi.c $(LIBS)
-+	$(CC) $(CFLAGS) -o ansi ansi.c $(LIBS)
- 	$(STRIP) ansi
- 
- duhdraw:	cleandd	
--	$(CC) -o duhdraw duhdraw.c $(LIBS) 
-+	$(CC) $(CFLAGS) -o duhdraw duhdraw.c $(LIBS) 
- 	$(STRIP) duhdraw
- 
- ansitoc:	cleanansitoc	
--	$(CC) -o ansitoc ansitoc.c
-+	$(CC) $(CFLAGS) -o ansitoc ansitoc.c
- 	$(STRIP) ansitoc
- 
- cleanansi:	
diff -urN /usr/ports/graphics/duhdraw/pkg-descr graphics/duhdraw/pkg-descr
--- /usr/ports/graphics/duhdraw/pkg-descr	Sat Sep 21 09:33:35 2002
+++ graphics/duhdraw/pkg-descr	Thu Jul 15 00:49:57 2004
@@ -1 +1,3 @@
 DuhDraw is a program which almost perfectly simulates TheDraw for DOS.
+
+WWW: http://www.cs.helsinki.fi/u/penberg/duhdraw/
diff -urN /usr/ports/graphics/duhdraw/pkg-plist graphics/duhdraw/pkg-plist
--- /usr/ports/graphics/duhdraw/pkg-plist	Sat Sep 21 09:33:35 2002
+++ graphics/duhdraw/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,4 +0,0 @@
-
-bin/duhdraw
-bin/ansi
-bin/ansitoc
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list