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 | |
| 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 | # SUBMENU:=Editors |
| 30 | endef |
| 31 | |
| 32 | define 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. |
| 37 | endef |
| 38 | |
| 39 | define Build/Configure |
| 40 | endef |
| 41 | |
| 42 | define 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" |
| 45 | endef |
| 46 | |
| 47 | define 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/ |
| 50 | endef |
| 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: |