ports/71888: [PATCH] chinese/zh-chinput2: unbreak

Yen-Ming Lee leeym at FreeBSD.org
Sat Sep 18 18:10:26 UTC 2004


>Number:         71888
>Category:       ports
>Synopsis:       [PATCH] chinese/zh-chinput2: 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:   Sat Sep 18 18:10:25 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:

- unbreak this port
- utilize USE_MYSQL and ECHO_MSG

Port maintainer (phj at cn.FreeBSD.org) is cc'd.

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

--- zh-chinput2-1.3.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/chinese/chinput2/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile	13 Nov 2003 14:44:58 -0000	1.9
+++ Makefile	18 Sep 2004 18:01:27 -0000
@@ -15,29 +15,34 @@
 MAINTAINER=	phj at cn.FreeBSD.org
 COMMENT=	Another Chinese GB2312 and Big5 X11 input server
 
-BUILD_DEPENDS=	mysql:${PORTSDIR}/databases/mysql323-client
-RUN_DEPENDS=	mysql:${PORTSDIR}/databases/mysql323-client
-
+USE_MYSQL=	yes
+USE_REINPLACE=	yes
 USE_XLIB=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN=         "Does not build"
-.endif
-
 post-extract:
-	${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
+	@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
+
+post-patch:
+	@${REINPLACE_CMD} -E \
+		-e 's,^((BIN|CONF|DOC_)(DIR|PATH)=)/usr/local,\1${PREFIX},g' \
+		${WRKSRC}/util/pydb/Makefile ${WRKSRC}/src/Makefile ${WRKSRC}/Makefile
+
+pre-build:
+	@${RM} -f ${WRKSRC}/src/.depend
+
+pre-install:
+	@${REINPLACE_CMD} -Ee 's,^((BIN|CONF|DOC_)(DIR|PATH)=)/usr/local,\1${PREFIX},g' \
+		${WRKSRC}/src/Makefile
 
 post-install:
-	@echo
-	@echo
-	@echo "Please refer to /usr/local/share/chinput2/README for "
-	@echo "how to use chinput2,thanks for using this software."
-	@echo
-	@echo "					-phj at cn.freebsd.org"
-	@echo
+	@${ECHO_MSG}
+	@${ECHO_MSG}
+	@${ECHO_MSG} "Please refer to ${PREFIX}/share/chinput2/README for "
+	@${ECHO_MSG} "how to use chinput2,thanks for using this software."
+	@${ECHO_MSG}
+	@${ECHO_MSG} "					-phj at cn.freebsd.org"
+	@${ECHO_MSG}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- zh-chinput2-1.3.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list