You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.4 KiB

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