Skip to content

Instantly share code, notes, and snippets.

@ahhsia
Forked from mgrouchy/vim.rb
Created October 6, 2012 03:51
Show Gist options
  • Save ahhsia/3843713 to your computer and use it in GitHub Desktop.
Save ahhsia/3843713 to your computer and use it in GitHub Desktop.

Revisions

  1. ahhsia revised this gist Oct 6, 2012. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331'
    version '7.3.515'
    url 'https://vim.googlecode.com/hg/', :tag => 'v7-3-672'
    version '7.3.672'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
    @@ -51,7 +51,7 @@ def opt_val(opt)
    "--disable-netbeans",
    "--disable-arabic",
    "--disable-farsi",
    "--disable-cscope",
    "--enable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    @@ -60,7 +60,9 @@ def opt_val(opt)
    "--enable-multibyte",
    "--prefix=#{prefix}",
    "--mandir=#{man}",
    "--enable-pythoninterp=dynamic",
    "--with-python-config-dir=/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config",
    *opts
    system "make install"
    system "make", "install", "prefix=#{prefix}"
    end
    end
  2. @mgrouchy mgrouchy revised this gist May 10, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -53,6 +53,7 @@ def opt_val(opt)
    "--disable-farsi",
    "--disable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
  3. @mgrouchy mgrouchy revised this gist May 10, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,6 @@ def opt_val(opt)
    "--disable-farsi",
    "--disable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
  4. @mgrouchy mgrouchy revised this gist May 10, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8'
    version '7.3.462'
    url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331'
    version '7.3.515'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  5. @mgrouchy mgrouchy revised this gist May 10, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -47,6 +47,7 @@ def opt_val(opt)
    "--disable-gui",
    "--without-x",
    "--disable-nls",
    "--disable-gpm",
    "--disable-netbeans",
    "--disable-arabic",
    "--disable-farsi",
  6. @mgrouchy mgrouchy revised this gist May 9, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ def interp; %w(lua mzscheme perl python python3 tcl ruby) end
    def options
    [
    ["--with-features=TYPE", "tiny, small, normal, big or huge (default: normal)"],
    ["--enable-interp=NAME,...", "lua, mzscheme, perl, python, python3, tcl and/or ruby"]
    ["--enable-interp=NAME,...", "lua, mzscheme, perl, python, python3, tcl and/or ruby (default:python,ruby)"]
    ]
    end

    @@ -28,7 +28,7 @@ def opt_val(opt)
    # }}}
    opts << "--with-features=#{feature}"

    interps = opt_val(ARGV.find {|s| s =~ /^--enable-interp=/ }) || ""
    interps = opt_val(ARGV.find {|s| s =~ /^--enable-interp=/ }) || "python,ruby"
    interps = interps.split(/,/)
    # For compatibility and convenience {{{
    interp.each do |i|
  7. @mgrouchy mgrouchy revised this gist Mar 16, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,6 @@ def opt_val(opt)
    system "./configure",
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
    "--disable-nls",
    "--disable-netbeans",
    "--disable-arabic",
  8. @mgrouchy mgrouchy revised this gist Mar 16, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -53,6 +53,8 @@ def opt_val(opt)
    "--disable-farsi",
    "--disable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
    "--enable-multibyte",
    @@ -61,4 +63,4 @@ def opt_val(opt)
    *opts
    system "make install"
    end
    end
    end
  9. @mgrouchy mgrouchy revised this gist Mar 16, 2012. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -53,14 +53,6 @@ def opt_val(opt)
    "--disable-farsi",
    "--disable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    "--disable-rightleft",
    "--disable-signs",
    "--disable-mouse_dec",
    "--disable-mouse_netterm",
    "--disable-mouse_gpm",
    "--disable-mouse_xterm",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
    "--enable-multibyte",
  10. Peter Aronoff revised this gist Mar 2, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '749c0a60b745'
    version '7.3.364'
    url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8'
    version '7.3.462'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  11. Peter Aronoff revised this gist Dec 3, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '5e84f6567623'
    version '7.3.322'
    url 'https://vim.googlecode.com/hg/', :revision => '749c0a60b745'
    version '7.3.364'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  12. Peter Aronoff revised this gist Sep 28, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '15b934a16641'
    version '7.3.315'
    url 'https://vim.googlecode.com/hg/', :revision => '5e84f6567623'
    version '7.3.322'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  13. Peter Aronoff revised this gist Sep 16, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => 'ba9f075a347d'
    version '7.3.289'
    url 'https://vim.googlecode.com/hg/', :revision => '15b934a16641'
    version '7.3.315'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  14. Peter Aronoff revised this gist Aug 31, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '7b50afd31037'
    version '7.3.285'
    url 'https://vim.googlecode.com/hg/', :revision => 'ba9f075a347d'
    version '7.3.289'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  15. Peter Aronoff revised this gist Aug 21, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => '124a81f12ca4'
    version '7.3.265'
    url 'https://vim.googlecode.com/hg/', :revision => '7b50afd31037'
    version '7.3.285'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  16. Peter Aronoff revised this gist Aug 4, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => 'd1842e5ea9b6'
    version '7.3.260'
    url 'https://vim.googlecode.com/hg/', :revision => '124a81f12ca4'
    version '7.3.265'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  17. Peter Aronoff revised this gist Jul 25, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => 'd1842e5ea9b6'
    version '7.3.244'
    version '7.3.260'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  18. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 2 additions and 6 deletions.
    8 changes: 2 additions & 6 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -44,11 +44,6 @@ def opt_val(opt)
    end

    system "./configure",
    "--with-features=normal",
    "--enable-rubyinterp=yes",
    "--enable-perlinterp=yes",
    "--enable-conceal=yes",
    "--with-conceal",
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
    @@ -70,7 +65,8 @@ def opt_val(opt)
    "--with-tlib=ncurses",
    "--enable-multibyte",
    "--prefix=#{prefix}",
    "--mandir=#{man}"
    "--mandir=#{man}",
    *opts
    system "make install"
    end
    end
  19. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -44,9 +44,11 @@ def opt_val(opt)
    end

    system "./configure",
    "--with-features=big",
    "--enable-ruby=yes",
    "--enable-perl=yes",
    "--with-features=normal",
    "--enable-rubyinterp=yes",
    "--enable-perlinterp=yes",
    "--enable-conceal=yes",
    "--with-conceal",
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
  20. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -45,8 +45,8 @@ def opt_val(opt)

    system "./configure",
    "--with-features=big",
    "--enable-interp=ruby",
    "--enable-interp=perl",
    "--enable-ruby=yes",
    "--enable-perl=yes",
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
    @@ -68,8 +68,7 @@ def opt_val(opt)
    "--with-tlib=ncurses",
    "--enable-multibyte",
    "--prefix=#{prefix}",
    "--mandir=#{man}",
    *opts
    "--mandir=#{man}"
    system "make install"
    end
    end
  21. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -44,6 +44,9 @@ def opt_val(opt)
    end

    system "./configure",
    "--with-features=big",
    "--enable-interp=ruby",
    "--enable-interp=perl",
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
  22. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,18 @@ def opt_val(opt)
    "--disable-gpm",
    "--disable-nls",
    "--disable-netbeans",
    "--enable-feature=conceal",
    "--disable-arabic",
    "--disable-farsi",
    "--disable-cscope",
    "--disable-emacs_tags",
    "--disable-keymap",
    "--disable-langmap",
    "--disable-rightleft",
    "--disable-signs",
    "--disable-mouse_dec",
    "--disable-mouse_netterm",
    "--disable-mouse_gpm",
    "--disable-mouse_xterm",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
    "--enable-multibyte",
  23. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,6 @@ def opt_val(opt)
    end

    system "./configure",
    *opts,
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
    @@ -55,7 +54,8 @@ def opt_val(opt)
    "--with-tlib=ncurses",
    "--enable-multibyte",
    "--prefix=#{prefix}",
    "--mandir=#{man}"
    "--mandir=#{man}",
    *opts
    system "make install"
    end
    end
  24. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -44,18 +44,18 @@ def opt_val(opt)
    end

    system "./configure",
    *opts,
    "--disable-gui",
    "--without-x",
    "--disable-gpm",
    "--disable-nls",
    "--disable-netbeans",
    "--enable-conceal",
    "--enable-browse",
    "--enable-feature=conceal",
    "--enable-feature=browse",
    "--with-tlib=ncurses",
    "--enable-multibyte",
    "--prefix=#{prefix}",
    "--mandir=#{man}",
    *opts
    "--mandir=#{man}"
    system "make install"
    end
    end
  25. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -48,6 +48,9 @@ def opt_val(opt)
    "--without-x",
    "--disable-gpm",
    "--disable-nls",
    "--disable-netbeans",
    "--enable-conceal",
    "--enable-browse",
    "--with-tlib=ncurses",
    "--enable-multibyte",
    "--prefix=#{prefix}",
  26. Peter Aronoff revised this gist Jul 14, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'https://vim.googlecode.com/hg/', :revision => 'c6f8f1957c66'
    version '7.3.219'
    url 'https://vim.googlecode.com/hg/', :revision => 'd1842e5ea9b6'
    version '7.3.244'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  27. Peter Aronoff revised this gist Jun 15, 2011. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -15,11 +15,6 @@ def options
    ]
    end

    def patches
    patch_level = version.split('.').last.to_i
    {'p0' => (1..patch_level).map { |i| 'ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.%03d' % i }}
    end

    def install
    def opt_val(opt)
    opt.sub(/.*?=(.*)$/, "\\1") rescue nil
  28. Peter Aronoff revised this gist Jun 15, 2011. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions vim.rb
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,7 @@

    class Vim < Formula
    homepage 'http://www.vim.org/'
    url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
    head 'https://vim.googlecode.com/hg/'
    sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
    url 'https://vim.googlecode.com/hg/', :revision => 'c6f8f1957c66'
    version '7.3.219'

    def features; %w(tiny small normal big huge) end
  29. Peter Aronoff revised this gist Jun 15, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ class Vim < Formula
    url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
    head 'https://vim.googlecode.com/hg/'
    sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
    version '7.3.206'
    version '7.3.219'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end
  30. @uasi uasi revised this gist May 26, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim.rb
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ class Vim < Formula
    url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
    head 'https://vim.googlecode.com/hg/'
    sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
    version '7.3.189'
    version '7.3.206'

    def features; %w(tiny small normal big huge) end
    def interp; %w(lua mzscheme perl python python3 tcl ruby) end