{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/44891970","id":44891970,"diff_hunk":"@@ -28,6 +30,28 @@ def install\n     inreplace \"glew.pc.in\", \"Requires: @requireslib@\", \"\"\n     system \"make\", \"GLEW_PREFIX=#{prefix}\", \"GLEW_DEST=#{prefix}\", \"all\"\n     system \"make\", \"GLEW_PREFIX=#{prefix}\", \"GLEW_DEST=#{prefix}\", \"install.all\"\n+\n+    doc.install Dir[\"doc/*\"]\n+  end\n+\n+  test do\n+    (testpath/\"test.c\").write <<-EOS.undent\n+      #include <GL/glew.h>\n+      #include <GLUT/glut.h>\n+\n+      int main(int argc, char** argv) {\n+        glutinit(&argc, argv);\n+        glutCreateWindow(\"GLEW Test\");\n+        GLenum err = glewInit();\n+        if (GLEW_OK != err) {\n+          return 1;\n+        }\n+        return 0;\n+      }\n+    EOS\n+    system ENV.cc, \"-framework\", \"OpenGL\", \"-framework\", \"GLUT\",\n+           \"-lglew\", testpath/\"test.c\", \"-o\", \"test\"\n+    system \"./test\"\n   end\n \n   test do","path":"Library/Formula/glew.rb","position":41,"original_position":41,"commit_id":"addd5f107d815db5b02ad7a7fec75fcbc75e3d8e","original_commit_id":"addd5f107d815db5b02ad7a7fec75fcbc75e3d8e","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"body":"Two test block? You may want to remote the old one.","created_at":"2015-11-16T06:20:29Z","updated_at":"2015-11-16T06:20:29Z","html_url":"https://github.com/Homebrew/homebrew/pull/46029#discussion_r44891970","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/44891970"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46029#discussion_r44891970"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029","id":50772360,"html_url":"https://github.com/Homebrew/homebrew/pull/46029","diff_url":"https://github.com/Homebrew/homebrew/pull/46029.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/46029.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46029","number":46029,"state":"open","locked":false,"title":"glew 1.13.0","user":{"login":"dunn","id":985416,"avatar_url":"https://avatars.githubusercontent.com/u/985416?v=3","gravatar_id":"","url":"https://api.github.com/users/dunn","html_url":"https://github.com/dunn","followers_url":"https://api.github.com/users/dunn/followers","following_url":"https://api.github.com/users/dunn/following{/other_user}","gists_url":"https://api.github.com/users/dunn/gists{/gist_id}","starred_url":"https://api.github.com/users/dunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunn/subscriptions","organizations_url":"https://api.github.com/users/dunn/orgs","repos_url":"https://api.github.com/users/dunn/repos","events_url":"https://api.github.com/users/dunn/events{/privacy}","received_events_url":"https://api.github.com/users/dunn/received_events","type":"User","site_admin":false},"body":"Another try at #43062.","created_at":"2015-11-16T05:18:20Z","updated_at":"2015-11-16T06:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6163c3eeac2a5435a10f343f3127c25cb358108","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46029/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/addd5f107d815db5b02ad7a7fec75fcbc75e3d8e","head":{"label":"dunn:glew","ref":"glew","sha":"addd5f107d815db5b02ad7a7fec75fcbc75e3d8e","user":{"login":"dunn","id":985416,"avatar_url":"https://avatars.githubusercontent.com/u/985416?v=3","gravatar_id":"","url":"https://api.github.com/users/dunn","html_url":"https://github.com/dunn","followers_url":"https://api.github.com/users/dunn/followers","following_url":"https://api.github.com/users/dunn/following{/other_user}","gists_url":"https://api.github.com/users/dunn/gists{/gist_id}","starred_url":"https://api.github.com/users/dunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunn/subscriptions","organizations_url":"https://api.github.com/users/dunn/orgs","repos_url":"https://api.github.com/users/dunn/repos","events_url":"https://api.github.com/users/dunn/events{/privacy}","received_events_url":"https://api.github.com/users/dunn/received_events","type":"User","site_admin":false},"repo":{"id":24301169,"name":"homebrew","full_name":"dunn/homebrew","owner":{"login":"dunn","id":985416,"avatar_url":"https://avatars.githubusercontent.com/u/985416?v=3","gravatar_id":"","url":"https://api.github.com/users/dunn","html_url":"https://github.com/dunn","followers_url":"https://api.github.com/users/dunn/followers","following_url":"https://api.github.com/users/dunn/following{/other_user}","gists_url":"https://api.github.com/users/dunn/gists{/gist_id}","starred_url":"https://api.github.com/users/dunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunn/subscriptions","organizations_url":"https://api.github.com/users/dunn/orgs","repos_url":"https://api.github.com/users/dunn/repos","events_url":"https://api.github.com/users/dunn/events{/privacy}","received_events_url":"https://api.github.com/users/dunn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dunn/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/dunn/homebrew","forks_url":"https://api.github.com/repos/dunn/homebrew/forks","keys_url":"https://api.github.com/repos/dunn/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dunn/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dunn/homebrew/teams","hooks_url":"https://api.github.com/repos/dunn/homebrew/hooks","issue_events_url":"https://api.github.com/repos/dunn/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/dunn/homebrew/events","assignees_url":"https://api.github.com/repos/dunn/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/dunn/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/dunn/homebrew/tags","blobs_url":"https://api.github.com/repos/dunn/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dunn/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dunn/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/dunn/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dunn/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/dunn/homebrew/languages","stargazers_url":"https://api.github.com/repos/dunn/homebrew/stargazers","contributors_url":"https://api.github.com/repos/dunn/homebrew/contributors","subscribers_url":"https://api.github.com/repos/dunn/homebrew/subscribers","subscription_url":"https://api.github.com/repos/dunn/homebrew/subscription","commits_url":"https://api.github.com/repos/dunn/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/dunn/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/dunn/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/dunn/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/dunn/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/dunn/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dunn/homebrew/merges","archive_url":"https://api.github.com/repos/dunn/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dunn/homebrew/downloads","issues_url":"https://api.github.com/repos/dunn/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/dunn/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/dunn/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/dunn/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dunn/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/dunn/homebrew/releases{/id}","created_at":"2014-09-21T19:28:40Z","updated_at":"2015-07-06T02:53:15Z","pushed_at":"2015-11-16T05:16:57Z","git_url":"git://github.com/dunn/homebrew.git","ssh_url":"git@github.com:dunn/homebrew.git","clone_url":"https://github.com/dunn/homebrew.git","svn_url":"https://github.com/dunn/homebrew","homepage":"http://brew.sh","size":67805,"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":"4559c20f6da73ccdb5514bec933d69edacc7cb9a","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-11-16T04:26:52Z","pushed_at":"2015-11-16T05:31:13Z","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":1682768,"stargazers_count":27246,"watchers_count":27246,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":13490,"mirror_url":null,"open_issues_count":518,"forks":13490,"open_issues":518,"watchers":27246,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46029"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46029"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46029/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46029/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/addd5f107d815db5b02ad7a7fec75fcbc75e3d8e"}}}}