aboutsummaryrefslogtreecommitdiff
path: root/chinese/auto-tw-l10n
diff options
context:
space:
mode:
authorChin-San Huang <chinsan@FreeBSD.org>2008-01-07 15:36:34 +0000
committerChin-San Huang <chinsan@FreeBSD.org>2008-01-07 15:36:34 +0000
commit563aa3f66f8c8fd1139ef03b804114555c0bf64c (patch)
tree8f8c4a5a4ecd5ad8f1b45670ce10a43b5e981531 /chinese/auto-tw-l10n
parent78357a86753b721118d4ccc8339745f6859740b0 (diff)
downloadports-563aa3f66f8c8fd1139ef03b804114555c0bf64c.tar.gz
ports-563aa3f66f8c8fd1139ef03b804114555c0bf64c.zip
Notes
Diffstat (limited to 'chinese/auto-tw-l10n')
-rw-r--r--chinese/auto-tw-l10n/Makefile15
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>