<commit_before>require 'formula'

class Zeromq < Formula
  homepage 'http://www.zeromq.org/'
  url 'http://download.zeromq.org/zeromq-3.2.4.tar.gz'
  sha1 '08303259f08edd1faeac2e256f5be3899377135e'

  head do
    url 'https://github.com/zeromq/libzmq.git'

    depends_on :automake
    depends_on :libtool
  end

  bottle do
    root_url 'http://archive.org/download/julialang/bottles'
    cellar :any
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :mountain_lion
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :lion
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :snow_leopard
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :mavericks
  end

  option :universal
  option 'with-pgm', 'Build with PGM extension'

  depends_on 'staticfloat/juliadeps/pkg-config' => :build
  depends_on 'libpgm' if build.include? 'with-pgm'

  def install
    ENV.universal_binary if build.universal?

    args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
    if build.include? 'with-pgm'
      # Use HB libpgm-5.2 because their internal 5.1 is b0rked.
      ENV['OpenPGM_CFLAGS'] = %x[pkg-config --cflags openpgm-5.2].chomp
      ENV['OpenPGM_LIBS'] = %x[pkg-config --libs openpgm-5.2].chomp
      args << "--with-system-pgm"
    end

    system "./autogen.sh" if build.head?
    system "./configure", *args
    system "make"
    system "make install"
  end

  def caveats; <<-EOS.undent
    To install the zmq gem on 10.6 with the system Ruby on a 64-bit machine,
    you may need to do:

        ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=#{opt_prefix}
    EOS
  end
end<commit_msg>I don't want the caveats for zeromq<commit_after>require 'formula'

class Zeromq < Formula
  homepage 'http://www.zeromq.org/'
  url 'http://download.zeromq.org/zeromq-3.2.4.tar.gz'
  sha1 '08303259f08edd1faeac2e256f5be3899377135e'

  head do
    url 'https://github.com/zeromq/libzmq.git'

    depends_on :automake
    depends_on :libtool
  end

  bottle do
    root_url 'http://archive.org/download/julialang/bottles'
    cellar :any
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :mountain_lion
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :lion
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :snow_leopard
    sha1 '5d8a5de5d98aba9f2b7c177858057e51ea42ae62' => :mavericks
  end

  option :universal
  option 'with-pgm', 'Build with PGM extension'

  depends_on 'staticfloat/juliadeps/pkg-config' => :build
  depends_on 'libpgm' if build.include? 'with-pgm'

  def install
    ENV.universal_binary if build.universal?

    args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
    if build.include? 'with-pgm'
      # Use HB libpgm-5.2 because their internal 5.1 is b0rked.
      ENV['OpenPGM_CFLAGS'] = %x[pkg-config --cflags openpgm-5.2].chomp
      ENV['OpenPGM_LIBS'] = %x[pkg-config --libs openpgm-5.2].chomp
      args << "--with-system-pgm"
    end

    system "./autogen.sh" if build.head?
    system "./configure", *args
    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.12340006563833279, 'fraction_numerical': 0.09419100754840827, 'mean_word_length': 3.4302325581395348, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5159364', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1245, 'n_words': 236}