aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-16 00:21:18 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-16 00:21:18 +0000
commit7dd9786921faa103422ba033823b7d118a174439 (patch)
tree0bb5ec7d7f3aef4dc301518eee17f918d5e4d854 /japanese
parent4725de1edfbf2d28f768ba4c967aa190c2832b1a (diff)
downloadports-7dd9786921faa103422ba033823b7d118a174439.tar.gz
ports-7dd9786921faa103422ba033823b7d118a174439.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-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
-rw-r--r--japanese/firefox-ja_JP/Makefile71
-rw-r--r--japanese/firefox-ja_JP/distinfo2
-rw-r--r--japanese/firefox-ja_JP/pkg-descr7
-rw-r--r--japanese/firefox-ja_JP/pkg-message10
-rw-r--r--japanese/firefox-ja_JP/pkg-plist36
11 files changed, 253 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 559a556437c2..9462721ecb26 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -84,6 +84,7 @@
SUBDIR += ewipe
SUBDIR += exmh2
SUBDIR += expect
+ SUBDIR += firefox-ja_JP
SUBDIR += flower-fpw
SUBDIR += foldoc-fpw
SUBDIR += freepwing
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
diff --git a/japanese/firefox-ja_JP/Makefile b/japanese/firefox-ja_JP/Makefile
new file mode 100644
index 000000000000..e1dd5ff929f6
--- /dev/null
+++ b/japanese/firefox-ja_JP/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_JP/distinfo b/japanese/firefox-ja_JP/distinfo
new file mode 100644
index 000000000000..c5a7818c2eb5
--- /dev/null
+++ b/japanese/firefox-ja_JP/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_JP/pkg-descr b/japanese/firefox-ja_JP/pkg-descr
new file mode 100644
index 000000000000..bab716b6e741
--- /dev/null
+++ b/japanese/firefox-ja_JP/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_JP/pkg-message b/japanese/firefox-ja_JP/pkg-message
new file mode 100644
index 000000000000..e58b920d2119
--- /dev/null
+++ b/japanese/firefox-ja_JP/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_JP/pkg-plist b/japanese/firefox-ja_JP/pkg-plist
new file mode 100644
index 000000000000..8b009a3acf52
--- /dev/null
+++ b/japanese/firefox-ja_JP/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