Date:2010-12-14 22:07:03 (13 years 3 months ago)
Author:David Kühling
Commit:f32d4c4d0830ef37a8fd2fcc047b1569bb115762
Message:an alternative, smaller, japanese input dictionary for Emacs

Files: emacs-ja-dic-m/Makefile (1 diff)

Change Details

emacs-ja-dic-m/Makefile
1#
2# Copyright (C) David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# License GPLv2 or later.
5#
6# Converts and installs SKKDIC-JISYO-M for use with Emacs' japanese input
7# method.
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=emacs-ja-dic-m
12PKG_VERSION:=1.0
13PKG_RELEASE:=1
14PKG_SOURCE:=SKK-JISYO.M.gz
15PKG_SOURCE_URL:=http://openlab.ring.gr.jp/skk/dic/
16PKG_MD5SUM:=f7aa51134b25c5481daca8cb396b3964
17PKG_BUILD_DEPENDS:= emacs/host
18PKG_UNPACK = gzip -dc $(DL_DIR)/$(PKG_SOURCE) > $(PKG_BUILD_DIR)/ja-dic
19include $(INCLUDE_DIR)/package.mk
20
21BATCH_RUN_EMACS := cd $(PKG_BUILD_DIR) && emacs -batch --no-site-file --multibyte
22
23define Package/emacs-ja-dic-m
24  SUBMENU:=Emacs
25  SECTION:=utils
26  CATEGORY:=Utilities
27  TITLE:=Medium-size dictionary file for Emacs\' japanese input method
28  URL:=http://openlab.ring.gr.jp/skk/dic.html
29# SUBMENU:=Editors
30endef
31
32define Package/emacs-ja-dic-m/description
33 Medium-size japanese Kanji dictionary for use with Emacs\' japanese input
34 method. This dictionary is about a factor of 100 smaller than the ja-dic
35 dictionary that ships with Emacs. Use it to enable japanese input on
36 memory-constrained systems.
37endef
38
39define Build/Configure
40endef
41
42define Build/Compile
43    $(BATCH_RUN_EMACS) -l ja-dic-cnv -f batch-skkdic-convert "ja-dic"
44    $(BATCH_RUN_EMACS) -f batch-byte-compile "ja-dic.el"
45endef
46
47define Package/emacs-ja-dic-m/install
48    $(INSTALL_DIR) $(1)/usr/share/emacs/site-lisp/
49    $(INSTALL_DATA) $(PKG_BUILD_DIR)/ja-dic.elc $(1)/usr/share/emacs/site-lisp/
50endef
51
52$(eval $(call BuildPackage,emacs-ja-dic-m))
53
54
55# The following comments configure the Emacs editor. Just ignore them.
56# Local Variables:
57# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/emacs/compile -j2 V=99"
58# End:

Archive Download the corresponding diff file



interactive