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

class Php53Http < AbstractPhp53Extension
  init
  desc "HTTP extension that provides a convenient set of functionality"
  homepage "https://pecl.php.net/package/pecl_http"
  url "https://github.com/m6w6/ext-http/archive/RELEASE_2_5_6.tar.gz"
  sha256 "83c15492ae7673404db462b642450f5bec81db72765d21fbb915ac39a42f0be4"
  revision 1

  head "https://github.com/m6w6/ext-http.git"

  bottle do
    cellar :any
    sha256 "d90039784508c99caca68fc831982282a75a496d13f183a3f2e9a73f9c7797da" => :el_capitan
    sha256 "d0d2bef52197f0443de598472bbbb9c435c1543b1b93a98d0d5b0f9c39a6e789" => :yosemite
    sha256 "b37b2010d6939c6e3d4ee9297d644b7fff685f0ed25bdb59c83f1ab94e8b5138" => :mavericks
  end

  depends_on "curl"
  depends_on "libevent"
  depends_on "php53-raphf"
  depends_on "php53-propro"

  # overwrite the config file name to ensure extension is loaded after dependencies
  def config_filename
    "zzz_ext-" + extension + ".ini"
  end

  def install
    ENV.universal_binary if build.universal?

    safe_phpize

    # link in the raphf extension header
    mkdir_p "ext/raphf"
    cp "#{Formula["php53-raphf"].opt_prefix}/include/php_raphf.h", "ext/raphf/php_raphf.h"

    # link in the propro extension header
    mkdir_p "ext/propro"
    cp "#{Formula["php53-propro"].opt_prefix}/include/php_propro.h", "ext/propro/php_propro.h"<commit_msg>php53-http: update 2.5.6_1 bottle.<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php53Http < AbstractPhp53Extension
  init
  desc "HTTP extension that provides a convenient set of functionality"
  homepage "https://pecl.php.net/package/pecl_http"
  url "https://github.com/m6w6/ext-http/archive/RELEASE_2_5_6.tar.gz"
  sha256 "83c15492ae7673404db462b642450f5bec81db72765d21fbb915ac39a42f0be4"
  revision 1

  head "https://github.com/m6w6/ext-http.git"

  bottle do
    cellar :any
    sha256 "6a203d8c25ef6039039f5b08a563b663d8ba7a4f498b780bfeedfdf0b58d2964" => :sierra
    sha256 "7b6bd7c49f62ca0159f216e26193a93845ea7ec5143ce6433ac968cea470d652" => :el_capitan
    sha256 "ad567df265127ac82aeda0ad982ec47eb12edcf59687e976a932e8a6cd069735" => :yosemite
  end

  depends_on "curl"
  depends_on "libevent"
  depends_on "php53-raphf"
  depends_on "php53-propro"

  # overwrite the config file name to ensure extension is loaded after dependencies
  def config_filename
    "zzz_ext-" + extension + ".ini"
  end

  def install
    ENV.universal_binary if build.universal?

    safe_phpize

    # link in the raphf extension header
    mkdir_p "ext/raphf"
    cp "#{Formula["php53-raphf"].opt_prefix}/include/php_raphf.h", "ext/raphf/php_raphf.h"

    # link in the propro extension header
    mkdir_p "ext/propro"
    cp "#{Formula["php53-propro"].opt_prefix}/include/php_propro.h", "ext/propro/php_propro.h"
{'fraction_non_alphanumeric': 0.09917069799585349, 'fraction_numerical': 0.13683483068417415, 'mean_word_length': 4.588803088803089, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '3353996', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1152, 'n_words': 192}