git: cbf70b455618 - main - japanese/tc: New port: Japanese direct input method environment for emacs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Sep 2026 14:55:06 UTC
The branch main has been updated by mce:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cbf70b4556186bdd12e8ca269fa273487e767f00
commit cbf70b4556186bdd12e8ca269fa273487e767f00
Author: Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-09-24 04:07:52 +0000
Commit: Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-09-25 14:54:12 +0000
japanese/tc: New port: Japanese direct input method environment for emacs
PR: 298813
Approved by: osa, fluffy (mentors, implicit)
---
japanese/Makefile | 1 +
japanese/tc/Makefile | 40 +++++++++++++++++++++++++++++++++++
japanese/tc/distinfo | 7 +++++++
japanese/tc/pkg-descr | 6 ++++++
japanese/tc/pkg-message | 14 +++++++++++++
japanese/tc/pkg-plist | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 123 insertions(+)
diff --git a/japanese/Makefile b/japanese/Makefile
index 10abdd2e60a9..bc1fbe8dade3 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -271,6 +271,7 @@
SUBDIR += srd-fpw-package
SUBDIR += sudachi
SUBDIR += suicavalue
+ SUBDIR += tc
SUBDIR += tdiary
SUBDIR += tegaki-zinnia-japanese
SUBDIR += tex-ptex
diff --git a/japanese/tc/Makefile b/japanese/tc/Makefile
new file mode 100644
index 000000000000..67b4b5c78684
--- /dev/null
+++ b/japanese/tc/Makefile
@@ -0,0 +1,40 @@
+PORTNAME= tc
+DISTVERSIONPREFIX= release-
+DISTVERSION= 2.3.1-148
+DISTVERSIONSUFFIX= -g5d84e84
+CATEGORIES= japanese elisp
+MASTER_SITES= https://github.com/naota/tc/raw/master/doc/
+DISTFILES= manual.pdf tc.info
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= mce@FreeBSD.org
+COMMENT= Japanese direct input method environment for emacs
+WWW= https://github.com/kanchoku/tc
+
+USE_GITHUB= yes
+GH_ACCOUNT= kanchoku
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+ELISPDIR= share/emacs/site-lisp/${PORTNAME}
+PLIST_SUB= ELISPDIR=${ELISPDIR}
+
+OPTIONS_DEFINE= DOCS
+
+post-extract:
+ cd ${DISTDIR}/${PORTNAME} && \
+ ${INSTALL_DATA} manual.pdf tc.info ${WRKSRC}
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "*.el tcode" \
+ ${STAGEDIR}${PREFIX}/${ELISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/tc.info ${STAGEDIR}${PREFIX}/share/info
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/manual.pdf ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/tc/distinfo b/japanese/tc/distinfo
new file mode 100644
index 000000000000..20c19cd89dfe
--- /dev/null
+++ b/japanese/tc/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1790207833
+SHA256 (tc/manual.pdf) = aa906e5fb536c9cd291cee80f503eefe1175531873b4ad2a1131eac56bc43f25
+SIZE (tc/manual.pdf) = 220072
+SHA256 (tc/tc.info) = 1f73b0aa7a996f0ac04b76ee99ba4a7a40cf9901a6aad4a5465fabcc5aabc419
+SIZE (tc/tc.info) = 109743
+SHA256 (tc/kanchoku-tc-release-2.3.1-148-g5d84e84_GH0.tar.gz) = 4aecfa05f23f50f216ddaf279396cf4ead825eaed1e0fa10a3ce6d3d0624ee55
+SIZE (tc/kanchoku-tc-release-2.3.1-148-g5d84e84_GH0.tar.gz) = 1260120
diff --git a/japanese/tc/pkg-descr b/japanese/tc/pkg-descr
new file mode 100644
index 000000000000..9882cb91ddfb
--- /dev/null
+++ b/japanese/tc/pkg-descr
@@ -0,0 +1,6 @@
+This package provides tc (T-code input environment for emacs). tc
+enables you to input Japanese characters with T-code or TUT-code.
+
+T-code is a Japanese input method that does NOT use Kana-to-Kanji
+conversion. You can input Kanji characters directly in the same way
+of inputting Hiragana. TUT-code is one of the T-code alternatives.
diff --git a/japanese/tc/pkg-message b/japanese/tc/pkg-message
new file mode 100644
index 000000000000..74f6acefbfd3
--- /dev/null
+++ b/japanese/tc/pkg-message
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+To activate tc, add the following lines to your Emacs configuration:
+
+(require 'tc-setup)
+
+After that, launch Emacs, run `M-x tcode-install` and then restart
+Emacs.
+
+The practice program EELLL can be run with 'M-x eelll'.
+EOM
+}
+]
diff --git a/japanese/tc/pkg-plist b/japanese/tc/pkg-plist
new file mode 100644
index 000000000000..6cd26723b331
--- /dev/null
+++ b/japanese/tc/pkg-plist
@@ -0,0 +1,55 @@
+%%PORTDOCS%%%%DOCSDIR%%/manual.pdf
+%%ELISPDIR%%/eelll.el
+%%ELISPDIR%%/tc-bushu.el
+%%ELISPDIR%%/tc-complete.el
+%%ELISPDIR%%/tc-help.el
+%%ELISPDIR%%/tc-image.el
+%%ELISPDIR%%/tc-inst.el
+%%ELISPDIR%%/tc-is22.el
+%%ELISPDIR%%/tc-iscommon.el
+%%ELISPDIR%%/tc-ishelper.el
+%%ELISPDIR%%/tc-ja-alnum.el
+%%ELISPDIR%%/tc-jiscode.el
+%%ELISPDIR%%/tc-mazegaki.el
+%%ELISPDIR%%/tc-mkmzdic.el
+%%ELISPDIR%%/tc-pre.el
+%%ELISPDIR%%/tc-setup.el
+%%ELISPDIR%%/tc-stat.el
+%%ELISPDIR%%/tc-sysdep.el
+%%ELISPDIR%%/tc-tbl.el
+%%ELISPDIR%%/tc-util.el
+%%ELISPDIR%%/tc.el
+%%ELISPDIR%%/tcode/EELLLTXT
+%%ELISPDIR%%/tcode/EELLLTXT.tut
+%%ELISPDIR%%/tcode/Makefile.am
+%%ELISPDIR%%/tcode/Makefile.in
+%%ELISPDIR%%/tcode/README
+%%ELISPDIR%%/tcode/bushu.expand
+%%ELISPDIR%%/tcode/bushu.rev
+%%ELISPDIR%%/tcode/greece.maz
+%%ELISPDIR%%/tcode/itaiji.maz
+%%ELISPDIR%%/tcode/jukujiku.maz
+%%ELISPDIR%%/tcode/mazegaki.dic
+%%ELISPDIR%%/tcode/mk-mzdic
+%%ELISPDIR%%/tcode/mkcertain.pl
+%%ELISPDIR%%/tcode/pd_kihon.yom
+%%ELISPDIR%%/tcode/step1.pl
+%%ELISPDIR%%/tcode/step2.pl
+%%ELISPDIR%%/tcode/symbol.rev
+%%ELISPDIR%%/tcode/t1200.dat
+%%ELISPDIR%%/tcode/t1353.dat
+%%ELISPDIR%%/tcode/t225.dat
+%%ELISPDIR%%/tcode/t300.dat
+%%ELISPDIR%%/tcode/t400.dat
+%%ELISPDIR%%/tcode/t450.dat
+%%ELISPDIR%%/tcode/t575.dat
+%%ELISPDIR%%/tcode/t675.dat
+%%ELISPDIR%%/tcode/t900.dat
+%%ELISPDIR%%/tcode/tcode.u
+%%ELISPDIR%%/try-etbl.el
+%%ELISPDIR%%/try-tbl.el
+%%ELISPDIR%%/ttc-ltbl.el
+%%ELISPDIR%%/ttc-rtbl.el
+%%ELISPDIR%%/ttc-tbl.el
+%%ELISPDIR%%/tutc-tbl.el
+share/info/tc.info