From leeym@utopia.leeym.com  Tue Sep 21 18:28:20 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 CDD0B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 2004 18:28:20 +0000 (GMT)
Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6B2F643D49
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 2004 18:28:20 +0000 (GMT)
	(envelope-from leeym@utopia.leeym.com)
Received: from localhost (localhost [127.0.0.1])
	by utopia.leeym.com (Postfix) with ESMTP id 5E1C93EADE5
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Sep 2004 02:28:19 +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 17683-07 for <FreeBSD-gnats-submit@freebsd.org>;
 Wed, 22 Sep 2004 02:28:17 +0800 (CST)
Received: by utopia.leeym.com (Postfix, from userid 1000)
	id 1CF5A3EADE1; Wed, 22 Sep 2004 02:28:17 +0800 (CST)
Message-Id: <20040921182817.1CF5A3EADE1@utopia.leeym.com>
Date: Wed, 22 Sep 2004 02:28:17 +0800 (CST)
From: Yen-Ming Lee <leeym@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] chinese/zh-chinput3: unbreak
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71981
>Category:       ports
>Synopsis:       [PATCH] chinese/zh-chinput3: 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:   Tue Sep 21 18:30:17 GMT 2004
>Closed-Date:    Tue Sep 21 20:22:20 GMT 2004
>Last-Modified:  Tue Sep 21 20:22:20 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:

- use REINPLACE to unbreak this port
- make this port PREFIX clean

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

http://pointyhat.freebsd.org/errorlogs/i386-5-latest/zh-chinput-3.0.2.5_1.log

>Fix:

--- zh-chinput-3.0.2.5_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/chinese/chinput3/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	23 May 2004 10:08:49 -0000	1.14
+++ Makefile	21 Sep 2004 18:27:22 -0000
@@ -32,6 +32,12 @@
 BROKEN=		"Does not compile on amd64 (needs -fPIC)"
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e '/extern int ForwardEvent();/d' \
+		${WRKSRC}/src/Chinput-*/src/*.c
+	@${FIND} ${WRKSRC} -type f | \
+		${XARGS} ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g'
+
 pre-build:
 	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
 		-e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|'
--- zh-chinput-3.0.2.5_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->leeym 
Responsible-Changed-By: leeym 
Responsible-Changed-When: Tue Sep 21 18:38:56 GMT 2004 
Responsible-Changed-Why:  
I will take care of this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71981 
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Tue Sep 21 20:22:19 GMT 2004 
State-Changed-Why:  
Committed, thanks. 

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