summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2019-12-30 05:31:31 +0000
committerHiroki Sato <hrs@FreeBSD.org>2019-12-30 05:31:31 +0000
commitf00036adf3f1f7be8a43c96e56cae56433e93b4d (patch)
tree5fa54793ec8babbe40f6e4cb1793c499174b9a70 /japanese
parent- Use FONTPATHSPEC. (diff)
- Resurrect japanese/cannadic.
- Add LICENSE. - Update MASTER_SITES.
Notes
Notes: svn path=/head/; revision=521464
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/cannadic/Makefile37
-rw-r--r--japanese/cannadic/distinfo2
-rw-r--r--japanese/cannadic/files/README.FreeBSD.in45
-rw-r--r--japanese/cannadic/files/patch-dics.dir.gpl__canna6
-rw-r--r--japanese/cannadic/files/pkg-message.in8
-rw-r--r--japanese/cannadic/pkg-descr4
-rw-r--r--japanese/cannadic/pkg-plist4
8 files changed, 107 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index e6f12ce4ed3b..cbffc43464e4 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -24,6 +24,7 @@
SUBDIR += bugzilla50
SUBDIR += canna-lib
SUBDIR += canna-server
+ SUBDIR += cannadic
SUBDIR += cdrom2
SUBDIR += celrw
SUBDIR += chasen-base
diff --git a/japanese/cannadic/Makefile b/japanese/cannadic/Makefile
new file mode 100644
index 000000000000..5a2878e0631f
--- /dev/null
+++ b/japanese/cannadic/Makefile
@@ -0,0 +1,37 @@
+# Created by: TOGAWA Satoshi <toga@puyo.org>
+# $FreeBSD$
+
+PORTNAME= cannadic
+PORTVERSION= 0.95c
+PORTREVISION= 4
+CATEGORIES= japanese
+MASTER_SITES= LOCAL/hrs
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Canna dictionary containing a lot of words
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${LOCALBASE}/sbin/cannaserver:japanese/canna-server
+BUILD_DEPENDS= crxdic:japanese/canna-server
+
+ALL_TARGET= maindic
+SUB_FILES= README.FreeBSD pkg-message
+PORTDOCS= README.ja README.FreeBSD
+
+DICS= gcanna.cbd gcanna.cld gcannaf.ctd
+DICSFILE= dics.dir.gpl_canna
+DICDIR= share/canna/dic/canna
+OPTIONS_DEFINE= DOCS
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${DICDIR}
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} ${DICS} ${DICSFILE} ${STAGEDIR}${PREFIX}/${DICDIR}
+ ${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${WRKSRC}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/cannadic/distinfo b/japanese/cannadic/distinfo
new file mode 100644
index 000000000000..4387e4740d90
--- /dev/null
+++ b/japanese/cannadic/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cannadic-0.95c.tar.gz) = d477889aa54276eeb013f28f4f5a18c26baebbc5de28884421f086e1d38fdb04
+SIZE (cannadic-0.95c.tar.gz) = 1028308
diff --git a/japanese/cannadic/files/README.FreeBSD.in b/japanese/cannadic/files/README.FreeBSD.in
new file mode 100644
index 000000000000..582e2cb380ee
--- /dev/null
+++ b/japanese/cannadic/files/README.FreeBSD.in
@@ -0,0 +1,45 @@
+かんな辞書 FreeBSD ports インストールマニュアル
+
+このマニュアルは,かんな辞書を FreeBSD ports でインストールする場合に,
+手動で行わなければならないことを,かんな辞書のマニュアルから抜粋したものです.
+
+
+1) 辞書登録ファイルの %%PREFIX%%/share/canna/dic/canna/dics.dir に、
+ %%PREFIX%%/share/canna/dic/canna/dics.dir.gpl_canna の内容を追加します。
+
+# cd %%PREFIX%%/share/canna/dic/canna
+# cp dics.dir dics.dir.orig
+# cat dics.dir.gpl_canna >> dics.dir
+
+2) cannaserver を停止,起動します。
+
+(かんなサーバ停止)
+# %%PREFIX%%/etc/rc.d/canna stop
+
+(cannaserverが停止していることを確認してください。停止していなければ
+ killコマンドでプロセスを停止させてください)
+
+(かんなサーバ起動)
+# %%PREFIX%%/etc/rc.d/canna start
+
+3) ユーザ権限に戻って、ホームディレクトリに存在する各ユーザの .canna の
+ (use-dictionary ...) の部分に "gcanna" "gcannaf" の二行を付け足して
+ ください。抜粋するとこんな感じです。
+
+(use-dictionary
+ "gcanna" ← これを追加
+ "gcannaf" ← これを追加
+ ;;"iroha" ← 上位互換なので iroha はコメントアウトしてもかまいません
+ "fuzokugo"
+ "hojomwd"
+ "hojoswd"
+ :bushu "bushu"
+ :user "user"
+ )
+
+4) 最後に頻度辞書を作成します。既に同名のユーザ辞書がインストールされている
+ 場合、辞書を上書きするかどうか質問されます。必ず yes を選択してください。
+
+$ mkdic -fq gcanna
+Personal learning file of dictionary "gcanna" exists. Do you overwrite it ? (y/n)
+
diff --git a/japanese/cannadic/files/patch-dics.dir.gpl__canna b/japanese/cannadic/files/patch-dics.dir.gpl__canna
new file mode 100644
index 000000000000..4420bd9b6d8f
--- /dev/null
+++ b/japanese/cannadic/files/patch-dics.dir.gpl__canna
@@ -0,0 +1,6 @@
+--- dics.dir.gpl_canna.orig 2019-12-30 05:17:50 UTC
++++ dics.dir.gpl_canna
+@@ -0,0 +1,3 @@
++gcanna.cld(gcanna.mwd) -gcanna---
++gcanna.cbd(gcanna.mwd) -gcanna---
++gcannaf.ctd(.swd) -gcannaf---
diff --git a/japanese/cannadic/files/pkg-message.in b/japanese/cannadic/files/pkg-message.in
new file mode 100644
index 000000000000..b52e9edfd73a
--- /dev/null
+++ b/japanese/cannadic/files/pkg-message.in
@@ -0,0 +1,8 @@
+[
+{ type: install
+ message: <<EOM
+You should do set up after the installation.
+See %%PREFIX%%/share/doc/cannadic/README.FreeBSD
+EOM
+}
+]
diff --git a/japanese/cannadic/pkg-descr b/japanese/cannadic/pkg-descr
new file mode 100644
index 000000000000..b17f58e2a8e0
--- /dev/null
+++ b/japanese/cannadic/pkg-descr
@@ -0,0 +1,4 @@
+This is a canna dictionary that contains a lot of words.
+The words come from many dictionaries(FreeWnn, kakasi...).
+
+WWW: http://cannadic.oucrc.org/
diff --git a/japanese/cannadic/pkg-plist b/japanese/cannadic/pkg-plist
new file mode 100644
index 000000000000..e584c7baade7
--- /dev/null
+++ b/japanese/cannadic/pkg-plist
@@ -0,0 +1,4 @@
+@(bin,bin,664) share/canna/dic/canna/dics.dir.gpl_canna
+@(bin,bin,664) share/canna/dic/canna/gcanna.cld
+@(bin,bin,664) share/canna/dic/canna/gcanna.cbd
+@(bin,bin,664) share/canna/dic/canna/gcannaf.ctd