diff options
author | ahze <ahze@FreeBSD.org> | 2005-07-08 06:53:32 +0000 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-07-08 06:53:32 +0000 |
commit | 77c35270955b1bba24afba6f6fbf7fbe984c562f (patch) | |
tree | 13e85d2519457a973b8bd4393536b2fc1978c77f /chinese/firefox-zh_CN | |
parent | 077a5ae1d2f49c98ad945e458fca5755144bc929 (diff) | |
download | FreeBSD-ports-77c35270955b1bba24afba6f6fbf7fbe984c562f.zip FreeBSD-ports-77c35270955b1bba24afba6f6fbf7fbe984c562f.tar.gz |
Add firefox-zh_CN 1.0.4, firefox Simplified Chinese(zh-CN) Language
Pack.
PR: ports/83049
Submitted by: chinsan <chinsan.tw@gmail.com>
Diffstat (limited to 'chinese/firefox-zh_CN')
-rw-r--r-- | chinese/firefox-zh_CN/Makefile | 70 | ||||
-rw-r--r-- | chinese/firefox-zh_CN/distinfo | 2 | ||||
-rw-r--r-- | chinese/firefox-zh_CN/files/installed-chrome.txt | 45 | ||||
-rw-r--r-- | chinese/firefox-zh_CN/pkg-descr | 7 | ||||
-rw-r--r-- | chinese/firefox-zh_CN/pkg-message | 10 | ||||
-rw-r--r-- | chinese/firefox-zh_CN/pkg-plist | 9 |
6 files changed, 143 insertions, 0 deletions
diff --git a/chinese/firefox-zh_CN/Makefile b/chinese/firefox-zh_CN/Makefile new file mode 100644 index 0000000..7730424 --- /dev/null +++ b/chinese/firefox-zh_CN/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: zh-firefox-zh_CN +# 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_CN +DISTNAME= zh-CN +EXTRACT_SUFX= .xpi + +# Maintainership available: drop me a line if interested :p +MAINTAINER= chinsan.tw@gmail.com +COMMENT= Firefox Simplified Chinese(zh-CN) Language Pack + +BUILD_DEPENDS= ${X11BASE}/lib/${FIREFOX}/regxpcom:${PORTSDIR}/www/${FIREFOX} +RUN_DEPENDS= ${FIREFOX}:${PORTSDIR}/www/${FIREFOX} + +USE_X_PREFIX= yes +USE_ZIP= yes +NO_BUILD= 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> + +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_CN/distinfo b/chinese/firefox-zh_CN/distinfo new file mode 100644 index 0000000..c573ed7 --- /dev/null +++ b/chinese/firefox-zh_CN/distinfo @@ -0,0 +1,2 @@ +MD5 (zh-CN.xpi) = c6025c90aaa6ae5b555992f46f74085c +SIZE (zh-CN.xpi) = 126728 diff --git a/chinese/firefox-zh_CN/files/installed-chrome.txt b/chinese/firefox-zh_CN/files/installed-chrome.txt new file mode 100644 index 0000000..9791179 --- /dev/null +++ b/chinese/firefox-zh_CN/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-CN.jar!/locale/global/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/global-region/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/global-platform/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/necko/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/mozapps/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/passwordmgr/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/pippki/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/pipnss/ +content,install,url,jar:resource:/chrome/help.jar!/content/help/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/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-CN.jar!/locale/browser/ +locale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/browser-region/ +locale,install,url,jar:resource:/chrome/zh-CN.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-CN +locale,install,select,CN diff --git a/chinese/firefox-zh_CN/pkg-descr b/chinese/firefox-zh_CN/pkg-descr new file mode 100644 index 0000000..5165af6 --- /dev/null +++ b/chinese/firefox-zh_CN/pkg-descr @@ -0,0 +1,7 @@ +Mozilla Firefox is an open-source application suite for web browsing, +IRC chat, and more. + +Firefox Simplified Chinese (zh-CN) Language Pack provides Simplified +Chinese localized resource for Firefox. + +WWW: www.mozilla.net.cn diff --git a/chinese/firefox-zh_CN/pkg-message b/chinese/firefox-zh_CN/pkg-message new file mode 100644 index 0000000..835adc4 --- /dev/null +++ b/chinese/firefox-zh_CN/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_CN/pkg-plist b/chinese/firefox-zh_CN/pkg-plist new file mode 100644 index 0000000..b9136d5 --- /dev/null +++ b/chinese/firefox-zh_CN/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-CN.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 |