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

class Php56Gmagick < AbstractPhp56Extension
  init
  desc "Provides a wrapper to the GraphicsMagick library."
  homepage "https://pecl.php.net/package/gmagick"
  url "https://pecl.php.net/get/gmagick-1.1.7RC2.tgz"
  sha256 "8e51c8343d6e6d556d7b17417ce338c6ed2b0893869f1494410dfe6ba5105475"

  bottle do
    revision 1
    sha256 "2b5c737246ba9b4b9cf28db8ff22acab08f295940e3ec3d81db06106ed903e04" => :el_capitan
    sha256 "f1e5b3914085c1d81afa5cf5b6f5af2ef21bb7ee8eead724de733cb0188567b0" => :yosemite
    sha256 "4a2afc54461304dcb64083676b5d2b6dec238df28c05cb524c1f80abfbcf3b6a" => :mavericks
  end

  depends_on "graphicsmagick"

  def install
    Dir.chdir "gmagick-#{version}"

    ENV.universal_binary if build.universal?

    args = []
    args << "--prefix=#{prefix}"
    args << phpconfig<commit_msg>php56-gmagick: bottle revision to rebuild.<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56Gmagick < AbstractPhp56Extension
  init
  desc "Provides a wrapper to the GraphicsMagick library."
  homepage "https://pecl.php.net/package/gmagick"
  url "https://pecl.php.net/get/gmagick-1.1.7RC2.tgz"
  sha256 "8e51c8343d6e6d556d7b17417ce338c6ed2b0893869f1494410dfe6ba5105475"

  bottle do
    rebuild 1
    sha256 "2b5c737246ba9b4b9cf28db8ff22acab08f295940e3ec3d81db06106ed903e04" => :el_capitan
    sha256 "f1e5b3914085c1d81afa5cf5b6f5af2ef21bb7ee8eead724de733cb0188567b0" => :yosemite
    sha256 "4a2afc54461304dcb64083676b5d2b6dec238df28c05cb524c1f80abfbcf3b6a" => :mavericks
  end

  depends_on "graphicsmagick"

  def install
    Dir.chdir "gmagick-#{version}"

    ENV.universal_binary if build.universal?

    args = []
    args << "--prefix=#{prefix}"
    args << phpconfig
{'fraction_non_alphanumeric': 0.09792122538293217, 'fraction_numerical': 0.1925601750547046, 'mean_word_length': 4.99672131147541, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '4405445', 'n_tokens_mistral': 950, 'n_tokens_neox': 778, 'n_words': 101}