<commit_before>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56PdoDblib < AbstractPhp56Extension
  init
  desc "Unified Sybase-DB style driver for PDO"
  homepage "https://github.com/php/php-src/tree/master/ext/pdo_dblib"
  url PHP_SRC_TARBALL
  sha256 PHP_CHECKSUM[:sha256]
  version PHP_VERSION
  revision 2

  bottle do
    sha256 "30ad947ec59e5f65775ad0ccb98b2fa53b3d894e47917917655073f10efe7646" => :sierra
    sha256 "90f5b87a95513f9319276735536305ce37bb66eb78b0baf59a0c495f0d902035" => :el_capitan
    sha256 "74b14eebf610e4617d90f4b8bc7a1655af62e23ae4df6938212b9db45ec809c0" => :yosemite
  end

  depends_on "freetds"

  def extension
    "pdo_dblib"
  end

  def install
    Dir.chdir "ext/pdo_dblib" unless build.head?

    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}", "--with-pdo-dblib=#{Formula["freetds"].opt_prefix}", phpconfig
    system "make"
    prefix.install "modules/pdo_dblib.so"<commit_msg>php56-pdo-dblib: update 5.6.29_2 bottle.<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56PdoDblib < AbstractPhp56Extension
  init
  desc "Unified Sybase-DB style driver for PDO"
  homepage "https://github.com/php/php-src/tree/master/ext/pdo_dblib"
  url PHP_SRC_TARBALL
  sha256 PHP_CHECKSUM[:sha256]
  version PHP_VERSION
  revision 2

  bottle do
    sha256 "2fb7a6b4e2e0b0a3b5922408875231f0b24b959eec33488226653fe6fdb785c1" => :sierra
    sha256 "a73df3b7d6710fc7e3c43a5ee72478471cde22b0fa400e3a6442844c7fb21b50" => :el_capitan
    sha256 "d236902db014194e0756c715f32dcdbb5cfc09509537cd2567924d2f44aff156" => :yosemite
  end

  depends_on "freetds"

  def extension
    "pdo_dblib"
  end

  def install
    Dir.chdir "ext/pdo_dblib" unless build.head?

    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}", "--with-pdo-dblib=#{Formula["freetds"].opt_prefix}", phpconfig
    system "make"
    prefix.install "modules/pdo_dblib.so"
{'fraction_non_alphanumeric': 0.10316301703163017, 'fraction_numerical': 0.1464720194647202, 'mean_word_length': 4.727019498607242, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3918862', 'n_tokens_mistral': 1009, 'n_tokens_neox': 845, 'n_words': 124}