treewide: fix licence typos
[feed/packages.git] / utils / joe / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 # changes by Vitaly Prosko <villy TA sft TOD ru>:
9 #
10 # - added new package joe-extra with all additional joe's stuff
11 #
12 # changes by Vitaly Prosko <villy TA sft TOD ru>:
13 #
14 # - updated for new build system rules
15 # - added static joerc config - no more defaults for native mode
16 # - got maintenance role
17 #
18
19 include $(TOPDIR)/rules.mk
20
21 PKG_NAME:=joe
22 PKG_VERSION:=4.6
23 PKG_RELEASE:=2
24
25 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
26 PKG_SOURCE_URL:=@SF/joe-editor
27 PKG_HASH:=495a0a61f26404070fe8a719d80406dc7f337623788e445b92a9f6de512ab9de
28
29 PKG_MAINTAINER:=Vitaly Protsko <villy@sft.ru>
30 PKG_LICENSE:=GPL-2.0
31 PKG_CPE_ID:=cpe:/a:joseph_allen:joe
32
33 include $(INCLUDE_DIR)/package.mk
34
35 define Package/joe
36 SECTION:=utils
37 CATEGORY:=Utilities
38 SUBMENU:=Editors
39 TITLE:=JOE - Joes own editor
40 URL:=https://sourceforge.net/projects/joe-editor/
41 DEPENDS:=+libncurses
42 endef
43
44 define Package/joe-extras
45 SECTION:=utils
46 CATEGORY:=Utilities
47 SUBMENU:=Editors
48 TITLE:=Extra data for JOE - Joes own editor
49 URL:=https://sourceforge.net/projects/joe-editor/
50 DEPENDS:=+joe
51 endef
52
53 define Package/joe/description
54 Joe is world-famous Wordstar like text editor, that also features
55 Emacs and Pico emulation
56 endef
57
58 define Package/joe-extras/description
59 Additional data for full Joe editor functionality
60 endef
61
62 define Package/joe/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/joe/joe $(1)/usr/bin/
65 $(INSTALL_DIR) $(1)/etc/joe
66 $(INSTALL_CONF) ./files/joerc $(1)/etc/joe/joerc
67 endef
68
69 define Package/joe-extras/install
70 $(INSTALL_DIR) $(1)/etc/joe
71 $(INSTALL_DIR) $(1)/usr/share/joe/{syntax,lang,charmaps,colors}
72 $(INSTALL_CONF) $(PKG_BUILD_DIR)/rc/{ftyperc,jicerc.ru,jmacsrc,jpicorc,jstarrc,rjoerc} $(1)/etc/joe/
73 $(INSTALL_DATA) $(PKG_BUILD_DIR)/syntax/*.jsf $(1)/usr/share/joe/syntax/
74 $(INSTALL_DATA) $(PKG_BUILD_DIR)/po/*.po $(1)/usr/share/joe/lang/
75 $(INSTALL_DATA) $(PKG_BUILD_DIR)/charmaps/klingon $(1)/usr/share/joe/charmaps/
76 $(INSTALL_DATA) $(PKG_BUILD_DIR)/colors/*.jcf $(1)/usr/share/joe/colors/
77 endef
78
79 define Package/joe/conffiles
80 /etc/joe/joerc
81 endef
82
83 define Package/joe-extras/conffiles
84 /etc/joe/ftype
85 /etc/joe/jicerc.ru
86 /etc/joe/jmacsrc
87 /etc/joe/jpicorc
88 /etc/joe/jstarrc
89 /etc/joe/rjoerc
90 endef
91
92 $(eval $(call BuildPackage,joe))
93 $(eval $(call BuildPackage,joe-extras))