ports/72105: [PATCH] mail/librfc822: add USE_GCC=2.95 and unbreak

Yen-Ming Lee leeym at FreeBSD.org
Sun Sep 26 16:50:21 UTC 2004


>Number:         72105
>Category:       ports
>Synopsis:       [PATCH] mail/librfc822: add USE_GCC=2.95 and unbreak
>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:   Sun Sep 26 16:50:20 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list