git: 5dd70ed34a54 - main - japanese/anthy-unicode: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Dec 2024 07:53:47 UTC
The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=5dd70ed34a54a254b26195b18cd90adba69e5c12 commit 5dd70ed34a54a254b26195b18cd90adba69e5c12 Author: MANTANI Nobutaka <nobutaka@FreeBSD.org> AuthorDate: 2024-12-01 07:32:13 +0000 Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org> CommitDate: 2024-12-01 07:53:25 +0000 japanese/anthy-unicode: Add new port Anthy Unicode is a library for Japanese text input. It is a fork of Anthy. PR: 282941 Reported by: mew14930xvi@inbox.lv --- japanese/Makefile | 1 + japanese/anthy-unicode/Makefile | 33 +++++++++++ japanese/anthy-unicode/distinfo | 3 + japanese/anthy-unicode/files/patch-doc_ELISP | 83 ++++++++++++++++++++++++++++ japanese/anthy-unicode/pkg-descr | 10 ++++ japanese/anthy-unicode/pkg-message | 11 ++++ japanese/anthy-unicode/pkg-plist | 32 +++++++++++ japanese/anthy/Makefile | 2 + 8 files changed, 175 insertions(+) diff --git a/japanese/Makefile b/japanese/Makefile index 4e240a0c5ea0..3f0b3aaf212e 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -14,6 +14,7 @@ SUBDIR += alias-fonts SUBDIR += another-htmllint SUBDIR += anthy + SUBDIR += anthy-unicode SUBDIR += aobook SUBDIR += bible_names-fpw SUBDIR += boiled-mozc diff --git a/japanese/anthy-unicode/Makefile b/japanese/anthy-unicode/Makefile new file mode 100644 index 000000000000..fda11f8d7773 --- /dev/null +++ b/japanese/anthy-unicode/Makefile @@ -0,0 +1,33 @@ +PORTNAME= anthy-unicode +DISTVERSION= 1.0.0.20240502 +CATEGORIES= japanese + +MAINTAINER= mew14930xvi@inbox.lv +COMMENT= Library for Japanese text input + +LICENSE= GPLv2 LGPL21 +LICENSE_COMB= multi +LICENSE_FILE_GPLv2= ${WRKSRC}/alt-cannadic/COPYING +LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING + +USES= autoreconf libtool pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= fujiwarat + +USE_LDCONFIG= yes + +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip + +CONFLICTS_INSTALL= ja-anthy + +ELISPDIR= share/emacs/site-lisp/anthy-unicode +PLIST_SUB= ELISPDIR=${ELISPDIR} + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR} + ${INSTALL_DATA} ${WRKSRC}/src-util/*.el ${STAGEDIR}${PREFIX}/${ELISPDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/japanese/anthy-unicode/distinfo b/japanese/anthy-unicode/distinfo new file mode 100644 index 000000000000..4dc265a3b5c7 --- /dev/null +++ b/japanese/anthy-unicode/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1732415413 +SHA256 (fujiwarat-anthy-unicode-1.0.0.20240502_GH0.tar.gz) = 1aa66057864a0427e609c3388bbb688002878efdb76e38f2eaa104f47351efea +SIZE (fujiwarat-anthy-unicode-1.0.0.20240502_GH0.tar.gz) = 4850212 diff --git a/japanese/anthy-unicode/files/patch-doc_ELISP b/japanese/anthy-unicode/files/patch-doc_ELISP new file mode 100644 index 000000000000..5f08c8f58975 --- /dev/null +++ b/japanese/anthy-unicode/files/patch-doc_ELISP @@ -0,0 +1,83 @@ +--- doc/ELISP.orig 2024-11-24 00:02:10 UTC ++++ doc/ELISP +@@ -1,6 +1,6 @@ This document is written in Japanese. + This document is written in Japanese. + +-EmacsからAnthyの各機能を用いる方法を記述したドキュメントです ++EmacsからAnthy-unicodeの各機能を用いる方法を記述したドキュメントです + + + (1)ソフトウェアの構成 +@@ -14,7 +14,7 @@ EmacsからAnthyの各機能を用いる方法を記 + + + (1)ソフトウェアの構成 +- Anthyのemacs対応は日本語入力部と個人辞書の管理の ++ Anthy-unicodeのemacs対応は日本語入力部と個人辞書の管理の + 二つの部分で構成されています。 + どちらの部分もelispで記述されたフロントエンドから + コマンドを起動して、パイプで通信することによって +@@ -24,24 +24,24 @@ EmacsからAnthyの各機能を用いる方法を記 + + + (2)使いはじめるために +- *まずAnthyを通常にインストールしてください。 ++ *まずAnthy-unicodeを通常にインストールしてください。 + *次にemacs lispをロードする設定をします。 + 一般的には ~/.emacs に +- (load-library "anthy") ++ (load-library "anthy-unicode") + という行を追加します +- *そして使用するinput-methodとしてAnthyを選択します ++ *そして使用するinput-methodとしてAnthy-unicodeを選択します + これも一般的には ~/.emacs に +- (setq default-input-method 'japanese-anthy) ++ (setq default-input-method 'japanese-anthy-unicode) + という行を追加することによって行います + *emacsのインストールされている場所とanthyの + インストールされている場所が異なる場合には + ~/.emacs に下記の行を追加してください + (setq load-path +- (cons "/usr/local/share/emacs/site-lisp/anthy/" load-path)) ++ (cons "/usr/local/share/emacs/site-lisp/anthy-unicode/" load-path)) + emacsをインストールした先のprefixとanthyをインストールした先のprefixが + 違う場合は + ~/.emacs に下記の行を追加してください +- (load-file "/usr/local/share/emacs/site-lisp/anthy/leim-list.el") ++ (load-file "/usr/local/share/emacs/site-lisp/anthy-unicode/leim-list.el") + + + (3)日本語入力の方法 +@@ -84,22 +84,22 @@ EmacsからAnthyの各機能を用いる方法を記 + ~/.emacsに追加する内容の説明です + 日本語をデフォルトにする + (set-language-environment "Japanese") +- anthy.el をロードできるようにする +- (push "/usr/local/share/emacs/site-lisp/anthy/" load-path) +- anthy.elをロードする +- (load-library "anthy") +- japanese-anthy をデフォルトのinput-methodにする +- (setq default-input-method 'japanese-anthy) ++ anthy-unicode.el をロードできるようにする ++ (push "/usr/local/share/emacs/site-lisp/anthy-unicode/" load-path) ++ anthy-unicode.elをロードする ++ (load-library "anthy-unicode") ++ japanese-anthy-unicode をデフォルトのinput-methodにする ++ (setq default-input-method 'japanese-anthy-unicode) + + + + (6)技術的な詳細 +- *src-util/anthy.elがemacs用のanthyのフロントエンドです。 +- *src-util/anthy-dic.elがemacs用のanthyのフロントエンドです。 ++ *src-util/anthy-unicode.elがemacs用のanthy-unicodeのフロントエンドです。 ++ *src-util/anthy-unicode-dic.elがemacs用のanthy-unicodeのフロントエンドです。 + *emacsのsite-lispのディレクトリにインストールされます。 + *emacs20.7などで動作します。 + *leimのAPIにも準拠しています。 +- *anthy.el は同梱されているanthy-agentというコマンドを起動して ++ *anthy-unicode.el は同梱されているanthy-agent-unicodeというコマンドを起動して + パイプで通信をすることによって変換の動作を行います。 +- *anthy-dic.el は同梱されているanthy-dic-toolというコマンドを ++ *anthy-unicode-dic.el は同梱されているanthy-dic-tool-unicodeというコマンドを + 起動してパイプで通信を行うことによって、個人辞書にアクセスします。 diff --git a/japanese/anthy-unicode/pkg-descr b/japanese/anthy-unicode/pkg-descr new file mode 100644 index 000000000000..7cc313af449f --- /dev/null +++ b/japanese/anthy-unicode/pkg-descr @@ -0,0 +1,10 @@ +Anthy is a japanese input method library that can be used from many setups. + +Anthy Unicode is another Anthy project forked from Anthy since Anthy is no +longer maintained. + +Anthy Unicode's purposes are: +1. Convert internal codes from EUC-JP to UTF-8 +2. Migrate the user fiels from $HOME/.anthy to $XDG_CONFIG_HOME/anthy +3. Maintain new eras +4. Enhance th word conversions diff --git a/japanese/anthy-unicode/pkg-message b/japanese/anthy-unicode/pkg-message new file mode 100644 index 000000000000..cc4965c3ca02 --- /dev/null +++ b/japanese/anthy-unicode/pkg-message @@ -0,0 +1,11 @@ +[ +{ type: install + message: <<EOM +To activate anthy-unicode, you will need to add the following lines to +your ~/.emacs: + +(set-language-environment "japanese") +(setq default-input-method "japanese-anthy-unicode") +EOM +} +] diff --git a/japanese/anthy-unicode/pkg-plist b/japanese/anthy-unicode/pkg-plist new file mode 100644 index 000000000000..9b79c58b90c0 --- /dev/null +++ b/japanese/anthy-unicode/pkg-plist @@ -0,0 +1,32 @@ +bin/anthy-agent-unicode +bin/anthy-dic-tool-unicode +bin/anthy-morphological-analyzer-unicode +%%ETCDIR%%.conf +include/anthy-unicode-1.0/anthy/anthy.h +include/anthy-unicode-1.0/anthy/dicutil.h +include/anthy-unicode-1.0/anthy/input.h +lib/libanthy-unicode.a +lib/libanthy-unicode.so +lib/libanthy-unicode.so.0 +lib/libanthy-unicode.so.0.1.0 +lib/libanthydic-unicode.a +lib/libanthydic-unicode.so +lib/libanthydic-unicode.so.0 +lib/libanthydic-unicode.so.0.1.0 +lib/libanthyinput-unicode.a +lib/libanthyinput-unicode.so +lib/libanthyinput-unicode.so.0 +lib/libanthyinput-unicode.so.0.0.0 +libdata/pkgconfig/anthy-unicode.pc +%%DATADIR%%/anthy.dic +%%DATADIR%%/dic-tool-usage.txt +%%DATADIR%%/typetab +%%DATADIR%%/zipcode.t +%%ELISPDIR%%/anthy-unicode-azik.el +%%ELISPDIR%%/anthy-unicode-conf.el +%%ELISPDIR%%/anthy-unicode-dic.el +%%ELISPDIR%%/anthy-unicode-isearch.el +%%ELISPDIR%%/anthy-unicode-kyuri.el +%%ELISPDIR%%/anthy-unicode.el +%%ELISPDIR%%/leim-list.el +%%DOCSDIR%%/ELISP diff --git a/japanese/anthy/Makefile b/japanese/anthy/Makefile index 54fe36bbf40a..e0d0270c3b04 100644 --- a/japanese/anthy/Makefile +++ b/japanese/anthy/Makefile @@ -25,6 +25,8 @@ DOCSDIR= ${PREFIX}/share/doc/ja/anthy ELISPDIR= share/emacs/site-lisp/anthy PLIST_SUB= ELISPDIR=${ELISPDIR} +CONFLICTS_INSTALL= ja-anthy-unicode + OPTIONS_DEFINE= ODIC GSKKDIC DOCS ODIC_DESC= Okinawa Dictionary