<commit_before>require 'formula'

class Openldap <Formula
  url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.23.tgz'
  homepage 'http://www.openldap.org/software/'
  md5 '90150b8c0d0192e10b30157e68844ddf'

  depends_on 'berkeley-db'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>OpenLDAP - add installation workaround<commit_after>require 'formula'

class Openldap <Formula
  url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.23.tgz'
  homepage 'http://www.openldap.org/software/'
  md5 '90150b8c0d0192e10b30157e68844ddf'

  depends_on 'berkeley-db'

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

  def caveats; <<-EOS.undent
    OpenLDAP depends on berkeley-db 4.x, but Homebrew provides version 5.x,
    which doesn't work. To work around this, do:
      $ brew install http://github.com/adamv/homebrew/raw/versions/Library/Formula/berkeley-db4.rb --without-java
      $ brew install --ignore-dependencies openldap
    EOS
  end
end
{'fraction_non_alphanumeric': 0.13758389261744966, 'fraction_numerical': 0.04949664429530201, 'mean_word_length': 3.810483870967742, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2313658', 'n_tokens_mistral': 469, 'n_tokens_neox': 419, 'n_words': 83}