<commit_before>require 'formula'

class Mapnik < Formula
  url 'http://download.berlios.de/mapnik/mapnik-2.0.0.tar.gz'
  homepage 'http://www.mapnik.org/'
  md5 '3b0dacbf98f24dbcf113c6f4b1d7f0c8'
  head 'http://svn.mapnik.org/trunk', :using => :svn

  depends_on 'pkg-config' => :build
  depends_on 'scons' => :build
  depends_on 'libtiff'
  depends_on 'jpeg'
  depends_on 'proj'
  depends_on 'icu4c'
  depends_on 'boost'
  depends_on 'cairomm' => :optional

  def install
    ENV.x11 # for freetype-config

    icu = Formula.factory("icu4c")
    system "scons",
        "PREFIX=#{prefix}",
        "ICU_INCLUDES=#{icu.include}", "ICU_LIBS=#{icu.lib}",
        "install"
  end
end
<commit_msg>mapnik updates<commit_after>require 'formula'

class Mapnik < Formula
  url 'https://github.com/downloads/mapnik/mapnik/mapnik-2.0.0.tar.bz2'
  md5 '499c6a61544014b9bc2a7c978f963ef3'
  homepage 'http://www.mapnik.org/'
  head 'https://github.com/mapnik/mapnik.git'

  depends_on 'pkg-config' => :build
  depends_on 'libtiff'
  depends_on 'jpeg'
  depends_on 'proj'
  depends_on 'icu4c'
  depends_on 'boost'
  depends_on 'cairomm' => :optional

  def install
    ENV.x11 # for freetype-config

    icu = Formula.factory("icu4c")
    system "python",
           "scons/scons.py",
           "configure",
           "CC=\"#{ENV.cc}\"",
           "CXX=\"#{ENV.cxx}\"",
           "JOBS=#{ENV.make_jobs}",
           "PREFIX=#{prefix}",
           "ICU_INCLUDES=#{icu.include}",
           "ICU_LIBS=#{icu.lib}"
    system "python",
           "scons/scons.py",
           "install"
  end
end

{'fraction_non_alphanumeric': 0.1586599241466498, 'fraction_numerical': 0.03413400758533502, 'mean_word_length': 2.899014778325123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7025441', 'n_tokens_mistral': 663, 'n_tokens_neox': 640, 'n_words': 102}