Root/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  DEPENDS:=+emacs
30# SUBMENU:=Editors
31endef
32
33define Package/emacs-ja-dic-m/description
34 Medium-size japanese Kanji dictionary for use with Emacs\' japanese input
35 method. This dictionary is about a factor of 100 smaller than the ja-dic
36 dictionary that ships with Emacs. Use it to enable japanese input on
37 memory-constrained systems.
38endef
39
40define Build/Configure
41endef
42
43define Build/Compile
44    $(BATCH_RUN_EMACS) -l ja-dic-cnv -f batch-skkdic-convert "ja-dic"
45    $(BATCH_RUN_EMACS) -f batch-byte-compile "ja-dic.el"
46endef
47
48define Package/emacs-ja-dic-m/install
49    $(INSTALL_DIR) $(1)/usr/share/emacs/site-lisp/ja-dic
50    $(INSTALL_DATA) $(PKG_BUILD_DIR)/ja-dic.elc $(1)/usr/share/emacs/site-lisp/ja-dic/
51endef
52
53$(eval $(call BuildPackage,emacs-ja-dic-m))
54
55
56# The following comments configure the Emacs editor. Just ignore them.
57# Local Variables:
58# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/emacs/compile -j2 V=99"
59# End:
60

Archive Download this file



interactive