<commit_before>require 'formula'

class Fontforge < Formula
  url 'http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2'
  head 'git://fontforge.git.sourceforge.net/gitroot/fontforge/fontforge'
  homepage 'http://fontforge.sourceforge.net'
  md5 '5be4dda345b5d73a27cc399df96e463a'

  depends_on 'pkg-config' => :build
  depends_on 'gettext'
  depends_on 'pango'
  depends_on 'potrace'

  def options
    [['--without-python', 'Build without Python.']]
  end

  fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant"

  def install
    args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"]
    args << "--without-python" if ARGV.include? "--without-python"

    ENV.x11
    # Fix linker error; see: http://trac.macports.org/ticket/25012
    ENV.append "LDFLAGS", "-lintl"
    system "./configure", *args

    # Fix hard-coded install locations that don't respect the target bindir
    inreplace "Makefile" do |s|
      s.gsub! "/Applications", "$(prefix)"
      s.gsub! "ln -s /usr/local/bin/fontforge", "ln -s $(bindir)/fontforge"
    end

    system "make"
    system "make install"
  end
<commit_msg>fontforge: Add build number to LLVM failure<commit_after>require 'formula'

class Fontforge < Formula
  url 'http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2'
  head 'git://fontforge.git.sourceforge.net/gitroot/fontforge/fontforge'
  homepage 'http://fontforge.sourceforge.net'
  md5 '5be4dda345b5d73a27cc399df96e463a'

  depends_on 'pkg-config' => :build
  depends_on 'gettext'
  depends_on 'pango'
  depends_on 'potrace'

  def options
    [['--without-python', 'Build without Python.']]
  end

  fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant", :build => 2336

  def install
    args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"]
    args << "--without-python" if ARGV.include? "--without-python"

    ENV.x11
    # Fix linker error; see: http://trac.macports.org/ticket/25012
    ENV.append "LDFLAGS", "-lintl"
    system "./configure", *args

    # Fix hard-coded install locations that don't respect the target bindir
    inreplace "Makefile" do |s|
      s.gsub! "/Applications", "$(prefix)"
      s.gsub! "ln -s /usr/local/bin/fontforge", "ln -s $(bindir)/fontforge"
    end

    system "make"
    system "make install"
  end

{'fraction_non_alphanumeric': 0.1400322841000807, 'fraction_numerical': 0.02986279257465698, 'mean_word_length': 3.642322097378277, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4078064', 'n_tokens_mistral': 935, 'n_tokens_neox': 838, 'n_words': 196}