<commit_before>require 'formula'

class Macvim < Formula
  homepage 'http://code.google.com/p/macvim/'
  url 'https://github.com/b4winckler/macvim/tarball/snapshot-62'
  version '7.3-62'
  md5 '04d14c9ebe1b8fd0fe119d977e148c39'
  head 'https://github.com/b4winckler/macvim.git', :branch => 'master'

  def options
  [
    # Building custom icons fails for many users, so off by default.
    ["--custom-icons", "Try to generate custom document icons."],
    ["--with-cscope", "Build with Cscope support."],
    ["--with-envycoder", "Build with Envy Code R Bold font."],
    ["--override-system-vim", "Override system vim."],
    ["--enable-clipboard", "Enable System clipboard handling in the terminal."]
  ]
  end

  depends_on 'cscope' if ARGV.include? '--with-cscope'

  def install
    # MacVim's Xcode project gets confused by $CC, so remove it
    ENV['CC'] = nil
    ENV['CFLAGS'] = nil
    ENV['CXX'] = nil
    ENV['CXXFLAGS'] = nil

    # Set ARCHFLAGS so the Python app (with C extension) that is
    # used to create the custom icons will not try to compile in
    # PPC support (which isn't needed in Homebrew-supported systems.)
    arch = MacOS.prefer_64_bit? ? 'x86_64' : 'i386'
    ENV['ARCHFLAGS'] = "-arch #{arch}"

    args = ["--with-macsdk=#{MACOS_VERSION}",
           "--with-features=huge",
           "--with-tlib=ncurses",
           "--enable-multibyte",
           "--with-macarchs=#{arch}",
           "--enable-perlinterp",
           "--enable-pythoninterp",
           "--enable-rubyinterp",
           "--enable-tclinterp"]

    args << "--enable-cscope" if ARGV.include? "--with-cscope"
    args << "--enable-clipboard" if ARGV.include? "--enable-clipboard"

    system "./configure", *args

    unless ARGV.include? "--custom-icons"
      inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""
      inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True"
    end
<commit_msg>MacVim: stop passing explicit SDK<commit_after>require 'formula'

class Macvim < Formula
  homepage 'http://code.google.com/p/macvim/'
  url 'https://github.com/b4winckler/macvim/tarball/snapshot-62'
  version '7.3-62'
  md5 '04d14c9ebe1b8fd0fe119d977e148c39'
  head 'https://github.com/b4winckler/macvim.git', :branch => 'master'

  def options
  [
    # Building custom icons fails for many users, so off by default.
    ["--custom-icons", "Try to generate custom document icons."],
    ["--with-cscope", "Build with Cscope support."],
    ["--with-envycoder", "Build with Envy Code R Bold font."],
    ["--override-system-vim", "Override system vim."],
    ["--enable-clipboard", "Enable System clipboard handling in the terminal."]
  ]
  end

  depends_on 'cscope' if ARGV.include? '--with-cscope'

  def install
    # MacVim's Xcode project gets confused by $CC, so remove it
    ENV['CC'] = nil
    ENV['CFLAGS'] = nil
    ENV['CXX'] = nil
    ENV['CXXFLAGS'] = nil

    # Set ARCHFLAGS so the Python app (with C extension) that is
    # used to create the custom icons will not try to compile in
    # PPC support (which isn't needed in Homebrew-supported systems.)
    arch = MacOS.prefer_64_bit? ? 'x86_64' : 'i386'
    ENV['ARCHFLAGS'] = "-arch #{arch}"

    args = ["--with-features=huge",
            "--with-tlib=ncurses",
            "--enable-multibyte",
            "--with-macarchs=#{arch}",
            "--enable-perlinterp",
            "--enable-pythoninterp",
            "--enable-rubyinterp",
            "--enable-tclinterp"]

    args << "--enable-cscope" if ARGV.include? "--with-cscope"
    args << "--enable-clipboard" if ARGV.include? "--enable-clipboard"

    system "./configure", *args

    unless ARGV.include? "--custom-icons"
      inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""
      inreplace "src/MacVim/icons/make_icons.py", "dont_create = False", "dont_create = True"
    end

{'fraction_non_alphanumeric': 0.15826042202779209, 'fraction_numerical': 0.019042717447246525, 'mean_word_length': 2.7921951219512193, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4978235', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1289, 'n_words': 331}