<commit_before>class Libchamplain < Formula
  desc "ClutterActor for displaying maps"
  homepage "https://wiki.gnome.org/Projects/libchamplain"
  url "https://download.gnome.org/sources/libchamplain/0.12/libchamplain-0.12.11.tar.xz"
  sha256 "851e24888d967c10acb8fd878df1292a84b8180eb4c48fc5bfbf1a48896d4aa5"

  bottle do
    sha256 "114f9e269864e0630e819b9fb6fe63efd74fead47839c467e54fdd72d1a09371" => :el_capitan
    sha256 "bf7b290cda0264cad8b48cb7dc8b84708918f309bd4e7717d8b4ac5f7d08db8a" => :yosemite
    sha256 "13685ac78041573fa061ea39edf8d1ae827a071374e56290a5567594f42b41b4" => :mavericks
  end

  depends_on "pkg-config" => :build
  depends_on "clutter"
  depends_on "libsoup"
  depends_on "gobject-introspection"
  depends_on "gtk+3"
  depends_on "clutter-gtk"
  depends_on "vala" => :optional

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <champlain/champlain.h>

      int main(int argc, char *argv[]) {
        GType type = champlain_license_get_type();<commit_msg>libchamplain: update 0.12.11 bottle.<commit_after>class Libchamplain < Formula
  desc "ClutterActor for displaying maps"
  homepage "https://wiki.gnome.org/Projects/libchamplain"
  url "https://download.gnome.org/sources/libchamplain/0.12/libchamplain-0.12.11.tar.xz"
  sha256 "851e24888d967c10acb8fd878df1292a84b8180eb4c48fc5bfbf1a48896d4aa5"

  bottle do
    revision 1
    sha256 "b47d4c49d9f7d6bfc8e51de2ccd1912c49acbe5f4a7468a0cb2983350a38709d" => :el_capitan
    sha256 "511afec4f201270a963900311dfae5e0cbf4d25bc1742501225f2ddd1ad5c952" => :yosemite
    sha256 "d9ecb9dbb31ca73260f7fe08887f21c15ffd87b835df66bd1b1759bf6ba9dd30" => :mavericks
  end

  depends_on "pkg-config" => :build
  depends_on "clutter"
  depends_on "libsoup"
  depends_on "gobject-introspection"
  depends_on "gtk+3"
  depends_on "clutter-gtk"
  depends_on "vala" => :optional

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <champlain/champlain.h>

      int main(int argc, char *argv[]) {
        GType type = champlain_license_get_type();
{'fraction_non_alphanumeric': 0.10980392156862745, 'fraction_numerical': 0.1415686274509804, 'mean_word_length': 3.467600700525394, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 4, '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': '3478414', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1005, 'n_words': 140}