ports/71981: [PATCH] chinese/zh-chinput3: unbreak

Yen-Ming Lee leeym at FreeBSD.org
Tue Sep 21 18:30:21 UTC 2004


>Number:         71981
>Category:       ports
>Synopsis:       [PATCH] chinese/zh-chinput3: 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:   Tue Sep 21 18:30:17 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:

- 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list