aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/firefox-ja
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-16 08:21:18 +0800
committerpav <pav@FreeBSD.org>2005-07-16 08:21:18 +0800
commit4cbe7e01b210da10e3fe14554cb73c1454b1b55a (patch)
treef7909505ac9461ae36b8748c67f31317e12fc390 /japanese/firefox-ja
parentae74609b88cbddba934c5b0fa9a14131790c552d (diff)
downloadfreebsd-ports-gnome-4cbe7e01b210da10e3fe14554cb73c1454b1b55a.tar.gz
freebsd-ports-gnome-4cbe7e01b210da10e3fe14554cb73c1454b1b55a.tar.zst
freebsd-ports-gnome-4cbe7e01b210da10e3fe14554cb73c1454b1b55a.zip
Firefox Japanese (ja-JP) Language Pack
PR: ports/83527 Submitted by: chinsan <chinsan.tw@gmail.com>
Diffstat (limited to 'japanese/firefox-ja')
-rw-r--r--japanese/firefox-ja/Makefile71
-rw-r--r--japanese/firefox-ja/distinfo2
-rw-r--r--japanese/firefox-ja/pkg-descr7
-rw-r--r--japanese/firefox-ja/pkg-message10
-rw-r--r--japanese/firefox-ja/pkg-plist36
5 files changed, 126 insertions, 0 deletions
diff --git a/japanese/firefox-ja/Makefile b/japanese/firefox-ja/Makefile
new file mode 100644
index 000000000000..e1dd5ff929f6
--- /dev/null
+++ b/japanese/firefox-ja/Makefile
@@ -0,0 +1,71 @@
+# New ports collection makefile for: ja-firefox-ja_JP
+# Date created: 2005/07/16
+# Whom: chinsan <chinsan.tw@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= firefox
+PORTVERSION= 1.0.5
+CATEGORIES= japanese www
+MASTER_SITES= http://bbs.ilc.edu.tw/~chinsan/firefox/
+PKGNAMESUFFIX= -ja_JP
+DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}.${PORTVERSION}
+EXTRACT_SUFX= .xpi
+
+# Maintainership available: drop me a line if interested :p
+MAINTAINER= chinsan.tw@gmail.com
+COMMENT= Firefox Japanese(ja-JP) 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}; \
+ ${MV} -f browserconfig.properties browserconfig.properties.orig)
+ (cd ${FIREFOX_HOME}/defaults/pref; \
+ ${MV} -f firefox-l10n.js firefox-l10n.js.orig)
+ (cd ${FIREFOX_HOME}/defaults/profile; \
+ ${MV} -f bookmarks.html bookmarks.html.orig; \
+ ${MV} -f prefs.js prefs.js.orig)
+ (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 - *) | \
+ ${TAR} -xf - -C ${FIREFOX_HOME}
+
+ 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/japanese/firefox-ja/distinfo b/japanese/firefox-ja/distinfo
new file mode 100644
index 000000000000..c5a7818c2eb5
--- /dev/null
+++ b/japanese/firefox-ja/distinfo
@@ -0,0 +1,2 @@
+MD5 (firefox-ja_JP.1.0.5.xpi) = 5bd8c6208c75455c8983104150fde16c
+SIZE (firefox-ja_JP.1.0.5.xpi) = 178671
diff --git a/japanese/firefox-ja/pkg-descr b/japanese/firefox-ja/pkg-descr
new file mode 100644
index 000000000000..bab716b6e741
--- /dev/null
+++ b/japanese/firefox-ja/pkg-descr
@@ -0,0 +1,7 @@
+Mozilla Firefox is an open-source application suite for web browsing,
+IRC chat, and more.
+
+Firefox Japanese (ja-JP) Language Pack provides Japanese
+localized resource for Firefox.
+
+WWW: http://www.mozilla-japan.org/products/firefox/
diff --git a/japanese/firefox-ja/pkg-message b/japanese/firefox-ja/pkg-message
new file mode 100644
index 000000000000..e58b920d2119
--- /dev/null
+++ b/japanese/firefox-ja/pkg-message
@@ -0,0 +1,10 @@
+********************************
+If your XIM wouldn't work properly, try to make a file
+
+"${HOME}/.mozilla/firefox/*.default/prefs.js"
+
+with below content;
+--
+user_pref("xim.input_style", "over-the-spot")
+--
+********************************
diff --git a/japanese/firefox-ja/pkg-plist b/japanese/firefox-ja/pkg-plist
new file mode 100644
index 000000000000..8b009a3acf52
--- /dev/null
+++ b/japanese/firefox-ja/pkg-plist
@@ -0,0 +1,36 @@
+@exec mv %D/lib/%%FIREFOX%%/browserconfig.properties %D/lib/%%FIREFOX%%/browserconfig.properties.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
+@exec mv %D/lib/%%FIREFOX%%/defaults/pref/firefox-l10n.js %D/lib/%%FIREFOX%%/defaults/pref/firefox-l10n.js.orig
+@exec mv %D/lib/%%FIREFOX%%/defaults/profile/bookmarks.html %D/lib/%%FIREFOX%%/defaults/profile/bookmarks.html.orig
+@exec mv %D/lib/%%FIREFOX%%/defaults/profile/prefs.js %D/lib/%%FIREFOX%%/defaults/profile/prefs.js.orig
+lib/%%FIREFOX%%/browserconfig.properties
+lib/%%FIREFOX%%/chrome/chrome.rdf
+lib/%%FIREFOX%%/chrome/installed-chrome.txt
+lib/%%FIREFOX%%/chrome/ja-JP.jar
+lib/%%FIREFOX%%/defaults/pref/firefox-l10n.js
+lib/%%FIREFOX%%/defaults/profile/bookmarks.html
+lib/%%FIREFOX%%/searchplugins/FreeBSD_PR.png
+lib/%%FIREFOX%%/searchplugins/FreeBSD_PR.src
+lib/%%FIREFOX%%/searchplugins/amazon-ja.png
+lib/%%FIREFOX%%/searchplugins/amazon-ja.src
+lib/%%FIREFOX%%/searchplugins/google-ja.gif
+lib/%%FIREFOX%%/searchplugins/google-ja.src
+lib/%%FIREFOX%%/searchplugins/google_news.gif
+lib/%%FIREFOX%%/searchplugins/google_news.src
+lib/%%FIREFOX%%/searchplugins/kakaku.png
+lib/%%FIREFOX%%/searchplugins/kakaku.src
+lib/%%FIREFOX%%/searchplugins/mozillazine-ja.png
+lib/%%FIREFOX%%/searchplugins/mozillazine-ja.src
+lib/%%FIREFOX%%/searchplugins/wikipedia-ja.png
+lib/%%FIREFOX%%/searchplugins/wikipedia-ja.src
+lib/%%FIREFOX%%/searchplugins/wni.png
+lib/%%FIREFOX%%/searchplugins/wni.src
+lib/%%FIREFOX%%/searchplugins/yahoo-ja.png
+lib/%%FIREFOX%%/searchplugins/yahoo-ja.src
+@unexec mv %D/lib/%%FIREFOX%%/browserconfig.properties.orig %D/lib/%%FIREFOX%%/browserconfig.properties
+@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
+@unexec mv %D/lib/%%FIREFOX%%/defaults/pref/firefox-l10n.js.orig %D/lib/%%FIREFOX%%/defaults/pref/firefox-l10n.js
+@unexec mv %D/lib/%%FIREFOX%%/defaults/profile/bookmarks.html.orig %D/lib/%%FIREFOX%%/defaults/profile/bookmarks.html
+@unexec mv %D/lib/%%FIREFOX%%/defaults/profile/prefs.js.orig %D/lib/%%FIREFOX%%/defaults/profile/prefs.js