{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/33427656","id":33427656,"diff_hunk":"@@ -0,0 +1,100 @@\n+class Openvdb < Formula\n+  desc \"Sparse volume processing toolkit\"\n+  homepage \"http://www.openvdb.org/\"\n+  url \"https://github.com/dreamworksanimation/openvdb/archive/v3.0.0.tar.gz\"\n+  sha256 \"6c90cfda032c54876b321031717c13ea56a6b7b15c911d3edfbb2ad7af49700e\"\n+  head \"https://github.com/dreamworksanimation/openvdb.git\"\n+\n+  bottle do\n+    sha256 \"843a6b55c84185101c1e1b379751e99cd0215f2fce7534ef3a2387a33a7c91a5\" => :yosemite\n+  end\n+\n+  option 'tests', 'Installs and runs the unit tests for the OpenVDB library'\n+  option 'logging', 'Requires log4cplus'\n+  option 'docs', 'Installs documentation'\n+\n+  depends_on \"boost\"\n+  depends_on \"openexr\"\n+  depends_on \"ilmbase\"\n+  depends_on \"tbb\"\n+  depends_on \"jemalloc\" => :recommended\n+  depends_on \"homebrew/versions/glfw3\" => :recommended\n+\n+  if build.with? \"tests\"\n+    depends_on \"cppunit\"\n+  end\n+\n+  if build.with? \"docs\"\n+    depends_on \"doxygen\"\n+  end\n+\n+  if build.with? \"logging\"\n+    depends_on \"log4cplus\"\n+  end\n+\n+  resource \"test_file\" do\n+    url \"http://www.openvdb.org/download/models/cube.vdb.zip\"\n+    sha256 \"05476e84e91c0214ad7593850e6e7c28f777aa4ff0a1d88d91168a7dd050f922\"\n+  end\n+\n+  def install\n+    # Adjust hard coded paths in Makefile\n+    inreplace \"openvdb/Makefile\", \"/tmp/OpenVDB\", \"#{prefix}\"\n+    inreplace \"openvdb/Makefile\", \"BOOST_INCL_DIR := $(HT)/include\", \"BOOST_INCL_DIR:=#{Formula[\"boost\"].opt_lib}/include\"\n+    inreplace \"openvdb/Makefile\", \"BOOST_LIB_DIR := $(HDSO)\", \"BOOST_LIB_DIR:=#{Formula[\"boost\"].opt_lib}\"\n+    inreplace \"openvdb/Makefile\", \"TBB_INCL_DIR := $(HT)/include\", \"TBB_INCL_DIR:=#{Formula[\"tbb\"].opt_lib}/include\"\n+    inreplace \"openvdb/Makefile\", \"TBB_LIB_DIR := $(HDSO)\", \"TBB_LIB_DIR:=#{Formula[\"tbb\"].opt_lib}/lib\"\n+    inreplace \"openvdb/Makefile\", \"EXR_INCL_DIR := $(HT)/include\", \"EXR_INCL_DIR:=#{Formula[\"openexr\"].opt_lib}/include\"\n+    inreplace \"openvdb/Makefile\", \"EXR_LIB_DIR := $(HDSO)\", \"EXR_LIB_DIR:=#{Formula[\"openexr\"].opt_lib}/lib\"\n+    inreplace \"openvdb/Makefile\", \"-lboost_thread\", \"-lboost_thread-mt\"\n+\n+    inreplace \"openvdb/Makefile\", \"PYTHON_VERSION := 2.6\", \"PYTHON_VERSION :=\"\n+    inreplace \"openvdb/Makefile\", \"NUMPY_INCL_DIR := /rel/map/generic-2013.22/include\", \"NUMPY_INCL_DIR :=\"\n+\n+  if build.with? \"jemalloc\"\n+    inreplace \"openvdb/Makefile\", \"CONCURRENT_MALLOC_LIB_DIR := $(HDSO)\", \"CONCURRENT_MALLOC_LIB_DIR:=#{Formula[\"jemalloc\"].opt_lib}/lib\"\n+  else\n+    inreplace \"openvdb/Makefile\", \"-ljemalloc\", \"\"\n+  end\n+\n+  if build.with? \"glfw3\"\n+    inreplace \"openvdb/Makefile\", \"-lglfw\", \"-lglfw3\"\n+  else\n+    inreplace \"openvdb/Makefile\", \"-lglfw\", \"\"\n+  end\n+\n+  if build.without? \"doxygen\"\n+  inreplace \"openvdb/Makefile\", \"DOXYGEN := doxygen\", \"DOXYGEN :=\"\n+  end\n+\n+  if build.with? \"cppunit\"\n+    inreplace \"openvdb/Makefile\", \"CPPUNIT_INCL_DIR := /rel/map/generic-2013.22/sys_include\", \"CPPUNIT_INCL_DIR:=#{Formula[\"cppunit\"].opt_lib}/include\"\n+    inreplace \"openvdb/Makefile\", \"CPPUNIT_LIB_DIR := /rel/depot/third_party_build/cppunit/1.10.2-7/opt-ws5-x86_64-gccWS5_64/lib\", \"CPPUNIT_LIB_DIR:=#{Formula[\"cppunit\"].opt_lib}/lib\"\n+  else\n+    inreplace \"openvdb/Makefile\", \"CPPUNIT_INCL_DIR := /rel/map/generic-2013.22/sys_include\", \"\"\n+  end\n+\n+  if build.with? \"log4cplus\"\n+    inreplace \"openvdb/Makefile\", \"LOG4CPLUS_INCL_DIR := /rel/folio/log4cplus/log4cplus-1.0.3-latest/sys_include\", \"LOG4CPLUS_INCL_DIR:=#{Formula[\"log4cplus\"].opt_lib}/include\"\n+    inreplace \"openvdb/Makefile\", \"LOG4CPLUS_LIB_DIR := /rel/folio/log4cplus/log4cplus-1.0.3-latest/library\", \"LOG4CPLUS_LIB_DIR:=#{Formula[\"log4cplus\"].opt_lib}/lib\"\n+  else\n+    inreplace \"openvdb/Makefile\", \"LOG4CPLUS_INCL_DIR := /rel/folio/log4cplus/log4cplus-1.0.3-latest/sys_include\", \"LOG4CPLUS_INCL_DIR:=\"\n+  end\n+\n+  # Blosc is not yet supported.\n+  inreplace \"openvdb/Makefile\", \"BLOSC_INCL_DIR := $(HT)/include\", \"BLOSC_INCL_DIR :=\"\n+\n+  ENV.append_to_cflags \"-std=c++11\"\n+\n+  ENV.append_to_cflags \"-I #{buildpath}\"\n+\n+  cd \"openvdb\"","path":"Library/Formula/openvdb.rb","position":91,"original_position":91,"commit_id":"19d9cb86372065d0b11ea1e97ea48ecb8ae877a8","original_commit_id":"19d9cb86372065d0b11ea1e97ea48ecb8ae877a8","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"body":"```ruby\r\n  cd \"openvdb\" do\r\n    system \"make\", \"install\"\r\n  end\r\nend\r\n```\r\n","created_at":"2015-06-28T22:14:43Z","updated_at":"2015-06-28T22:14:43Z","html_url":"https://github.com/Homebrew/homebrew/pull/41158#discussion_r33427656","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/33427656"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/41158#discussion_r33427656"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158","id":38730419,"html_url":"https://github.com/Homebrew/homebrew/pull/41158","diff_url":"https://github.com/Homebrew/homebrew/pull/41158.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/41158.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41158","number":41158,"state":"open","locked":false,"title":"New formula: openvdb-3.0.0","user":{"login":"jehutymax","id":4051852,"avatar_url":"https://avatars.githubusercontent.com/u/4051852?v=3","gravatar_id":"","url":"https://api.github.com/users/jehutymax","html_url":"https://github.com/jehutymax","followers_url":"https://api.github.com/users/jehutymax/followers","following_url":"https://api.github.com/users/jehutymax/following{/other_user}","gists_url":"https://api.github.com/users/jehutymax/gists{/gist_id}","starred_url":"https://api.github.com/users/jehutymax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jehutymax/subscriptions","organizations_url":"https://api.github.com/users/jehutymax/orgs","repos_url":"https://api.github.com/users/jehutymax/repos","events_url":"https://api.github.com/users/jehutymax/events{/privacy}","received_events_url":"https://api.github.com/users/jehutymax/received_events","type":"User","site_admin":false},"body":"I made extensive use of inreplace instead of passing Makefile arguments along with \"make\", \"install\" because given the number of variables and the fact that some needed to be set to empty, it quickly became unwieldy. ","created_at":"2015-06-28T19:22:16Z","updated_at":"2015-06-28T22:14:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1d5f6ebcd6f6165189464e8491a1d1627efaf1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41158/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/19d9cb86372065d0b11ea1e97ea48ecb8ae877a8","head":{"label":"jehutymax:master","ref":"master","sha":"19d9cb86372065d0b11ea1e97ea48ecb8ae877a8","user":{"login":"jehutymax","id":4051852,"avatar_url":"https://avatars.githubusercontent.com/u/4051852?v=3","gravatar_id":"","url":"https://api.github.com/users/jehutymax","html_url":"https://github.com/jehutymax","followers_url":"https://api.github.com/users/jehutymax/followers","following_url":"https://api.github.com/users/jehutymax/following{/other_user}","gists_url":"https://api.github.com/users/jehutymax/gists{/gist_id}","starred_url":"https://api.github.com/users/jehutymax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jehutymax/subscriptions","organizations_url":"https://api.github.com/users/jehutymax/orgs","repos_url":"https://api.github.com/users/jehutymax/repos","events_url":"https://api.github.com/users/jehutymax/events{/privacy}","received_events_url":"https://api.github.com/users/jehutymax/received_events","type":"User","site_admin":false},"repo":{"id":38210774,"name":"homebrew","full_name":"jehutymax/homebrew","owner":{"login":"jehutymax","id":4051852,"avatar_url":"https://avatars.githubusercontent.com/u/4051852?v=3","gravatar_id":"","url":"https://api.github.com/users/jehutymax","html_url":"https://github.com/jehutymax","followers_url":"https://api.github.com/users/jehutymax/followers","following_url":"https://api.github.com/users/jehutymax/following{/other_user}","gists_url":"https://api.github.com/users/jehutymax/gists{/gist_id}","starred_url":"https://api.github.com/users/jehutymax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jehutymax/subscriptions","organizations_url":"https://api.github.com/users/jehutymax/orgs","repos_url":"https://api.github.com/users/jehutymax/repos","events_url":"https://api.github.com/users/jehutymax/events{/privacy}","received_events_url":"https://api.github.com/users/jehutymax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jehutymax/homebrew","description":":beer: The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/jehutymax/homebrew","forks_url":"https://api.github.com/repos/jehutymax/homebrew/forks","keys_url":"https://api.github.com/repos/jehutymax/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jehutymax/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jehutymax/homebrew/teams","hooks_url":"https://api.github.com/repos/jehutymax/homebrew/hooks","issue_events_url":"https://api.github.com/repos/jehutymax/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/jehutymax/homebrew/events","assignees_url":"https://api.github.com/repos/jehutymax/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/jehutymax/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/jehutymax/homebrew/tags","blobs_url":"https://api.github.com/repos/jehutymax/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jehutymax/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jehutymax/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/jehutymax/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jehutymax/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/jehutymax/homebrew/languages","stargazers_url":"https://api.github.com/repos/jehutymax/homebrew/stargazers","contributors_url":"https://api.github.com/repos/jehutymax/homebrew/contributors","subscribers_url":"https://api.github.com/repos/jehutymax/homebrew/subscribers","subscription_url":"https://api.github.com/repos/jehutymax/homebrew/subscription","commits_url":"https://api.github.com/repos/jehutymax/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/jehutymax/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/jehutymax/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/jehutymax/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/jehutymax/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/jehutymax/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jehutymax/homebrew/merges","archive_url":"https://api.github.com/repos/jehutymax/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jehutymax/homebrew/downloads","issues_url":"https://api.github.com/repos/jehutymax/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/jehutymax/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/jehutymax/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/jehutymax/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jehutymax/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/jehutymax/homebrew/releases{/id}","created_at":"2015-06-28T19:12:22Z","updated_at":"2015-06-28T19:12:39Z","pushed_at":"2015-06-28T19:16:52Z","git_url":"git://github.com/jehutymax/homebrew.git","ssh_url":"git@github.com:jehutymax/homebrew.git","clone_url":"https://github.com/jehutymax/homebrew.git","svn_url":"https://github.com/jehutymax/homebrew","homepage":"http://brew.sh","size":48024,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"376c055d7463f61d144fa0f0484d2611a4c80d96","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":206084,"name":"homebrew","full_name":"Homebrew/homebrew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew","description":":beer: The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","created_at":"2009-05-20T19:38:37Z","updated_at":"2015-06-28T21:48:44Z","pushed_at":"2015-06-28T21:48:32Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1542032,"stargazers_count":23852,"watchers_count":23852,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":11981,"mirror_url":null,"open_issues_count":334,"forks":11981,"open_issues":334,"watchers":23852,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/41158"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/41158"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/41158/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/41158/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/19d9cb86372065d0b11ea1e97ea48ecb8ae877a8"}}}}