aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2016-10-03 23:40:32 +0800
committerume <ume@FreeBSD.org>2016-10-03 23:40:32 +0800
commit8b2830a1956f604ff97f24da5fd2e558531e512b (patch)
tree83070b9b1a93076743578e2edd0c304b820d9593 /japanese
parent252e7035c11a9141d96b914d346236b3e3d101c4 (diff)
downloadfreebsd-ports-gnome-8b2830a1956f604ff97f24da5fd2e558531e512b.tar.gz
freebsd-ports-gnome-8b2830a1956f604ff97f24da5fd2e558531e512b.tar.zst
freebsd-ports-gnome-8b2830a1956f604ff97f24da5fd2e558531e512b.zip
Add new port -- boiled-mozc.
boiled-mozc.el wraps("boil"s) mozc.el to offer modeless input style, where you can type a Romaji sequence without activating the Mozc input method and then just hit \M-o or \C-o to obtain its Hiragana and Kana-Kanji conversion, respectively.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/boiled-mozc/Makefile35
-rw-r--r--japanese/boiled-mozc/distinfo3
-rw-r--r--japanese/boiled-mozc/pkg-descr15
4 files changed, 54 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 5436b6800f15..473b8b9b66f7 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -20,6 +20,7 @@
SUBDIR += asterisk-sounds
SUBDIR += awffull
SUBDIR += bible_names-fpw
+ SUBDIR += boiled-mozc
SUBDIR += bookview
SUBDIR += bugzilla44
SUBDIR += bugzilla50
diff --git a/japanese/boiled-mozc/Makefile b/japanese/boiled-mozc/Makefile
new file mode 100644
index 000000000000..6bd4bb55dfb5
--- /dev/null
+++ b/japanese/boiled-mozc/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= boiled-mozc
+PORTVERSION= 0.7
+#PORTREVISION= 0
+CATEGORIES= japanese editors elisp
+
+MAINTAINER= ume@FreeBSD.org
+COMMENT= Wrapper to mozc.el that offers modeless ("boil"ed) input style
+
+LICENSE= BSD2CLAUSE
+
+RUN_DEPENDS= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/mozc/mozc.el.gz:japanese/mozc-el
+
+GH_ACCOUNT= tadanagao
+GH_TAGNAME= v${PORTVERSION}
+
+USE_GITHUB= yes
+USE_EMACS= yes
+
+PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}.el \
+ ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}.elc
+
+do-build:
+ @cd ${WRKSRC} && ${EMACS_CMD} -batch -q -no-site-file -no-init-file \
+ -f batch-byte-compile ${PORTNAME}.el
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.el \
+ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.elc \
+ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/boiled-mozc/distinfo b/japanese/boiled-mozc/distinfo
new file mode 100644
index 000000000000..662845baddd2
--- /dev/null
+++ b/japanese/boiled-mozc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1475505570
+SHA256 (tadanagao-boiled-mozc-0.7-v0.7_GH0.tar.gz) = 0b6f722d4d9d45857472961f37cf0ebfde50a53d17b0ce415d2f9bfb29a2b8ad
+SIZE (tadanagao-boiled-mozc-0.7-v0.7_GH0.tar.gz) = 4613
diff --git a/japanese/boiled-mozc/pkg-descr b/japanese/boiled-mozc/pkg-descr
new file mode 100644
index 000000000000..9658c641ea41
--- /dev/null
+++ b/japanese/boiled-mozc/pkg-descr
@@ -0,0 +1,15 @@
+boiled-mozc.el wraps("boil"s) mozc.el to offer modeless input style,
+where you can type a Romaji sequence without activating the Mozc input
+method and then just hit \M-o or \C-o to obtain its Hiragana and
+Kana-Kanji conversion, respectively.
+
+To use `boiled-mozc.el`, just add the following code into your `.emacs`:
+
+ (autoload 'boiled-mozc-rK-conv "boiled-mozc"
+ "Romaji to Kana-Kanji conversion" t)
+ (autoload 'boiled-mozc-rhkR-conv "boiled-mozc"
+ "Romaji to Hiragana conversion" t)
+ (global-set-key "\C-o" 'boiled-mozc-rK-conv)
+ (global-set-key "\M-o" 'boiled-mozc-rhkR-conv)
+
+WWW: https://github.com/tadanagao/boiled-mozc