From tkato432@yahoo.com  Sat Jun 16 18:01:52 2007
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 71DAF16A41F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 16 Jun 2007 18:01:52 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa03.dion.ne.jp (msa03.dion.ne.jp [222.3.140.166])
	by mx1.freebsd.org (Postfix) with ESMTP id 4AB4713C45B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 16 Jun 2007 18:01:52 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from localhost.localdomain (ZT066154.ppp.dion.ne.jp [59.128.66.154])
	by msa103.dion.ne.jp (DION MAIL) with ESMTP id 840A822C037
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun, 17 Jun 2007 03:01:50 +0900 (JST)
Message-Id: <20070617030033.76b08d27.tkato432@yahoo.com>
Date: Sun, 17 Jun 2007 03:00:33 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: graphics/xpx

>Number:         113776
>Category:       ports
>Synopsis:       Update port: graphics/xpx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 16 18:10:07 GMT 2007
>Closed-Date:    Tue Jun 19 07:45:40 GMT 2007
>Last-Modified:  Tue Jun 19 07:50:05 GMT 2007
>Originator:     KATO Tsuguru
>Release:        FreeBSD 6.2-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Fix build with gcc4
- Support PORTDOCS/PLIST_FILES

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/xpx/Makefile graphics/xpx/Makefile
--- /usr/ports/graphics/xpx/Makefile	Sun May 20 13:51:53 2007
+++ graphics/xpx/Makefile	Tue Jun 12 23:48:22 2007
@@ -10,19 +10,29 @@
 PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.oersted.co.jp/~yav/soft/xpx/
-DISTNAME=	xpx141
+DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A simple pixel editing tool to make datas for KISS
 
-WRKSRC=		${WRKDIR}/xpx
+WRKSRC=		${WRKDIR}/${PORTNAME}
 USE_IMAKE=	yes
 XMKMF=		xmkmf
 
+DOCSDIR=	${PREFIX}/share/doc/ja/${PORTNAME}
+PORTDOCS=	xpx.doc xpxrc.eg
+PLIST_FILES=	bin/xpx
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|myname|my_name|g' ${WRKSRC}/magtoppm.c
+	@${REINPLACE_CMD} -e '/edit_mode/d' ${WRKSRC}/work.h
+
 post-install:
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/ja/xpx
-	${INSTALL_MAN} ${WRKSRC}/xpx.doc ${WRKSRC}/xpxrc.eg ${PREFIX}/share/doc/ja/xpx
+	${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/xpx/pkg-plist graphics/xpx/pkg-plist
--- /usr/ports/graphics/xpx/pkg-plist	Wed Nov 18 18:56:43 1998
+++ graphics/xpx/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,4 +0,0 @@
-bin/xpx
-share/doc/ja/xpx/xpx.doc
-share/doc/ja/xpx/xpxrc.eg
-@dirrm share/doc/ja/xpx
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sat Jun 16 18:18:09 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113776 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Tue Jun 19 07:45:38 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113776 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/113776: commit references a PR
Date: Tue, 19 Jun 2007 07:45:36 +0000 (UTC)

 miwi        2007-06-19 07:45:26 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/xpx         Makefile 
     graphics/xpx/files   patch-aa 
   Removed files:
     graphics/xpx         pkg-plist 
   Log:
   - Fix build with gcc4
   - Support PORTDOCS/PLIST_FILES
   
   PR:             113776
   Submitted by:   KATO Tsuguru <tkato432@yahoo.com>
   
   Revision  Changes    Path
   1.12      +14 -4     ports/graphics/xpx/Makefile
   1.3       +0 -21     ports/graphics/xpx/files/patch-aa
   1.2       +0 -4      ports/graphics/xpx/pkg-plist (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
