diff options
author | ahze <ahze@FreeBSD.org> | 2005-07-08 12:46:09 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-07-08 12:46:09 +0800 |
commit | 080991fcbddc4eb0e02f664601d6bd0b76d105c9 (patch) | |
tree | 756e5daabed7805939eccc9592e14d78865e3a10 /chinese | |
parent | a3228140c6fa627aa60b23e2c9c04c69af022f1e (diff) | |
download | freebsd-ports-gnome-080991fcbddc4eb0e02f664601d6bd0b76d105c9.tar.gz freebsd-ports-gnome-080991fcbddc4eb0e02f664601d6bd0b76d105c9.tar.zst freebsd-ports-gnome-080991fcbddc4eb0e02f664601d6bd0b76d105c9.zip |
Add chinese/firefox-zh_TW
Firefox Traditional Chinese(zh-TW) Language Pack
PR: ports/83048
Submitted by: chinsan <chinsan.tw@gmail.com>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/Makefile | 78 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/distinfo | 2 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/files/firefox.sh | 31 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/files/installed-chrome.txt | 45 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/pkg-descr | 9 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/pkg-message | 10 | ||||
-rw-r--r-- | chinese/firefox-zh_TW/pkg-plist | 9 |
8 files changed, 185 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 6b83904aa8ab..e3f3b7a4c6c4 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -42,6 +42,7 @@ SUBDIR += fcitx SUBDIR += firebird SUBDIR += fireflyttf + SUBDIR += firefox-zh_TW SUBDIR += fortunetw SUBDIR += gb2jis SUBDIR += gb2ps diff --git a/chinese/firefox-zh_TW/Makefile b/chinese/firefox-zh_TW/Makefile new file mode 100644 index 000000000000..0812f8b9313e --- /dev/null +++ b/chinese/firefox-zh_TW/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: zh-firefox-zh_TW +# Date created: 2005/06/25 +# Whom: chinsan <chinsan.tw@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= firefox +PORTVERSION= 1.0.4 +CATEGORIES= chinese www +MASTER_SITES= ${MASTER_SITE_MOZILLA} +MASTER_SITE_SUBDIR= ${PORTNAME}/releases/${PORTVERSION}/win32/xpi/ +PKGNAMESUFFIX= -zh_TW +DISTNAME= zh-TW +EXTRACT_SUFX= .xpi + +# Maintainership available: drop me a line if interested :p +MAINTAINER= chinsan.tw@gmail.com +COMMENT= Firefox Traditional Chinese(zh-TW) Language Pack + +BUILD_DEPENDS= ${X11BASE}/lib/${FIREFOX}/regxpcom:${PORTSDIR}/www/${FIREFOX} +RUN_DEPENDS= ${FIREFOX}:${PORTSDIR}/www/${FIREFOX} + +USE_X_PREFIX= yes +USE_ZIP= yes +EXTRACT_BEFORE_ARGS= -qo + +FIREFOX= ${PORTNAME} +FIREFOX_HOME= ${PREFIX}/lib/${FIREFOX} +REGXPCOM= ${FIREFOX_HOME}/regxpcom +REGCHROME= ${FIREFOX_HOME}/regchrome +FIREFOX_BIN= ${FIREFOX_HOME}/${PORTNAME}-bin + +PLIST_SUB= FIREFOX=${FIREFOX} + +.include <bsd.port.pre.mk> + +LOCALENAME= zh_TW.UTF-8 + +do-build: + ${SED} -e "s^%%PREFIX%%^${PREFIX}^g" \ + -e "s^%%LOCALBASE%%^${LOCALBASE}^g" \ + -e "s^%%LOCALENAME%%^${LOCALENAME}^g" \ + -e "s^%%FIREFOX%%^${FIREFOX}^g" \ + ${FILESDIR}/firefox.sh > ${WRKDIR}/${FIREFOX} + +do-install: + echo "===> Backup setting files..." + (cd ${FIREFOX_HOME}/chrome; \ + ${MV} -f chrome.rdf chrome.rdf.orig; \ + ${MV} -f installed-chrome.txt installed-chrome.txt.orig) + + echo "===> Copying locale files..." + (cd ${WRKDIR}; ${TAR} -cf - chrome) | \ + ${TAR} -xf - -C ${FIREFOX_HOME} + + echo "===> Copying locale setting file..." + (cd ${FIREFOX_HOME}/chrome; \ + ${CP} installed-chrome.txt.orig installed-chrome.txt; \ + ${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt) + + echo "===> Cleaning Chrome's registry..." + ${RM} -rf ${FIREFOX_HOME}/chrome/overlayinfo + ${RM} -f ${FIREFOX_HOME}/chrome/*.rdf + ${MKDIR} ${FIREFOX_HOME}/chrome/overlayinfo + ${RM} -f ${FIREFOX_HOME}/component.reg + ${RM} -rf ${FIREFOX_HOME}/extensions + + echo "===> Building Chrome's registry..." + (cd ${FIREFOX_HOME} || exit 1 ; \ + ./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \ + ${REGXPCOM} || true ; \ + ./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \ + ${REGCHROME} || true ; \ + ./run-mozilla.sh ${FIREFOX_BIN} -register ) + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/chinese/firefox-zh_TW/distinfo b/chinese/firefox-zh_TW/distinfo new file mode 100644 index 000000000000..bfdf7369a861 --- /dev/null +++ b/chinese/firefox-zh_TW/distinfo @@ -0,0 +1,2 @@ +MD5 (zh-TW.xpi) = 54a9ce2af80202d9c49392300125932b +SIZE (zh-TW.xpi) = 74015 diff --git a/chinese/firefox-zh_TW/files/firefox.sh b/chinese/firefox-zh_TW/files/firefox.sh new file mode 100644 index 000000000000..19e957fe292f --- /dev/null +++ b/chinese/firefox-zh_TW/files/firefox.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +LANG=%%LOCALENAME%%; export LANG +#XMODIFIERS=@im=xcin; export XMODIFIERS +#LD_PRELOAD=%%LOCALBASE%%/lib/libflashplayer.so.1; export LD_PRELOAD + +FIREFOX_DIR="%%PREFIX%%/lib/%%FIREFOX%%" +FIREFOX_EXEC="firefox-bin" +LOCATION='new-tab' + +cd $FIREFOX_DIR || exit 1 + +case $1 in + -mail) + REMOTE_COMMAND="xfeDoCommand (openInbox)" + ;; + -*) + exec ./$FIREFOX_EXEC "$@" + ;; + *) + REMOTE_COMMAND="openURL($@, $LOCATION)" + ;; +esac + +# process found +./$FIREFOX_EXEC -remote "ping()" && +./$FIREFOX_EXEC -remote "$REMOTE_COMMAND" && exit 0 + +# no existing process +exec ./$FIREFOX_EXEC "$@" + diff --git a/chinese/firefox-zh_TW/files/installed-chrome.txt b/chinese/firefox-zh_TW/files/installed-chrome.txt new file mode 100644 index 000000000000..c52bd8afb34a --- /dev/null +++ b/chinese/firefox-zh_TW/files/installed-chrome.txt @@ -0,0 +1,45 @@ +content,install,url,jar:resource:/chrome/comm.jar!/content/necko/ +content,install,url,jar:resource:/chrome/comm.jar!/content/xbl-marquee/ +content,install,url,jar:resource:/chrome/embed-sample.jar!/content/embed/ +locale,install,url,jar:resource:/chrome/embed-sample.jar!/locale/en-US/embed/ +skin,install,url,jar:resource:/chrome/embed-sample.jar!/skin/classic/embed/ +content,install,url,jar:resource:/chrome/pipnss.jar!/content/pipnss/ +content,install,url,jar:resource:/chrome/pippki.jar!/content/pippki/ +skin,install,select,classic/1.0 +content,install,url,jar:resource:/chrome/toolkit.jar!/content/global/ +content,install,url,jar:resource:/chrome/toolkit.jar!/content/global-platform/ +content,install,url,jar:resource:/chrome/toolkit.jar!/content/global-region/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global-region/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global-platform/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/necko/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/mozapps/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/passwordmgr/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/pippki/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/pipnss/ +content,install,url,jar:resource:/chrome/help.jar!/content/help/ +locale,install,url,jar:resource:/chrome/help.jar!/locale/en-US/help/ +content,install,url,jar:resource:/chrome/toolkit.jar!/content/passwordmgr/ +content,install,url,jar:resource:/chrome/toolkit.jar!/content/mozapps/ +skin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/communicator/ +skin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/global/ +skin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/mozapps/ +skin,install,url,jar:resource:/chrome/help.jar!/skin/classic/help/ +content,install,url,jar:resource:/chrome/comm.jar!/content/cookie/ +content,install,url,jar:resource:/chrome/comm.jar!/content/autoconfig/ +locale,install,url,jar:resource:/chrome/en-US.jar!/locale/en-US/autoconfig/ +content,install,url,jar:resource:/chrome/inspector.jar!/content/inspector/ +locale,install,url,jar:resource:/chrome/inspector.jar!/locale/en-US/inspector/ +skin,install,url,jar:resource:/chrome/inspector.jar!/skin/classic/inspector/ +skin,install,url,jar:resource:/chrome/inspector.jar!/skin/modern/inspector/ +content,install,url,jar:resource:/chrome/comm.jar!/content/p3p/ +locale,install,url,jar:resource:/chrome/en-US.jar!/locale/en-US/p3p/ +content,install,url,jar:resource:/chrome/browser.jar!/content/browser/ +content,install,url,jar:resource:/chrome/browser.jar!/content/browser-region/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/browser/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/browser-region/ +locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/cookie/ +content,install,url,jar:resource:/chrome/comm.jar!/content/communicator/ +skin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/browser/ +locale,install,select,zh-TW +locale,install,select,TW diff --git a/chinese/firefox-zh_TW/pkg-descr b/chinese/firefox-zh_TW/pkg-descr new file mode 100644 index 000000000000..384ce503c9e3 --- /dev/null +++ b/chinese/firefox-zh_TW/pkg-descr @@ -0,0 +1,9 @@ +Mozilla Firefox is an open-source application suite for web browsing, +IRC chat, and more. + +Firefox Traditional Chinese (zh-TW) Language Pack provides Traditional +Chinese localized resource for Firefox. + +Contributor: Hung-Te Lin(aka. piaip) + +WWW: http://moztw.org/tools/ diff --git a/chinese/firefox-zh_TW/pkg-message b/chinese/firefox-zh_TW/pkg-message new file mode 100644 index 000000000000..835adc41b831 --- /dev/null +++ b/chinese/firefox-zh_TW/pkg-message @@ -0,0 +1,10 @@ +******************************** +If your XIM wouldn't work properly, try to make a file + +"${HOME}/.mozilla/firefox/${USER}/*.slt/user.js" + +with below content; +-- +user_pref("xim.input_style", "over-the-spot") +-- +******************************** diff --git a/chinese/firefox-zh_TW/pkg-plist b/chinese/firefox-zh_TW/pkg-plist new file mode 100644 index 000000000000..0ebdbce5bff7 --- /dev/null +++ b/chinese/firefox-zh_TW/pkg-plist @@ -0,0 +1,9 @@ +@exec mv %D/bin/%%FIREFOX%% %D/bin/%%FIREFOX%%.orig +@exec mv %D/lib/%%FIREFOX%%/chrome/chrome.rdf %D/lib/%%FIREFOX%%/chrome/chrome.rdf.orig +@exec mv %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt.orig +lib/%%FIREFOX%%/chrome/chrome.rdf +lib/%%FIREFOX%%/chrome/installed-chrome.txt +lib/%%FIREFOX%%/chrome/zh-TW.jar +@unexec mv %D/bin/%%FIREFOX%%.orig %D/bin/%%FIREFOX%% +@unexec mv %D/lib/%%FIREFOX%%/chrome/chrome.rdf.orig %D/lib/%%FIREFOX%%/chrome/chrome.rdf +@unexec mv %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt.orig %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt |