Date: Wed, 6 Jul 2005 08:21:20 +0800 (CST) From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: vanilla@FreeBSD.org Subject: ports/83038: [NEW PORT] chinese/firefox-zh_TW: Firefox Traditional Chinese(zh-TW) Language Pack Message-ID: <20050706002120.D94287301F@chinsan.twbbs.org> Resent-Message-ID: <200507060030.j660UBvU049082@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83038 >Category: ports >Synopsis: [NEW PORT] chinese/firefox-zh_TW: Firefox Traditional Chinese(zh-TW) Language Pack >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 06 00:30:11 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 5.3-RELEASE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: - This port is Firefox Traditional Chinese(zh-TW) Language Pack which adopt from Hung-Te Lin(aka. piaip)'s locale file Thanks. :) >How-To-Repeat: >Fix: --- firefox-zh_TW.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # firefox-zh_TW/ # firefox-zh_TW/files # firefox-zh_TW/files/installed-chrome.txt # firefox-zh_TW/Makefile # firefox-zh_TW/distinfo # firefox-zh_TW/pkg-descr # firefox-zh_TW/pkg-message # firefox-zh_TW/pkg-plist # echo c - firefox-zh_TW/ mkdir -p firefox-zh_TW/ > /dev/null 2>&1 echo c - firefox-zh_TW/files mkdir -p firefox-zh_TW/files > /dev/null 2>&1 echo x - firefox-zh_TW/files/installed-chrome.txt sed 's/^X//' >firefox-zh_TW/files/installed-chrome.txt << 'END-of-firefox-zh_TW/files/installed-chrome.txt' Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/necko/ Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/xbl-marquee/ Xcontent,install,url,jar:resource:/chrome/embed-sample.jar!/content/embed/ Xlocale,install,url,jar:resource:/chrome/embed-sample.jar!/locale/en-US/embed/ Xskin,install,url,jar:resource:/chrome/embed-sample.jar!/skin/classic/embed/ Xcontent,install,url,jar:resource:/chrome/pipnss.jar!/content/pipnss/ Xcontent,install,url,jar:resource:/chrome/pippki.jar!/content/pippki/ Xskin,install,select,classic/1.0 Xcontent,install,url,jar:resource:/chrome/toolkit.jar!/content/global/ Xcontent,install,url,jar:resource:/chrome/toolkit.jar!/content/global-platform/ Xcontent,install,url,jar:resource:/chrome/toolkit.jar!/content/global-region/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global-region/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/global-platform/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/necko/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/mozapps/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/passwordmgr/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/pippki/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/pipnss/ Xcontent,install,url,jar:resource:/chrome/help.jar!/content/help/ Xlocale,install,url,jar:resource:/chrome/help.jar!/locale/en-US/help/ Xcontent,install,url,jar:resource:/chrome/toolkit.jar!/content/passwordmgr/ Xcontent,install,url,jar:resource:/chrome/toolkit.jar!/content/mozapps/ Xskin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/communicator/ Xskin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/global/ Xskin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/mozapps/ Xskin,install,url,jar:resource:/chrome/help.jar!/skin/classic/help/ Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/cookie/ Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/autoconfig/ Xlocale,install,url,jar:resource:/chrome/en-US.jar!/locale/en-US/autoconfig/ Xcontent,install,url,jar:resource:/chrome/inspector.jar!/content/inspector/ Xlocale,install,url,jar:resource:/chrome/inspector.jar!/locale/en-US/inspector/ Xskin,install,url,jar:resource:/chrome/inspector.jar!/skin/classic/inspector/ Xskin,install,url,jar:resource:/chrome/inspector.jar!/skin/modern/inspector/ Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/p3p/ Xlocale,install,url,jar:resource:/chrome/en-US.jar!/locale/en-US/p3p/ Xcontent,install,url,jar:resource:/chrome/browser.jar!/content/browser/ Xcontent,install,url,jar:resource:/chrome/browser.jar!/content/browser-region/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/browser/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/browser-region/ Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/cookie/ Xcontent,install,url,jar:resource:/chrome/comm.jar!/content/communicator/ Xskin,install,url,jar:resource:/chrome/classic.jar!/skin/classic/browser/ Xlocale,install,select,zh-TW Xlocale,install,select,TW END-of-firefox-zh_TW/files/installed-chrome.txt echo x - firefox-zh_TW/Makefile sed 's/^X//' >firefox-zh_TW/Makefile << 'END-of-firefox-zh_TW/Makefile' X# New ports collection makefile for: zh-firefox-zh_TW X# Date created: 2005/06/25 X# Whom: chinsan <chinsan.tw@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= firefox XPORTVERSION= 1.0.4 XCATEGORIES= chinese www XMASTER_SITES= ${MASTER_SITE_MOZILLA} XMASTER_SITE_SUBDIR= ${PORTNAME}/releases/${PORTVERSION}/win32/xpi/ XPKGNAMESUFFIX= -zh_TW XDISTNAME= zh-TW XEXTRACT_SUFX= .xpi X X# Maintainership available: drop me a line if interested :p XMAINTAINER= chinsan.tw@gmail.com XCOMMENT= Firefox Traditional Chinese(zh-TW) Language Pack X XBUILD_DEPENDS= ${X11BASE}/lib/${FIREFOX}/regxpcom:${PORTSDIR}/www/${FIREFOX} XRUN_DEPENDS= ${FIREFOX}:${PORTSDIR}/www/${FIREFOX} X XUSE_X_PREFIX= yes XUSE_ZIP= yes XEXTRACT_BEFORE_ARGS= -qo X XFIREFOX= ${PORTNAME} XFIREFOX_HOME= ${PREFIX}/lib/${FIREFOX} XREGXPCOM= ${FIREFOX_HOME}/regxpcom XREGCHROME= ${FIREFOX_HOME}/regchrome XFIREFOX_BIN= ${FIREFOX_HOME}/${PORTNAME}-bin X XPLIST_SUB= FIREFOX=${FIREFOX} X X.include <bsd.port.pre.mk> X XLOCALENAME= zh_TW.UTF-8 X Xdo-build: X ${SED} -e "s^%%PREFIX%%^${PREFIX}^g" \ X -e "s^%%LOCALBASE%%^${LOCALBASE}^g" \ X -e "s^%%LOCALENAME%%^${LOCALENAME}^g" \ X -e "s^%%FIREFOX%%^${FIREFOX}^g" \ X ${FILESDIR}/firefox.sh > ${WRKDIR}/${FIREFOX} X Xdo-install: X echo "===> Backup setting files..." X (cd ${FIREFOX_HOME}/chrome; \ X ${MV} -f chrome.rdf chrome.rdf.orig; \ X ${MV} -f installed-chrome.txt installed-chrome.txt.orig) X X echo "===> Copying locale files..." X (cd ${WRKDIR}; ${TAR} -cf - chrome) | \ X ${TAR} -xf - -C ${FIREFOX_HOME} X X echo "===> Copying locale setting file..." X (cd ${FIREFOX_HOME}/chrome; \ X ${CP} installed-chrome.txt.orig installed-chrome.txt; \ X ${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt) X X echo "===> Cleaning Chrome's registry..." X ${RM} -rf ${FIREFOX_HOME}/chrome/overlayinfo X ${RM} -f ${FIREFOX_HOME}/chrome/*.rdf X ${MKDIR} ${FIREFOX_HOME}/chrome/overlayinfo X ${RM} -f ${FIREFOX_HOME}/component.reg X ${RM} -rf ${FIREFOX_HOME}/extensions X X echo "===> Building Chrome's registry..." X (cd ${FIREFOX_HOME} || exit 1 ; \ X ./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \ X ${REGXPCOM} || true ; \ X ./run-mozilla.sh ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. \ X ${REGCHROME} || true ; \ X ./run-mozilla.sh ${FIREFOX_BIN} -register ) X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-firefox-zh_TW/Makefile echo x - firefox-zh_TW/distinfo sed 's/^X//' >firefox-zh_TW/distinfo << 'END-of-firefox-zh_TW/distinfo' XMD5 (zh-TW.xpi) = 54a9ce2af80202d9c49392300125932b XSIZE (zh-TW.xpi) = 74015 END-of-firefox-zh_TW/distinfo echo x - firefox-zh_TW/pkg-descr sed 's/^X//' >firefox-zh_TW/pkg-descr << 'END-of-firefox-zh_TW/pkg-descr' XMozilla Firefox is an open-source application suite for web browsing, XIRC chat, and more. X XFirefox Traditional Chinese (zh-TW) Language Pack provides Traditional XChinese localized resource for Firefox. X XContributor: Hung-Te Lin(aka. piaip) X XWWW: http://moztw.org/tools/ END-of-firefox-zh_TW/pkg-descr echo x - firefox-zh_TW/pkg-message sed 's/^X//' >firefox-zh_TW/pkg-message << 'END-of-firefox-zh_TW/pkg-message' X******************************** XIf your XIM wouldn't work properly, try to make a file X X"${HOME}/.mozilla/firefox/${USER}/*.slt/user.js" X Xwith below content; X-- Xuser_pref("xim.input_style", "over-the-spot") X-- X******************************** END-of-firefox-zh_TW/pkg-message echo x - firefox-zh_TW/pkg-plist sed 's/^X//' >firefox-zh_TW/pkg-plist << 'END-of-firefox-zh_TW/pkg-plist' X@exec mv %D/bin/%%FIREFOX%% %D/bin/%%FIREFOX%%.orig X@exec mv %D/lib/%%FIREFOX%%/chrome/chrome.rdf %D/lib/%%FIREFOX%%/chrome/chrome.rdf.orig X@exec mv %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt.orig Xlib/%%FIREFOX%%/chrome/chrome.rdf Xlib/%%FIREFOX%%/chrome/installed-chrome.txt Xlib/%%FIREFOX%%/chrome/zh-TW.jar X@unexec mv %D/bin/%%FIREFOX%%.orig %D/bin/%%FIREFOX%% X@unexec mv %D/lib/%%FIREFOX%%/chrome/chrome.rdf.orig %D/lib/%%FIREFOX%%/chrome/chrome.rdf X@unexec mv %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt.orig %D/lib/%%FIREFOX%%/chrome/installed-chrome.txt END-of-firefox-zh_TW/pkg-plist exit --- firefox-zh_TW.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050706002120.D94287301F>