diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2012-10-09 04:51:58 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-10-09 04:51:58 +0000 |
commit | 5b9883676a27ac1c4ad26cee63b8826fbd5d46a0 (patch) | |
tree | ba6a6037c4a34740c1a54339bbeb919d0ec60bdc | |
parent | 63baaad84b66594e83308e662bf0766ce24809b6 (diff) |
Notes
-rw-r--r-- | chinese/auto-tw-l10n/Makefile | 23 | ||||
-rw-r--r-- | chinese/auto-tw-l10n/files/patch-make.conf.in | 24 | ||||
-rw-r--r-- | chinese/auto-tw-l10n/files/pkg-install.in | 30 |
3 files changed, 30 insertions, 47 deletions
diff --git a/chinese/auto-tw-l10n/Makefile b/chinese/auto-tw-l10n/Makefile index 50a6e10e2c80..abcc90c089f9 100644 --- a/chinese/auto-tw-l10n/Makefile +++ b/chinese/auto-tw-l10n/Makefile @@ -1,35 +1,24 @@ -# New ports collection makefile for: zh-auto-tw-l10n -# Date created: 7 Oct 2000 -# Whom: "Michael C . Wu" <keichii@iteration.net> -# +# Created by: Michael C . Wu <keichii@iteration.net> # $FreeBSD$ -# PORTNAME= auto-tw-l10n PORTVERSION= 1.13 +PORTREVISION= 1 CATEGORIES= chinese MASTER_SITES= LOCAL/sunpoet MAINTAINER= ports@FreeBSD.org -COMMENT= The automatic localization for Traditional Chinese zh_TW.UTF-8 locale - -RUN_DEPENDS= ${FASTEST_CVSUP}:${PORTSDIR}/sysutils/fastest_cvsup +COMMENT= Automatic localization for Traditional Chinese locale NO_BUILD= yes USE_XZ= yes -PKGINSTALL= ${WRKDIR}/pkg-install 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} - -FASTEST_CVSUP?= ${LOCALBASE}/bin/fastest_cvsup -ZONE?= tw +SUB_FILES= pkg-message pre-install: - @${SH} ${PKGINSTALL} - @${FIND} ${WRKSRC} -name "*.in" -delete + @${FIND} ${WRKSRC} -name "*.orig" -delete + @${MV} ${WRKSRC}/make.conf.in ${WRKSRC}/make.conf do-install: ${MKDIR} ${PREFIX}/share/skel/zh_TW.UTF-8/ diff --git a/chinese/auto-tw-l10n/files/patch-make.conf.in b/chinese/auto-tw-l10n/files/patch-make.conf.in new file mode 100644 index 000000000000..34aca79b094d --- /dev/null +++ b/chinese/auto-tw-l10n/files/patch-make.conf.in @@ -0,0 +1,24 @@ +--- make.conf.in.orig 2012-10-09 12:22:09.000000000 +0800 ++++ make.conf.in 2012-10-09 12:24:57.000000000 +0800 +@@ -30,21 +30,6 @@ + # CPUTYPE?=itanium2 + + # +-# SUPHOST 代表要到哪台 CVSup Server,請改成離你比較近(快)的 Server。 +-# +-SUPHOST= %%SERVER1%% +-SUP_UPDATE= yes +-SUP= `which csup` +-SUPFLAGS= -L 2 +- +-# +-# 假設你是用 -STABLE,也就是 stable-supfile +-# +-SUPFILE= /usr/share/examples/cvsup/stable-supfile +-PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile +-DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile +- +-# + # 設定國內的 distfiles mirror sites + MASTER_SITE_BACKUP?= \ + http://%%SERVER1%%/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\ diff --git a/chinese/auto-tw-l10n/files/pkg-install.in b/chinese/auto-tw-l10n/files/pkg-install.in deleted file mode 100644 index 79531aa64385..000000000000 --- a/chinese/auto-tw-l10n/files/pkg-install.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# Date created: 20005/08/08 -# Whom: chinsan (<chinsan.tw@gmailc.com>) -# -# Find the fastest cvsup server -# -# $FreeBSD$ -# - -umask 022 -PATH=/bin:/usr/bin:/usr/local/bin - -PREFIX=%%PREFIX%% -SOURCE_DIR=%%SOURCE_DIR%% -FASTEST_CVSUP=%%FASTEST_CVSUP%% -ZONE=%%ZONE%% -TMPFILE=%%WRKDIR%%/fastest_cvsup.result - -echo "===> Detecting the fastest cvsup server..." -${FASTEST_CVSUP} -c ${ZONE} > ${TMPFILE} - -SERVER1=`grep "1st" ${TMPFILE} | awk '{print $3}'` -SERVER2=`grep "2nd" ${TMPFILE} | awk '{print $3}'` -SERVER3=`grep "3rd" ${TMPFILE} | awk '{print $3}'` - -sed -e "s/%%SERVER1%%/$SERVER1/; s/%%SERVER2%%/$SERVER2/; s/%%SERVER3%%/$SERVER3/" \ - < ${SOURCE_DIR}/make.conf.in > ${SOURCE_DIR}/make.conf - -exit 0 |