<commit_before>class Libcdr < Formula
  desc "C++ library to parse the file format of CorelDRAW documents"
  homepage "https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
  url "https://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.4.tar.xz"
  sha256 "e7a7e8b00a3df5798110024d7061fe9d1c3330277d2e4fa9213294f966a4a66d"
  revision 1

  bottle do
    cellar :any
    sha256 "692a27c7734faa0e75501e17605705c211361a77df76546acfc0f3cfc1c6c411" => :high_sierra
    sha256 "e6be25872e9fa42238f6531b6be50a041d167ffbcc9e4c430e6a703e8392eea5" => :sierra
    sha256 "be445fd52deffdef179bac32d01f66b9bb687c878c798f26feda73822cfd5ae5" => :el_capitan
  end

  depends_on "pkg-config" => :build
  depends_on "cppunit" => :build
  depends_on "boost"
  depends_on "icu4c"
  depends_on "librevenge"
  depends_on "little-cms2"

  def install
    ENV.cxx11
    # Needed for Boost 1.59.0 compatibility.
    ENV["LDFLAGS"] = "-lboost_system-mt"
    system "./configure", "--disable-werror",
                          "--without-docs",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do<commit_msg>libcdr: update 0.1.4_1 bottle for Linuxbrew.<commit_after>class Libcdr < Formula
  desc "C++ library to parse the file format of CorelDRAW documents"
  homepage "https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
  url "https://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.4.tar.xz"
  sha256 "e7a7e8b00a3df5798110024d7061fe9d1c3330277d2e4fa9213294f966a4a66d"
  revision 1

  bottle do
    cellar :any
    sha256 "692a27c7734faa0e75501e17605705c211361a77df76546acfc0f3cfc1c6c411" => :high_sierra
    sha256 "e6be25872e9fa42238f6531b6be50a041d167ffbcc9e4c430e6a703e8392eea5" => :sierra
    sha256 "be445fd52deffdef179bac32d01f66b9bb687c878c798f26feda73822cfd5ae5" => :el_capitan
    sha256 "24efc844793358fbe5c83c412ef200af709ce54da1ad0ed28a654fba5ccd6876" => :x86_64_linux
  end

  depends_on "pkg-config" => :build
  depends_on "cppunit" => :build
  depends_on "boost"
  depends_on "icu4c"
  depends_on "librevenge"
  depends_on "little-cms2"

  def install
    ENV.cxx11
    # Needed for Boost 1.59.0 compatibility.
    ENV["LDFLAGS"] = "-lboost_system-mt"
    system "./configure", "--disable-werror",
                          "--without-docs",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
{'fraction_non_alphanumeric': 0.10168776371308016, 'fraction_numerical': 0.17468354430379746, 'mean_word_length': 3.7706237424547284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 4, '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': '7173967', 'n_tokens_mistral': 1201, 'n_tokens_neox': 995, 'n_words': 149}