浏览代码

vim: add dependency to gettext if locale support is requested

Until now, if locale support was requested, vim would be built with NLS or
not depending on the build order. This patch now makes the dependency
explicit.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Thomas De Schampheleire 11 年之前
父节点
当前提交
5a3c69afbd
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      package/vim/Config.in
  2. 1 1
      package/vim/vim.mk

+ 1 - 0
package/vim/Config.in

@@ -2,6 +2,7 @@ config BR2_PACKAGE_VIM
 	bool "vim"
 	bool "vim"
 	depends on BR2_USE_MMU # uses fork()
 	depends on BR2_USE_MMU # uses fork()
 	select BR2_PACKAGE_NCURSES
 	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	help
 	help
 	  VIM Text editor
 	  VIM Text editor
 
 

+ 1 - 1
package/vim/vim.mk

@@ -8,7 +8,7 @@ VIM_SITE = https://vim.googlecode.com/hg
 VIM_SITE_METHOD = hg
 VIM_SITE_METHOD = hg
 # 7.3 release patchlevel 762
 # 7.3 release patchlevel 762
 VIM_VERSION = 699f8d8f096d
 VIM_VERSION = 699f8d8f096d
-VIM_DEPENDENCIES = ncurses
+VIM_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
 VIM_SUBDIR = src
 VIM_SUBDIR = src
 VIM_CONF_ENV = vim_cv_toupper_broken=no \
 VIM_CONF_ENV = vim_cv_toupper_broken=no \
 		vim_cv_terminfo=yes \
 		vim_cv_terminfo=yes \