OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
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 | |
9 | include $(TOPDIR)/rules.mk |
10 | |
11 | PKG_NAME:=emacs-ja-dic-m |
12 | PKG_VERSION:=1.0 |
13 | PKG_RELEASE:=1 |
14 | PKG_SOURCE:=SKK-JISYO.M.gz |
15 | PKG_SOURCE_URL:=http://openlab.ring.gr.jp/skk/dic/ |
16 | PKG_MD5SUM:=f7aa51134b25c5481daca8cb396b3964 |
17 | PKG_BUILD_DEPENDS:= emacs/host |
18 | PKG_UNPACK = gzip -dc $(DL_DIR)/$(PKG_SOURCE) > $(PKG_BUILD_DIR)/ja-dic |
19 | include $(INCLUDE_DIR)/package.mk |
20 | |
21 | BATCH_RUN_EMACS := cd $(PKG_BUILD_DIR) && emacs -batch --no-site-file --multibyte |
22 | |
23 | define 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 |
31 | endef |
32 | |
33 | define 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. |
38 | endef |
39 | |
40 | define Build/Configure |
41 | endef |
42 | |
43 | define 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" |
46 | endef |
47 | |
48 | define 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/ |
51 | endef |
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 |