diff options
author | chinsan <chinsan@FreeBSD.org> | 2008-01-07 23:36:34 +0800 |
---|---|---|
committer | chinsan <chinsan@FreeBSD.org> | 2008-01-07 23:36:34 +0800 |
commit | b3012c4bfb553dad204ea21323995247675fafe7 (patch) | |
tree | 081c6e46eb4dc0ea19e94c5e926ce7054d4fb4ea /chinese/auto-tw-l10n | |
parent | cc70c97bb1fd32cbc583d07f8fce6e5810c04b27 (diff) | |
download | freebsd-ports-gnome-b3012c4bfb553dad204ea21323995247675fafe7.tar.gz freebsd-ports-gnome-b3012c4bfb553dad204ea21323995247675fafe7.tar.zst freebsd-ports-gnome-b3012c4bfb553dad204ea21323995247675fafe7.zip |
- Add a workaround support for KDE.
Noticed by: kevlo@
Diffstat (limited to 'chinese/auto-tw-l10n')
-rw-r--r-- | chinese/auto-tw-l10n/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/chinese/auto-tw-l10n/Makefile b/chinese/auto-tw-l10n/Makefile index 816248e6ba24..b751ec53f08a 100644 --- a/chinese/auto-tw-l10n/Makefile +++ b/chinese/auto-tw-l10n/Makefile @@ -6,6 +6,7 @@ PORTNAME= auto-tw-l10n PORTVERSION= 1.10 +PORTREVISION= 1 CATEGORIES= chinese MASTER_SITES= LOCAL/chinsan DISTNAME= zh-${PORTNAME}-${PORTVERSION} @@ -22,10 +23,22 @@ PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-install pkg-message SUB_LIST= PREFIX=${PREFIX} ZONE=${ZONE} SOURCE_DIR=${WRKSRC} \ WRKDIR=${WRKDIR} FASTEST_CVSUP=${FASTEST_CVSUP} +OPTIONS= KDE "Enable KDE support" Off FASTEST_CVSUP?= ${LOCALBASE}/bin/fastest_cvsup ZONE?= tw +.include <bsd.port.pre.mk> + +post-patch: +.if defined(WITH_KDE) + @${REINPLACE_CMD} -e '5 s/en_US.ISO8859-1/zh_TW.Big5/g' \ + ${WRKSRC}/dot.cshrc + @${REINPLACE_CMD} -e '1 s/en_US.ISO8859-1/zh_TW.Big5/g' \ + ${WRKSRC}/dot.bashrc + @${FIND} ${WRKSRC} -name "*.bak" -delete +.endif + pre-install: @${SH} ${PKGINSTALL} @${FIND} ${WRKSRC} -name "*.in" -delete @@ -37,4 +50,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |