{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/22407355","id":22407355,"diff_hunk":"@@ -0,0 +1,41 @@\n+require \"formula\"\n+\n+class Libhttpserver < Formula\n+  homepage \"https://github.com/etr/libhttpserver\"\n+  url \"https://github.com/etr/libhttpserver/archive/v0.7.1.tar.gz\"\n+  head \"https://github.com/etr/libhttpserver.git\"\n+  sha1 \"b36c8a5f523c04613d6a36c86bbb31a2b92aab83\"\n+\n+  option \"enable-cpp11\", \"Enable c++11 std classes\"\n+  depends_on \"libmicrohttpd\"\n+\n+  depends_on \"pkg-config\" => :build\n+  depends_on \"autoconf\" => :build\n+  depends_on \"automake\" => :build\n+  depends_on \"libtool\" => :build\n+\n+\n+  option :universal\n+\n+  def install\n+    ENV.universal_binary if build.universal?\n+\n+    ENV[\"LIBMICROHTTPD_CFLAGS\"] = '$(pkg-config libmicrohttpd --cflags)'\n+    ENV[\"LIBMICROHTTPD_LIBS\"] = '$(pkg-config libmicrohttpd --libs)'","path":"Library/Formula/libhttpserver.rb","position":24,"original_position":24,"commit_id":"4a2c715c1e426b12f1405cba29c94a9a26491210","original_commit_id":"4a2c715c1e426b12f1405cba29c94a9a26491210","user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"body":"Also: this should use backticks instead of embedding a bash command inside a environment variable.","created_at":"2015-01-02T09:58:15Z","updated_at":"2015-01-02T09:58:15Z","html_url":"https://github.com/Homebrew/homebrew/pull/35448#discussion_r22407355","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/22407355"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/35448#discussion_r22407355"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448","id":26750526,"html_url":"https://github.com/Homebrew/homebrew/pull/35448","diff_url":"https://github.com/Homebrew/homebrew/pull/35448.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/35448.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/35448","number":35448,"state":"open","locked":false,"title":"add libhttpserver 0.7.1","user":{"login":"guoxiao","id":528318,"avatar_url":"https://avatars.githubusercontent.com/u/528318?v=3","gravatar_id":"","url":"https://api.github.com/users/guoxiao","html_url":"https://github.com/guoxiao","followers_url":"https://api.github.com/users/guoxiao/followers","following_url":"https://api.github.com/users/guoxiao/following{/other_user}","gists_url":"https://api.github.com/users/guoxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/guoxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoxiao/subscriptions","organizations_url":"https://api.github.com/users/guoxiao/orgs","repos_url":"https://api.github.com/users/guoxiao/repos","events_url":"https://api.github.com/users/guoxiao/events{/privacy}","received_events_url":"https://api.github.com/users/guoxiao/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-02T06:07:42Z","updated_at":"2015-01-02T09:58:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b25ac994928af8ec77a630cc1755c940f5dd38a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/35448/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/4a2c715c1e426b12f1405cba29c94a9a26491210","head":{"label":"guoxiao:master","ref":"master","sha":"4a2c715c1e426b12f1405cba29c94a9a26491210","user":{"login":"guoxiao","id":528318,"avatar_url":"https://avatars.githubusercontent.com/u/528318?v=3","gravatar_id":"","url":"https://api.github.com/users/guoxiao","html_url":"https://github.com/guoxiao","followers_url":"https://api.github.com/users/guoxiao/followers","following_url":"https://api.github.com/users/guoxiao/following{/other_user}","gists_url":"https://api.github.com/users/guoxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/guoxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoxiao/subscriptions","organizations_url":"https://api.github.com/users/guoxiao/orgs","repos_url":"https://api.github.com/users/guoxiao/repos","events_url":"https://api.github.com/users/guoxiao/events{/privacy}","received_events_url":"https://api.github.com/users/guoxiao/received_events","type":"User","site_admin":false},"repo":{"id":26420646,"name":"homebrew","full_name":"guoxiao/homebrew","owner":{"login":"guoxiao","id":528318,"avatar_url":"https://avatars.githubusercontent.com/u/528318?v=3","gravatar_id":"","url":"https://api.github.com/users/guoxiao","html_url":"https://github.com/guoxiao","followers_url":"https://api.github.com/users/guoxiao/followers","following_url":"https://api.github.com/users/guoxiao/following{/other_user}","gists_url":"https://api.github.com/users/guoxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/guoxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoxiao/subscriptions","organizations_url":"https://api.github.com/users/guoxiao/orgs","repos_url":"https://api.github.com/users/guoxiao/repos","events_url":"https://api.github.com/users/guoxiao/events{/privacy}","received_events_url":"https://api.github.com/users/guoxiao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guoxiao/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/guoxiao/homebrew","forks_url":"https://api.github.com/repos/guoxiao/homebrew/forks","keys_url":"https://api.github.com/repos/guoxiao/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guoxiao/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guoxiao/homebrew/teams","hooks_url":"https://api.github.com/repos/guoxiao/homebrew/hooks","issue_events_url":"https://api.github.com/repos/guoxiao/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/guoxiao/homebrew/events","assignees_url":"https://api.github.com/repos/guoxiao/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/guoxiao/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/guoxiao/homebrew/tags","blobs_url":"https://api.github.com/repos/guoxiao/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guoxiao/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guoxiao/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/guoxiao/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guoxiao/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/guoxiao/homebrew/languages","stargazers_url":"https://api.github.com/repos/guoxiao/homebrew/stargazers","contributors_url":"https://api.github.com/repos/guoxiao/homebrew/contributors","subscribers_url":"https://api.github.com/repos/guoxiao/homebrew/subscribers","subscription_url":"https://api.github.com/repos/guoxiao/homebrew/subscription","commits_url":"https://api.github.com/repos/guoxiao/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/guoxiao/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/guoxiao/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/guoxiao/homebrew/issues/comments/{number}","contents_url":"https://api.github.com/repos/guoxiao/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/guoxiao/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guoxiao/homebrew/merges","archive_url":"https://api.github.com/repos/guoxiao/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guoxiao/homebrew/downloads","issues_url":"https://api.github.com/repos/guoxiao/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/guoxiao/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/guoxiao/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/guoxiao/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guoxiao/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/guoxiao/homebrew/releases{/id}","created_at":"2014-11-10T04:16:29Z","updated_at":"2015-01-02T06:57:52Z","pushed_at":"2015-01-02T06:57:52Z","git_url":"git://github.com/guoxiao/homebrew.git","ssh_url":"git@github.com:guoxiao/homebrew.git","clone_url":"https://github.com/guoxiao/homebrew.git","svn_url":"https://github.com/guoxiao/homebrew","homepage":"http://brew.sh","size":51924,"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":"cb412be50429809c0de4ace67834b4145263fe37","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":"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-01-02T09:55:27Z","pushed_at":"2015-01-02T09:55:27Z","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":1150198,"stargazers_count":20808,"watchers_count":20808,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":10385,"mirror_url":null,"open_issues_count":226,"forks":10385,"open_issues":226,"watchers":20808,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/35448"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/35448"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/35448/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/35448/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/4a2c715c1e426b12f1405cba29c94a9a26491210"}}}}