<commit_before>require 'formula'

class Libqglviewer < Formula
  homepage 'http://www.libqglviewer.com/'
  url 'http://www.libqglviewer.com/src/libQGLViewer-2.5.1.tar.gz'
  sha1 '21e10a28153cb649e29bbe9a288eecc280b30f0e'

  head 'https://github.com/GillesDebunne/libQGLViewer.git'

  bottle do
    cellar :any
    sha1 "6c20fb8bac46fad1829c90f07b1d80b4ba797799" => :mavericks
    sha1 "c3abf90b9e9eaa835e5c5faa979670175e2715a2" => :mountain_lion
    sha1 "0ef379d978e5277914f9887bbf6240aa7f81294a" => :lion
  end

  option :universal

  depends_on 'qt'

  def install
    args = ["PREFIX=#{prefix}"]
    args << "CONFIG += x86 x86_64" if build.universal?

    cd 'QGLViewer' do
      system "qmake", *args
      system "make"
    end
  end

  def caveats; <<-EOS.undent
    To avoid issues with runtime linking and facilitate usage of the library:
      sudo ln -s "#{prefix}/QGLViewer.framework" "/Library/Frameworks/QGLViewer.framework"
    EOS
  end
end
<commit_msg>libqglviewer: remove caveat recommending sudo.<commit_after>require 'formula'

class Libqglviewer < Formula
  homepage 'http://www.libqglviewer.com/'
  url 'http://www.libqglviewer.com/src/libQGLViewer-2.5.1.tar.gz'
  sha1 '21e10a28153cb649e29bbe9a288eecc280b30f0e'

  head 'https://github.com/GillesDebunne/libQGLViewer.git'

  bottle do
    cellar :any
    sha1 "6c20fb8bac46fad1829c90f07b1d80b4ba797799" => :mavericks
    sha1 "c3abf90b9e9eaa835e5c5faa979670175e2715a2" => :mountain_lion
    sha1 "0ef379d978e5277914f9887bbf6240aa7f81294a" => :lion
  end

  option :universal

  depends_on 'qt'

  def install
    args = ["PREFIX=#{prefix}"]
    args << "CONFIG += x86 x86_64" if build.universal?

    cd 'QGLViewer' do
      system "qmake", *args
      system "make"
    end
  end
end

{'fraction_non_alphanumeric': 0.10693970420932879, 'fraction_numerical': 0.1285551763367463, 'mean_word_length': 3.8591160220994474, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '7212335', 'n_tokens_mistral': 862, 'n_tokens_neox': 737, 'n_words': 130}