Browse Source

vim: Add "fuller" package

The fuller package is built with --with-features=big and contains
the files that would normally live in /usr/share/vim/, including
syntax highlighting and colours.  This package supports truecolor
support in terminals.

Signed-off-by: Shane Peelar <lookatyouhacker@gmail.com>
lilik-openwrt-22.03
Shane Peelar 8 years ago
parent
commit
a5218a505c
1 changed files with 39 additions and 0 deletions
  1. +39
    -0
      utils/vim/Makefile

+ 39
- 0
utils/vim/Makefile View File

@ -41,6 +41,12 @@ define Package/vim-full
TITLE+= (Normal) TITLE+= (Normal)
endef endef
define Package/vim-fuller
$(call Package/vim/Default)
TITLE+= (Big)
endef
define Package/vim-runtime define Package/vim-runtime
$(call Package/vim/Default) $(call Package/vim/Default)
TITLE+= (runtime files) TITLE+= (runtime files)
@ -78,6 +84,12 @@ define Package/vim-full/description
(Normal build) (Normal build)
endef endef
define Package/vim-fuller/description
Vim is an almost compatible version of the UNIX editor Vi.
(Big build)
endef
define Package/vim-runtime/description define Package/vim-runtime/description
Vim is an almost compatible version of the UNIX editor Vi. Vim is an almost compatible version of the UNIX editor Vi.
(Runtime files) (Runtime files)
@ -138,6 +150,20 @@ define Build/Compile/vim-full
endef endef
endif endif
ifneq ($(CONFIG_PACKAGE_vim-fuller),)
define Build/Compile/vim-fuller
$(call Build/Configure/Default, \
--with-features=big \
--enable-multibyte \
)
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" all
$(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_big
endef
endif
ifneq ($(CONFIG_PACKAGE_xxd),) ifneq ($(CONFIG_PACKAGE_xxd),)
define Build/Compile/xxd define Build/Compile/xxd
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
@ -155,6 +181,7 @@ endef
define Build/Compile define Build/Compile
$(call Build/Compile/vim) $(call Build/Compile/vim)
$(call Build/Compile/vim-full) $(call Build/Compile/vim-full)
$(call Build/Compile/vim-fuller)
$(call Build/Compile/vim-runtime) $(call Build/Compile/vim-runtime)
$(call Build/Compile/xxd) $(call Build/Compile/xxd)
endef endef
@ -173,6 +200,17 @@ define Package/vim-full/install
$(INSTALL_CONF) ./files/vimrc.full $(1)/usr/share/vim/vimrc $(INSTALL_CONF) ./files/vimrc.full $(1)/usr/share/vim/vimrc
endef endef
define Package/vim-fuller/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/vim_big $(1)/usr/bin/vim
$(INSTALL_DIR) $(1)/usr/share/vim
$(CP) -r $(PKG_INSTALL_DIR)/usr/share/vim/vim$(VIMVER) $(1)/usr/share/vim
$(INSTALL_CONF) ./files/vimrc.full $(1)/usr/share/vim/vimrc
endef
define Package/vim-runtime/install define Package/vim-runtime/install
$(CP) $(PKG_INSTALL_DIR)/* $(1) $(CP) $(PKG_INSTALL_DIR)/* $(1)
rm -rf $(1)/usr/share/vim/vim$(VIMVER)/doc rm -rf $(1)/usr/share/vim/vim$(VIMVER)/doc
@ -189,6 +227,7 @@ endef
$(eval $(call BuildPackage,vim)) $(eval $(call BuildPackage,vim))
$(eval $(call BuildPackage,vim-full)) $(eval $(call BuildPackage,vim-full))
$(eval $(call BuildPackage,vim-fuller))
$(eval $(call BuildPackage,vim-runtime)) $(eval $(call BuildPackage,vim-runtime))
$(eval $(call BuildPackage,vim-help)) $(eval $(call BuildPackage,vim-help))
$(eval $(call BuildPackage,xxd)) $(eval $(call BuildPackage,xxd))

Loading…
Cancel
Save