<commit_before>class Pyside < Formula
  desc "Python bindings for Qt"
  homepage "https://wiki.qt.io/PySide"
  url "https://download.qt.io/official_releases/pyside/pyside-qt4.8+1.2.2.tar.bz2"
  mirror "https://distfiles.macports.org/py-pyside/pyside-qt4.8+1.2.2.tar.bz2"
  sha256 "a1a9df746378efe52211f1a229f77571d1306fb72830bbf73f0d512ed9856ae1"

  head "https://github.com/PySide/PySide.git"

  bottle do
    sha1 "8137d4ab768f0b621c76f3e8f51aff9594527b7a" => :yosemite
    sha1 "23cceb7a03918cb1aa1e897c9ed1b3224610c2d2" => :mavericks
    sha1 "370b1d0fc1099689977ba04eb3602c41b5def89c" => :mountain_lion
  end

  # don't use depends_on :python because then bottles install Homebrew's python
  option "without-python", "Build without python 2 support"
  depends_on :python => :recommended if MacOS.version <= :snow_leopard
  depends_on :python3 => :optional

  option "without-docs", "Skip building documentation"

  depends_on "cmake" => :build
  depends_on "qt"

  if build.with? "python3"
    depends_on "shiboken" => "with-python3"
  else
    depends_on "shiboken"
  end

  resource "sphinx" do
    url "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-1.2.3.tar.gz"
    sha256 "94933b64e2fe0807da0612c574a021c0dac28c7bd3c4a23723ae5a39ea8f3d04"
  end

  def install
    if build.with? "docs"
      ENV.prepend_create_path "PYTHONPATH", buildpath+"sphinx/lib/python2.7/site-packages"
      resources.each do |r|
        r.stage do<commit_msg>pyside: update 1.2.2 bottle.<commit_after>class Pyside < Formula
  desc "Python bindings for Qt"
  homepage "https://wiki.qt.io/PySide"
  url "https://download.qt.io/official_releases/pyside/pyside-qt4.8+1.2.2.tar.bz2"
  mirror "https://distfiles.macports.org/py-pyside/pyside-qt4.8+1.2.2.tar.bz2"
  sha256 "a1a9df746378efe52211f1a229f77571d1306fb72830bbf73f0d512ed9856ae1"

  head "https://github.com/PySide/PySide.git"

  bottle do
    sha256 "4b07af0f3df67dd693a79f381be679f311d48c7bf5d65481ac11afcc165e342c" => :el_capitan
    sha1 "8137d4ab768f0b621c76f3e8f51aff9594527b7a" => :yosemite
    sha1 "23cceb7a03918cb1aa1e897c9ed1b3224610c2d2" => :mavericks
    sha1 "370b1d0fc1099689977ba04eb3602c41b5def89c" => :mountain_lion
  end

  # don't use depends_on :python because then bottles install Homebrew's python
  option "without-python", "Build without python 2 support"
  depends_on :python => :recommended if MacOS.version <= :snow_leopard
  depends_on :python3 => :optional

  option "without-docs", "Skip building documentation"

  depends_on "cmake" => :build
  depends_on "qt"

  if build.with? "python3"
    depends_on "shiboken" => "with-python3"
  else
    depends_on "shiboken"
  end

  resource "sphinx" do
    url "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-1.2.3.tar.gz"
    sha256 "94933b64e2fe0807da0612c574a021c0dac28c7bd3c4a23723ae5a39ea8f3d04"
  end

  def install
    if build.with? "docs"
      ENV.prepend_create_path "PYTHONPATH", buildpath+"sphinx/lib/python2.7/site-packages"
      resources.each do |r|
        r.stage do
{'fraction_non_alphanumeric': 0.11100066269052353, 'fraction_numerical': 0.13916500994035785, 'mean_word_length': 4.381461675579323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5476964', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1278, 'n_words': 199}