<commit_before>require 'formula'

class Arangodb < Formula
  homepage 'http://www.arangodb.org/'
  url 'https://github.com/triAGENS/ArangoDB/zipball/v1.1.0'
  sha1 '7ecb5a6291a31c17744656f2b26f185efa851575'

  head "https://github.com/triAGENS/ArangoDB.git"

  depends_on 'icu4c'
  depends_on 'libev'
  depends_on 'v8'

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-relative",
                          "--disable-all-in-one-icu",
                          "--disable-all-in-one-libev",
                          "--disable-all-in-one-v8",
                          "--enable-mruby",
                          "--datadir=#{share}",
                          "--localstatedir=#{var}"

    system "make install"

    (var+'arangodb').mkpath
    (var+'log/arangodb').mkpath
  end

  plist_options :manual => "#{HOMEBREW_PREFIX}/opt/arangodb/sbin/arangod"

  def caveats; <<-EOS.undent
    ArangoDB (http://www.arangodb.org)
      A universal open-source database with a flexible data model for documents,
      graphs, and key-values.
<commit_msg>ArangoDB 1.1.1<commit_after>require 'formula'

class Arangodb < Formula
  homepage 'http://www.arangodb.org/'
  url 'https://github.com/triAGENS/ArangoDB/zipball/v1.1.1'
  sha1 'c42db1ee50685376daafc18e16f87ff54dae2d98'

  head "https://github.com/triAGENS/ArangoDB.git"

  depends_on 'icu4c'
  depends_on 'libev'
  depends_on 'v8'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-relative",
                          "--disable-all-in-one-icu",
                          "--disable-all-in-one-libev",
                          "--disable-all-in-one-v8",
                          "--enable-mruby",
                          "--datadir=#{share}",
                          "--localstatedir=#{var}"

    system "make install"

    (var+'arangodb').mkpath
    (var+'log/arangodb').mkpath
  end

  plist_options :manual => "#{HOMEBREW_PREFIX}/opt/arangodb/sbin/arangod"

  def caveats; <<-EOS.undent
    ArangoDB (http://www.arangodb.org)
      A universal open-source database with a flexible data model for documents,
      graphs, and key-values.

{'fraction_non_alphanumeric': 0.14249363867684478, 'fraction_numerical': 0.028413910093299407, 'mean_word_length': 1.8016627078384797, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '3783095', 'n_tokens_mistral': 823, 'n_tokens_neox': 764, 'n_words': 122}