Changeset 32031


Ignore:
Timestamp:
2012-06-03T12:16:16+02:00 (6 years ago)
Author:
luka
Message:

[packages] vim: add xxd tool

Location:
packages/utils/vim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/vim/Makefile

    r25672 r32031  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    5151endef 
    5252 
     53define Package/xxd 
     54  SECTION:=utils 
     55  CATEGORY:=Utilities 
     56  TITLE:=make a hexdump or do the reverse 
     57  URL:=http://www.vim.org/ 
     58endef 
     59 
    5360define Package/vim-full/conffiles 
    5461/usr/share/vim/vimrc 
     
    6067 
    6168define Package/vim/description 
    62         Vim is an almost compatible version of the UNIX editor Vi. 
    63         (Tiny build) 
     69 Vim is an almost compatible version of the UNIX editor Vi. 
     70 (Tiny build) 
    6471endef 
    6572 
    6673define Package/vim-full/description 
    67         Vim is an almost compatible version of the UNIX editor Vi. 
    68         (Normal build) 
     74 Vim is an almost compatible version of the UNIX editor Vi. 
     75 (Normal build) 
    6976endef 
    7077 
    7178define Package/vim-runtime/description 
    72         Vim is an almost compatible version of the UNIX editor Vi. 
    73         (Runtime files) 
     79 Vim is an almost compatible version of the UNIX editor Vi. 
     80 (Runtime files) 
    7481endef 
    7582 
    7683define Package/vim-help/description 
    77         Vim is an almost compatible version of the UNIX editor Vi. 
    78         (Help files) 
     84 Vim is an almost compatible version of the UNIX editor Vi. 
     85 (Help files) 
    7986endef 
    80          
     87 
     88define Package/xxd/description 
     89 xxd creates a hex dump of a given file or standard input, it can also convert 
     90 a hex dump back to its original binary form. 
     91endef 
    8192 
    8293CONFIGURE_ARGS += \ 
     
    91102 
    92103CONFIGURE_VARS += \ 
    93         vim_cv_getcwd_broken=no \ 
    94         vim_cv_memmove_handles_overlap=yes \ 
    95         vim_cv_stat_ignores_slash=yes \ 
    96         vim_cv_tgetent=zero \ 
    97         vim_cv_terminfo=yes \ 
    98         vim_cv_toupper_broken=no \ 
    99         vim_cv_tty_group=root \ 
    100         vim_cv_tty_mode=0620 
     104        vim_cv_getcwd_broken=no \ 
     105        vim_cv_memmove_handles_overlap=yes \ 
     106        vim_cv_stat_ignores_slash=yes \ 
     107        vim_cv_tgetent=zero \ 
     108        vim_cv_terminfo=yes \ 
     109        vim_cv_toupper_broken=no \ 
     110        vim_cv_tty_group=root \ 
     111        vim_cv_tty_mode=0620 
    101112 
    102113ifneq ($(CONFIG_PACKAGE_vim),) 
    103114define Build/Compile/vim 
    104115        $(call Build/Configure/Default, \ 
    105           --with-features=tiny \ 
    106           --disable-multibyte \ 
    107          ) 
     116                --with-features=tiny \ 
     117                --disable-multibyte \ 
     118        ) 
    108119        $(MAKE) -C $(PKG_BUILD_DIR) clean 
    109120        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ 
    110           DESTDIR="$(PKG_INSTALL_DIR)" \ 
    111           all 
     121                DESTDIR="$(PKG_INSTALL_DIR)" all 
    112122        $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_tiny 
    113123endef 
     
    117127define Build/Compile/vim-full 
    118128        $(call Build/Configure/Default, \ 
    119           --with-features=normal \ 
    120           --enable-multibyte \ 
     129                --with-features=normal \ 
     130                --enable-multibyte \ 
    121131        ) 
    122132        $(MAKE) -C $(PKG_BUILD_DIR) clean 
    123133        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ 
    124           DESTDIR="$(PKG_INSTALL_DIR)" \ 
    125           all 
     134                DESTDIR="$(PKG_INSTALL_DIR)" all 
    126135        $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_normal 
    127136endef 
     
    133142        rm -rf $(PKG_INSTALL_DIR)/usr/share/vim/vim$(VIMVER)/doc 
    134143        rm -rf $(PKG_INSTALL_DIR)/usr/man 
    135 endef 
    136  
    137 define Build/Configure 
    138144endef 
    139145 
     
    168174endef 
    169175 
     176define Package/xxd/install 
     177        $(INSTALL_DIR) $(1)/usr/bin 
     178        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xxd/xxd $(1)/usr/bin 
     179endef 
     180 
    170181$(eval $(call BuildPackage,vim)) 
    171182$(eval $(call BuildPackage,vim-full)) 
    172183$(eval $(call BuildPackage,vim-runtime)) 
    173184$(eval $(call BuildPackage,vim-help)) 
    174  
     185$(eval $(call BuildPackage,xxd)) 
  • packages/utils/vim/files/vimrc

    r6500 r32031  
    1 set showcmd            " Show (partial) command in status line. 
    2 set showmatch          " Show matching brackets. 
    3 set ignorecase         " Do case insensitive matching 
    4 set incsearch          " Incremental search 
    5 set autowrite          " Automatically save before commands like :next and :make 
    6 set nocompatible        " Use Vim defaults instead of 100% vi compatibility 
    7 set backspace=indent,eol,start  " more powerful backspacing 
    8 set autoindent          " always set autoindenting on 
    9 set linebreak         " Don't wrap words by default 
    10 set textwidth=0         " Don't wrap lines by default 
    11 set ruler               " show the cursor position all the time 
     1set showcmd             " show (partial) command in status line 
     2set showmatch           " show matching brackets 
     3set ignorecase          " do case insensitive matching 
     4set incsearch           " incremental search 
     5set autowrite           " automatically save before commands like :next and :make 
     6set nocompatible        " use vim defaults instead of 100% vi compatibility 
     7set backspace=indent,eol,start  " more powerful backspacing 
     8set autoindent          " always set autoindenting on 
     9set linebreak           " don't wrap words by default 
     10set textwidth=0         " don't wrap lines by default 
     11set ruler               " show the cursor position all the time 
    1212 
    13  
  • packages/utils/vim/files/vimrc.full

    r12635 r32031  
    1 set showcmd  " Show (partial) command in status line. 
    2 set showmatch  " Show matching brackets. 
    3 set ignorecase  " Do case insensitive matching 
    4 set incsearch  " Incremental search 
    5 set autowrite  " Automatically save before commands like :next and :make 
    6 set nocompatible  " Use Vim defaults instead of 100% vi compatibility 
    7 set backspace=indent,eol,start  " more powerful backspacing 
    8 set autoindent  " always set autoindenting on 
    9 set linebreak  " Don't wrap words by default 
    10 set textwidth=0  " Don't wrap lines by default 
    11 set ruler  " show the cursor position all the time 
     1set showcmd                     " show (partial) command in status line 
     2set showmatch                   " show matching brackets 
     3set ignorecase                  " do case insensitive matching 
     4set incsearch                   " incremental search 
     5set autowrite                   " automatically save before commands like :next and :make 
     6set nocompatible                " use Vim defaults instead of 100% vi compatibility 
     7set backspace=indent,eol,start  " more powerful backspacing 
     8set autoindent                  " always set autoindenting on 
     9set linebreak                   " don't wrap words by default 
     10set textwidth=0                 " don't wrap lines by default 
     11set ruler                       " show the cursor position all the time 
    1212if filereadable(expand("$VIMRUNTIME/syntax/synload.vim")) 
    13   syntax on 
     13        syntax on 
    1414endif 
    1515if has("syntax") && &term =~ "xterm" 
    16   set t_Co=8 
    17   if has("terminfo") 
    18     set t_Sf=<Esc>[3%p1%dm 
    19     set t_Sb=<Esc>[4%p1%dm 
    20   else 
    21     set t_Sf=<Esc>[3%dm 
    22     set t_Sb=<Esc>[4%dm 
    23   endif 
     16        set t_Co=8 
     17        if has("terminfo") 
     18                set t_Sf=<Esc>[3%p1%dm 
     19                set t_Sb=<Esc>[4%p1%dm 
     20        else 
     21                set t_Sf=<Esc>[3%dm 
     22                set t_Sb=<Esc>[4%dm 
     23        endif 
    2424endif 
  • packages/utils/vim/patches/001-cross_compile.patch

    r25672 r32031  
    1 --- vim73.org/src/auto/configure        2010-11-29 10:47:27.396117333 +0000 
    2 +++ vim73/src/auto/configure    2010-11-29 10:48:52.301117332 +0000 
    3 @@ -11641,34 +11641,8 @@ 
     1--- a/src/auto/configure 
     2+++ b/src/auto/configure 
     3@@ -11641,34 +11641,8 @@ _ACEOF 
    44  
    55 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 
     
    3434-  conftest.$ac_objext conftest.beam conftest.$ac_ext 
    3535-fi 
     36  
     37  
     38  
Note: See TracChangeset for help on using the changeset viewer.