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