<commit_before>class Qca < Formula
  desc "Qt Cryptographic Architecture (QCA)"
  homepage "http://delta.affinix.com/qca/"
  head "https://anongit.kde.org/qca.git"

  stable do
    url "https://github.com/KDE/qca/archive/v2.1.3.tar.gz"
    sha256 "a5135ffb0250a40e9c361eb10cd3fe28293f0cf4e5c69d3761481eafd7968067"

    # upstream fixes for macOS building (remove on 2.2.0 upgrade)
    patch do
      url "https://github.com/KDE/qca/commit/7ba0ee591e0f50a7e7b532f9eb7e500e7da784fb.diff"
      sha256 "fee535fdd01c1ba981bb5ece381cfa01e6e3decca38d62b24c4f20fd8620c1ce"
    end
    patch do
      url "https://github.com/KDE/qca/commit/b435c1b87b14ac2d2de9f83e586bfd6d8c2a755e.diff"
      sha256 "187de5c4f4cb8975ca562ee7ca38592ce12a844b9606a68af8e3dd932f67818d"
    end
    patch do
      url "https://github.com/KDE/qca/commit/f4b2eb0ced5310f3c43398eb1f03e0c065e08a82.diff"
      sha256 "a3529a29dd55008be9575bc965cb760365b650a62f5c6c8c441d433e9c9556db"
    end

    # use major version for framework, instead of full version
    # see: https://github.com/KDE/qca/pull/3
    patch do
      url "https://github.com/KDE/qca/pull/3.patch"
      sha256 "ec90fc28c64629ecb81571f5d0e4962cfd6237892b692ac488cd0c87a0adb7b9"
    end
  end

  bottle do
    sha256 "49bcd8ddf979e195df13ab645d7400c6c8fdf87d53d953c5a2cf42607169ba85" => :sierra
    sha256 "54c46dee59de352e5deb1dfef16bf3cd58ac7d931c5dddf321991ab8a131d80e" => :el_capitan
    sha256 "b6c45096e403d0ccebf365424a83736b796bbbb5cbebed4207e37ffcfcd4610d" => :yosemite
  end

  option "with-api-docs", "Build API documentation"

  deprecated_option "with-gnupg" => "with-gpg2"

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "qt5"

  # Plugins (QCA needs at least one plugin to do anything useful)
  depends_on "openssl" # qca-ossl
  depends_on "botan" => :optional # qca-botan
  depends_on "libgcrypt" => :optional # qca-gcrypt
  depends_on :gpg => [:optional, :run] # qca-gnupg
  depends_on "nss" => :optional # qca-nss
  depends_on "pkcs11-helper" => :optional # qca-pkcs11
<commit_msg>qca: rename qt5 to qt.<commit_after>class Qca < Formula
  desc "Qt Cryptographic Architecture (QCA)"
  homepage "http://delta.affinix.com/qca/"
  head "https://anongit.kde.org/qca.git"
  revision 1

  stable do
    url "https://github.com/KDE/qca/archive/v2.1.3.tar.gz"
    sha256 "a5135ffb0250a40e9c361eb10cd3fe28293f0cf4e5c69d3761481eafd7968067"

    # upstream fixes for macOS building (remove on 2.2.0 upgrade)
    patch do
      url "https://github.com/KDE/qca/commit/7ba0ee591e0f50a7e7b532f9eb7e500e7da784fb.diff"
      sha256 "fee535fdd01c1ba981bb5ece381cfa01e6e3decca38d62b24c4f20fd8620c1ce"
    end
    patch do
      url "https://github.com/KDE/qca/commit/b435c1b87b14ac2d2de9f83e586bfd6d8c2a755e.diff"
      sha256 "187de5c4f4cb8975ca562ee7ca38592ce12a844b9606a68af8e3dd932f67818d"
    end
    patch do
      url "https://github.com/KDE/qca/commit/f4b2eb0ced5310f3c43398eb1f03e0c065e08a82.diff"
      sha256 "a3529a29dd55008be9575bc965cb760365b650a62f5c6c8c441d433e9c9556db"
    end

    # use major version for framework, instead of full version
    # see: https://github.com/KDE/qca/pull/3
    patch do
      url "https://github.com/KDE/qca/pull/3.patch"
      sha256 "ec90fc28c64629ecb81571f5d0e4962cfd6237892b692ac488cd0c87a0adb7b9"
    end
  end

  bottle do
    sha256 "49bcd8ddf979e195df13ab645d7400c6c8fdf87d53d953c5a2cf42607169ba85" => :sierra
    sha256 "54c46dee59de352e5deb1dfef16bf3cd58ac7d931c5dddf321991ab8a131d80e" => :el_capitan
    sha256 "b6c45096e403d0ccebf365424a83736b796bbbb5cbebed4207e37ffcfcd4610d" => :yosemite
  end

  option "with-api-docs", "Build API documentation"

  deprecated_option "with-gnupg" => "with-gpg2"

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "qt"

  # Plugins (QCA needs at least one plugin to do anything useful)
  depends_on "openssl" # qca-ossl
  depends_on "botan" => :optional # qca-botan
  depends_on "libgcrypt" => :optional # qca-gcrypt
  depends_on :gpg => [:optional, :run] # qca-gnupg
  depends_on "nss" => :optional # qca-nss
  depends_on "pkcs11-helper" => :optional # qca-pkcs11

{'fraction_non_alphanumeric': 0.09675090252707581, 'fraction_numerical': 0.19614921780986763, 'mean_word_length': 4.31457800511509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, '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': '600799', 'n_tokens_mistral': 2263, 'n_tokens_neox': 1875, 'n_words': 266}