From leeym@utopia.leeym.com  Sun Sep 26 16:43:11 2004
Return-Path: <leeym@utopia.leeym.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 33B7516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Sep 2004 16:43:11 +0000 (GMT)
Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CB07B43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Sep 2004 16:43:10 +0000 (GMT)
	(envelope-from leeym@utopia.leeym.com)
Received: from localhost (localhost [127.0.0.1])
	by utopia.leeym.com (Postfix) with ESMTP id AF7153EAD1A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Sep 2004 00:43:09 +0800 (CST)
Received: from utopia.leeym.com ([127.0.0.1])
 by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 66541-08 for <FreeBSD-gnats-submit@freebsd.org>;
 Mon, 27 Sep 2004 00:43:05 +0800 (CST)
Received: by utopia.leeym.com (Postfix, from userid 1000)
	id 465F13EAD15; Mon, 27 Sep 2004 00:43:05 +0800 (CST)
Message-Id: <20040926164305.465F13EAD15@utopia.leeym.com>
Date: Mon, 27 Sep 2004 00:43:05 +0800 (CST)
From: Yen-Ming Lee <leeym@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] mail/librfc822: add USE_GCC=2.95 and unbreak
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72105
>Category:       ports
>Synopsis:       [PATCH] mail/librfc822: add USE_GCC=2.95 and unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    leeym
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 26 16:50:20 GMT 2004
>Closed-Date:    Mon Sep 27 18:12:49 GMT 2004
>Last-Modified:  Mon Sep 27 18:12:49 GMT 2004
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.3-BETA4 i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA4 FreeBSD 5.3-BETA4 #7: Mon Sep 13 05:12:30 CST 2004
>Description:

- add USE_GCC=2.95 and unbreak this port
- replace pkg-plist with PORTDOCS and PLIST_FILES

Removed file(s):
- pkg-plist

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- librfc822-1.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/librfc822/Makefile,v
retrieving revision 1.6
diff -u -u -r1.6 Makefile
--- Makefile	16 Aug 2004 02:47:08 -0000	1.6
+++ Makefile	26 Sep 2004 16:41:52 -0000
@@ -15,20 +15,21 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A complete parser for RFC822 addresses
 
-DOCS=		readme.html readme.txt user-manual.html user-manual.pdf
+USE_GCC=	2.95
+USE_REINPLACE=	yes
 
-.include <bsd.port.pre.mk>
+PORTDOCS=	readme.html readme.txt user-manual.html user-manual.pdf
+PLIST_FILES=	include/rfc822.hh lib/librfc822.a
 
-.if ${OSVERSION} >= 502126
-BROKEN=		"Does not compile with gcc 3.4.2"
-.endif
+post-patch:
+	@${REINPLACE_CMD} -E -e 's/^(CXX.*)=(.*)/\1\?=\2/' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/rfc822.hh ${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/librfc822.a ${PREFIX}/lib
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/documentation && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	@cd ${WRKSRC}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- pkg-plist	7 May 2003 17:21:07 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
-include/rfc822.hh
-lib/librfc822.a
-%%PORTDOCS%%%%DOCSDIR%%/readme.html
-%%PORTDOCS%%%%DOCSDIR%%/readme.txt
-%%PORTDOCS%%%%DOCSDIR%%/user-manual.html
-%%PORTDOCS%%%%DOCSDIR%%/user-manual.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- librfc822-1.0_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->leeym 
Responsible-Changed-By: leeym 
Responsible-Changed-When: Sun Sep 26 17:02:03 GMT 2004 
Responsible-Changed-Why:  
I will take care of this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72105 
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Mon Sep 27 18:12:48 GMT 2004 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72105 
>Unformatted:
