<commit_before>require 'formula'

class Openimageio < Formula
  url 'https://github.com/OpenImageIO/oiio/tarball/Release-0.9.0'
  md5 'b9dc646c57c2137d7a9fe8bbb91e0ae7'
  version "0.9.0"
  homepage 'http://openimageio.org'

  depends_on 'cmake' => :build
  depends_on 'pkg-config' => :build
  depends_on 'ilmbase'
  depends_on 'openexr'
  depends_on 'boost'

  # build plugins
  depends_on 'libtiff' => :optional
  depends_on 'jpeg'    => :optional
  depends_on 'jasper'  => :optional

  # Qt linking, to build iv, is not currently working.
  # Would need qt and glew as deps for this.

  depends_on 'tbb' => :optional

  def install
    # Allow compilation against boost 1.46.0
    # See https://github.com/OpenImageIO/oiio/issues/37
    inreplace "src/libOpenImageIO/imageioplugin.cpp",
      "#include <boost/filesystem.hpp>",
      "#define BOOST_FILESYSTEM_VERSION 2\n#include <boost/filesystem.hpp>"

    # Add include path for libpng explicitly
    system "cmake src/ #{std_cmake_parameters} -DUSE_QT:BOOL=OFF -DEMBEDPLUGINS:BOOL=ON -DCMAKE_CXX_FLAGS=-I/usr/X11R6/include"
    system "make install"
  end
end<commit_msg>Changed X11R6 paths to X11<commit_after>require 'formula'

class Openimageio < Formula
  url 'https://github.com/OpenImageIO/oiio/tarball/Release-0.9.0'
  md5 'b9dc646c57c2137d7a9fe8bbb91e0ae7'
  version "0.9.0"
  homepage 'http://openimageio.org'

  depends_on 'cmake' => :build
  depends_on 'pkg-config' => :build
  depends_on 'ilmbase'
  depends_on 'openexr'
  depends_on 'boost'

  # build plugins
  depends_on 'libtiff' => :optional
  depends_on 'jpeg'    => :optional
  depends_on 'jasper'  => :optional

  # Qt linking, to build iv, is not currently working.
  # Would need qt and glew as deps for this.

  depends_on 'tbb' => :optional

  def install
    # Allow compilation against boost 1.46.0
    # See https://github.com/OpenImageIO/oiio/issues/37
    inreplace "src/libOpenImageIO/imageioplugin.cpp",
      "#include <boost/filesystem.hpp>",
      "#define BOOST_FILESYSTEM_VERSION 2\n#include <boost/filesystem.hpp>"

    # Add include path for libpng explicitly
    system "cmake src/ #{std_cmake_parameters} -DUSE_QT:BOOL=OFF -DEMBEDPLUGINS:BOOL=ON -DCMAKE_CXX_FLAGS=-I/usr/X11/include"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.11567328918322296, 'fraction_numerical': 0.031788079470198675, 'mean_word_length': 3.8731182795698924, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '7410943', 'n_tokens_mistral': 867, 'n_tokens_neox': 840, 'n_words': 187}