diff options
author | leeym <leeym@FreeBSD.org> | 2004-10-12 18:37:52 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-10-12 18:37:52 +0000 |
commit | c3ea56c5f0d4b09626fbea87b5b5b5a1bf63eb54 (patch) | |
tree | eb28e02f55934a250a6ca9f79c2a1aed97ab116a /chinese/chinput2 | |
parent | 421cf51dad85de0db7aa0e14a693ad10ce0c1d23 (diff) | |
download | FreeBSD-ports-c3ea56c5f0d4b09626fbea87b5b5b5a1bf63eb54.zip FreeBSD-ports-c3ea56c5f0d4b09626fbea87b5b5b5a1bf63eb54.tar.gz |
- unbreak this port
- utilize USE_MYSQL and ECHO_MSG
- replace pkg-plist with PLIST_FILES/PLIST_DIRS
PR: 71888
Submitted by: leeym
Approved by: maintainer timeout
Diffstat (limited to 'chinese/chinput2')
-rw-r--r-- | chinese/chinput2/Makefile | 43 | ||||
-rw-r--r-- | chinese/chinput2/pkg-plist | 5 |
2 files changed, 24 insertions, 24 deletions
diff --git a/chinese/chinput2/Makefile b/chinese/chinput2/Makefile index b8b0493..9ffdec9 100644 --- a/chinese/chinput2/Makefile +++ b/chinese/chinput2/Makefile @@ -15,29 +15,34 @@ DISTNAME= zh-chinput2-1.3.1 MAINTAINER= phj@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} +PLIST_FILES= bin/chinput2 bin/add_items etc/chinput2.conf share/${PORTNAME}/README +PLIST_DIRS= share/${PORTNAME} -.include <bsd.port.pre.mk> +post-extract: + @${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf -.if ${OSVERSION} >= 500113 -BROKEN= "Does not build" -.endif +post-patch: + @${REINPLACE_CMD} -Ee 's,^((BIN|CONF|DOC_)(DIR|PATH)=)/usr/local,\1${PREFIX},g' \ + ${WRKSRC}/util/pydb/Makefile ${WRKSRC}/src/Makefile ${WRKSRC}/Makefile -post-extract: - ${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf +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@cn.freebsd.org" - @echo - -.include <bsd.port.post.mk> + @${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@cn.freebsd.org" + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/chinese/chinput2/pkg-plist b/chinese/chinput2/pkg-plist deleted file mode 100644 index 27ee511..0000000 --- a/chinese/chinput2/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -bin/chinput2 -bin/add_items -etc/chinput2.conf -share/chinput2/README -@dirrm share/chinput2 |