From nobody@FreeBSD.org  Fri Aug 17 15:39:24 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 7437537B410
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Aug 2001 15:39:24 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f7HMco442212;
	Fri, 17 Aug 2001 15:38:50 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108172238.f7HMco442212@freefall.freebsd.org>
Date: Fri, 17 Aug 2001 15:38:50 -0700 (PDT)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: graphics/aview
X-Send-Pr-Version: www-1.0

>Number:         29824
>Category:       ports
>Synopsis:       Update port: graphics/aview
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 17 15:40:02 PDT 2001
>Closed-Date:    Wed Aug 29 04:43:47 PDT 2001
>Last-Modified:  Wed Aug 29 04:44:36 PDT 2001
>Originator:     KATO Tsuguru
>Release:        4.3-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support LOCALBASE properly
- Add WWW: line

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/aview/Makefile graphics/aview/Makefile
--- /usr/ports/graphics/aview/Makefile	Tue Mar 13 03:55:41 2001
+++ graphics/aview/Makefile	Wed Aug 15 19:15:38 2001
@@ -1,16 +1,16 @@
-# New ports collection Makefile for: aview
-# Date created:         Dec 18 1997
-# Whom:                 frankch@waru.life.nthu.edu.tw
+# New ports collection Makefile for:	aview
+# Date created:		Dec 18 1997
+# Whom:			frankch@waru.life.nthu.edu.tw
 #
 # $FreeBSD: ports/graphics/aview/Makefile,v 1.8 2001/03/12 18:55:41 sf Exp $
 #
 
 PORTNAME=	aview
 PORTVERSION=	1.2
+PORTREVISION=	1
 CATEGORIES=	graphics
-MASTER_SITES=	ftp://ftp.ta.jcu.cz/pub/aa/ \
-		${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR=	applications
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	aa-project
 
 MAINTAINER=	ports@FreeBSD.org
 
@@ -18,6 +18,12 @@
 		convert:${PORTSDIR}/graphics/ImageMagick
 LIB_DEPENDS=	aa.1:${PORTSDIR}/graphics/aalib
 
-GNU_CONFIGURE=	YES
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-x=no
+
+post-patch:
+	@${PERL} -pi -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
+	@find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \
+		's|<malloc.h>|<stdlib.h>|g' \
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/aview/distinfo graphics/aview/distinfo
--- /usr/ports/graphics/aview/distinfo	Sun Apr 12 03:21:22 1998
+++ graphics/aview/distinfo	Wed Aug 15 05:20:27 2001
@@ -1 +1 @@
-MD5 (aview-1.2.tar.gz) = 8c3bc5d64f8b8d290e4d7816a6201bca
+MD5 (aview-1.2.tar.gz) = fe292142753ac85d3994f5b5073993ab
diff -urN /usr/ports/graphics/aview/files/patch-aa graphics/aview/files/patch-aa
--- /usr/ports/graphics/aview/files/patch-aa	Sun Apr 12 03:21:23 1998
+++ graphics/aview/files/patch-aa	Wed Aug 15 05:21:36 2001
@@ -5,22 +5,3 @@
  # asciiview - an ascii art image browser script. Front end for aview/aaflip
  clear()
  {
---- image.c.orig	Wed Apr  8 16:34:02 1998
-+++ image.c	Wed Apr  8 16:34:43 1998
-@@ -1,5 +1,5 @@
- #include <stdio.h>
--#include <malloc.h>
-+#include <stdlib.h>
- 
- int imgwidth, imgheight;
- unsigned char *imgdata;
---- ui.c.orig	Wed Apr  8 16:34:09 1998
-+++ ui.c	Wed Apr  8 16:34:26 1998
-@@ -1,6 +1,6 @@
- #include <stdio.h>
- #include <ctype.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <string.h>
- #include <aalib.h>
- #include "shrink.h"
diff -urN /usr/ports/graphics/aview/pkg-descr graphics/aview/pkg-descr
--- /usr/ports/graphics/aview/pkg-descr	Wed Dec 24 16:39:24 1997
+++ graphics/aview/pkg-descr	Wed Aug 15 05:18:40 2001
@@ -14,3 +14,5 @@
 
 You could press h to get help. You may also save the pics in various text
 format. Thanks to aalib!
+
+WWW: http://aa-project.sourceforge.net/aview/

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: markp 
State-Changed-When: Wed Aug 29 04:43:47 PDT 2001 
State-Changed-Why:  
Committed, thanks! Skipped PORTREVISION update. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29824 
>Unformatted:
