{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/181348047","pull_request_review_id":111959687,"id":181348047,"diff_hunk":"@@ -0,0 +1,44 @@\n+class Petsc < Formula\n+  desc \"Scalable solution of models that use partial differential equations\"\n+  homepage \"https://www.mcs.anl.gov/petsc/index.html\"\n+  url \"http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.9.0.tar.gz\"\n+  sha256 \"a233e0d7f69c98504a1c3548162c6024f7797dde5556b83b0f98ce7326251ca1\"\n+\n+  depends_on \"gcc\"\n+  depends_on \"hdf5\"\n+  depends_on \"hwloc\"\n+  depends_on \"metis\"\n+  depends_on \"netcdf\"\n+  depends_on \"open-mpi\"\n+  depends_on \"scalapack\"\n+  depends_on \"suite-sparse\"\n+\n+  def install\n+    system \"./configure\", \"CC=mpicc\",\n+                          \"CXX=mpicxx\",\n+                          \"F77=mpif77\",\n+                          \"FC=mpif90\",\n+                          \"--prefix=#{prefix}\",\n+                          \"--with-debugging=0\",\n+                          \"--with-scalar-type=real\",\n+                          \"--with-x=0\",\n+                          \"--with-hdf5-dir=#{Formula[\"hdf5\"].opt_prefix}\",\n+                          \"--with-hwloc-dir=#{Formula[\"hwloc\"].opt_prefix}\",\n+                          \"--with-metis-dir=#{Formula[\"metis\"].opt_prefix}\",\n+                          \"--with-netcdf-dir=#{Formula[\"netcdf\"].opt_prefix}\",\n+                          \"--with-scalapack-dir=#{Formula[\"scalapack\"].opt_prefix}\",\n+                          \"--with-suitesparse-dir=#{Formula[\"suite-sparse\"].opt_prefix}\"\n+    system \"make\", \"all\"\n+    system \"make\", \"install\"\n+  end\n+\n+  test do\n+    test_case = \"#{pkgshare}/examples/src/ksp/ksp/examples/tutorials/ex1.c\"\n+    system \"mpicc\", test_case, \"-I#{include}\", \"-L#{lib}\", \"-lpetsc\"\n+    example_output = shell_output(\"./a.out\")\n+    # This PETSc example prints out several lines of output. The 4th token of\n+    # the last line of text is an error norm, expected to be small.\n+    example_error_norm = example_output.lines.last.split(\" \")[3].to_f","path":"Formula/petsc.rb","position":41,"original_position":41,"commit_id":"b375936da52865ea097c2f1859341fcc6c605364","original_commit_id":"b375936da52865ea097c2f1859341fcc6c605364","user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars2.githubusercontent.com/u/5268928?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"body":"would be good to sanity check the output first so that we don't end up with an array index out of bounds error whenever the test fails","created_at":"2018-04-13T10:28:06Z","updated_at":"2018-04-13T10:28:06Z","html_url":"https://github.com/Homebrew/homebrew-core/pull/23598#discussion_r181348047","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/181348047"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/23598#discussion_r181348047"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598","id":166741760,"html_url":"https://github.com/Homebrew/homebrew-core/pull/23598","diff_url":"https://github.com/Homebrew/homebrew-core/pull/23598.diff","patch_url":"https://github.com/Homebrew/homebrew-core/pull/23598.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/23598","number":23598,"state":"open","locked":false,"title":"PETSc: import from homebrew-science","user":{"login":"fmahebert","id":881747,"avatar_url":"https://avatars1.githubusercontent.com/u/881747?v=4","gravatar_id":"","url":"https://api.github.com/users/fmahebert","html_url":"https://github.com/fmahebert","followers_url":"https://api.github.com/users/fmahebert/followers","following_url":"https://api.github.com/users/fmahebert/following{/other_user}","gists_url":"https://api.github.com/users/fmahebert/gists{/gist_id}","starred_url":"https://api.github.com/users/fmahebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmahebert/subscriptions","organizations_url":"https://api.github.com/users/fmahebert/orgs","repos_url":"https://api.github.com/users/fmahebert/repos","events_url":"https://api.github.com/users/fmahebert/events{/privacy}","received_events_url":"https://api.github.com/users/fmahebert/received_events","type":"User","site_admin":false},"body":"Ports PETSc, with some changes.\r\n\r\nThe changes are to remove some optional dependencies that do not build (see #22660), lead to build failures, etc:\r\n* Address several `brew audit` issues\r\n* Remove optional dependency openblas, because `brew audit` said so\r\n* Remove optional dependency parmetis, which needs a patch to compile\r\n* Remove optional dependency superlu_dist, which depends on parmetis\r\n* Remove optional dependency mumps (had problems building its (optional) dependency scotch)\r\n* Remove optional dependency sundials (had problems building PETSc against this)\r\n\r\n- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)?\r\n- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?\r\n- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?\r\n- [ ] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?\r\n\r\n-----","created_at":"2018-02-02T08:18:39Z","updated_at":"2018-04-13T10:28:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14d7e8063b61a8b5922cc04c83880476afd2922b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":778631131,"url":"https://api.github.com/repos/Homebrew/homebrew-core/labels/almost%20there","name":"almost there","color":"c2e0c6","default":false},{"id":700432661,"url":"https://api.github.com/repos/Homebrew/homebrew-core/labels/science","name":"science","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/23598/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/b375936da52865ea097c2f1859341fcc6c605364","head":{"label":"fmahebert:import-petsc","ref":"import-petsc","sha":"b375936da52865ea097c2f1859341fcc6c605364","user":{"login":"fmahebert","id":881747,"avatar_url":"https://avatars1.githubusercontent.com/u/881747?v=4","gravatar_id":"","url":"https://api.github.com/users/fmahebert","html_url":"https://github.com/fmahebert","followers_url":"https://api.github.com/users/fmahebert/followers","following_url":"https://api.github.com/users/fmahebert/following{/other_user}","gists_url":"https://api.github.com/users/fmahebert/gists{/gist_id}","starred_url":"https://api.github.com/users/fmahebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmahebert/subscriptions","organizations_url":"https://api.github.com/users/fmahebert/orgs","repos_url":"https://api.github.com/users/fmahebert/repos","events_url":"https://api.github.com/users/fmahebert/events{/privacy}","received_events_url":"https://api.github.com/users/fmahebert/received_events","type":"User","site_admin":false},"repo":{"id":116306210,"name":"homebrew-core","full_name":"fmahebert/homebrew-core","owner":{"login":"fmahebert","id":881747,"avatar_url":"https://avatars1.githubusercontent.com/u/881747?v=4","gravatar_id":"","url":"https://api.github.com/users/fmahebert","html_url":"https://github.com/fmahebert","followers_url":"https://api.github.com/users/fmahebert/followers","following_url":"https://api.github.com/users/fmahebert/following{/other_user}","gists_url":"https://api.github.com/users/fmahebert/gists{/gist_id}","starred_url":"https://api.github.com/users/fmahebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmahebert/subscriptions","organizations_url":"https://api.github.com/users/fmahebert/orgs","repos_url":"https://api.github.com/users/fmahebert/repos","events_url":"https://api.github.com/users/fmahebert/events{/privacy}","received_events_url":"https://api.github.com/users/fmahebert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fmahebert/homebrew-core","description":"🍻 Default formulae for the missing package manager for macOS","fork":true,"url":"https://api.github.com/repos/fmahebert/homebrew-core","forks_url":"https://api.github.com/repos/fmahebert/homebrew-core/forks","keys_url":"https://api.github.com/repos/fmahebert/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fmahebert/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fmahebert/homebrew-core/teams","hooks_url":"https://api.github.com/repos/fmahebert/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/fmahebert/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/fmahebert/homebrew-core/events","assignees_url":"https://api.github.com/repos/fmahebert/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/fmahebert/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/fmahebert/homebrew-core/tags","blobs_url":"https://api.github.com/repos/fmahebert/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fmahebert/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fmahebert/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fmahebert/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fmahebert/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/fmahebert/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/fmahebert/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/fmahebert/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/fmahebert/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/fmahebert/homebrew-core/subscription","commits_url":"https://api.github.com/repos/fmahebert/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fmahebert/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fmahebert/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fmahebert/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fmahebert/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/fmahebert/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fmahebert/homebrew-core/merges","archive_url":"https://api.github.com/repos/fmahebert/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fmahebert/homebrew-core/downloads","issues_url":"https://api.github.com/repos/fmahebert/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/fmahebert/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/fmahebert/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/fmahebert/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fmahebert/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/fmahebert/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/fmahebert/homebrew-core/deployments","created_at":"2018-01-04T20:49:40Z","updated_at":"2018-01-04T20:50:10Z","pushed_at":"2018-04-13T10:15:24Z","git_url":"git://github.com/fmahebert/homebrew-core.git","ssh_url":"git@github.com:fmahebert/homebrew-core.git","clone_url":"https://github.com/fmahebert/homebrew-core.git","svn_url":"https://github.com/fmahebert/homebrew-core","homepage":"https://brew.sh","size":166073,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"be3499dd137876dcfd6e30e2b67e63d1ce1a682c","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars2.githubusercontent.com/u/1503512?v=4","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":52855516,"name":"homebrew-core","full_name":"Homebrew/homebrew-core","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars2.githubusercontent.com/u/1503512?v=4","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-core","description":"🍻 Default formulae for the missing package manager for macOS","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew-core","forks_url":"https://api.github.com/repos/Homebrew/homebrew-core/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew-core/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew-core/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew-core/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew-core/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/homebrew-core/deployments","created_at":"2016-03-01T06:58:36Z","updated_at":"2018-04-13T05:58:38Z","pushed_at":"2018-04-13T10:15:26Z","git_url":"git://github.com/Homebrew/homebrew-core.git","ssh_url":"git@github.com:Homebrew/homebrew-core.git","clone_url":"https://github.com/Homebrew/homebrew-core.git","svn_url":"https://github.com/Homebrew/homebrew-core","homepage":"https://brew.sh","size":175206,"stargazers_count":3433,"watchers_count":3433,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4215,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":4215,"open_issues":68,"watchers":3433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/23598"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/23598"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/23598/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/23598/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/b375936da52865ea097c2f1859341fcc6c605364"}},"author_association":"NONE"}}
{"actor":{"display_login":"ilovezfs"}}