{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/32461767","id":32461767,"diff_hunk":"@@ -0,0 +1,37 @@\n+class Ucon64 < Formula\n+  desc \"A ROM backup tool and emulator's Swiss Army knife program.\"\n+  homepage \"http://ucon64.sourceforge.net/\"\n+  url \"https://downloads.sourceforge.net/ucon64/ucon64-2.0.0-src.tar.gz\"\n+  sha256 \"62064324a1912387f84ac9d4c521c5d5e7b80f2567e9f61bf0ab3e1d976c0127\"\n+\n+  def install\n+    # ucon64's normal install process installs the discmage library in\n+    # the user's home folder. We want to store it inside the prefix, so\n+    # we have to change the default value of ~/.ucon64rc to point to it.\n+    # .ucon64rc is generated by the binary, so we adjust the default that\n+    # is set when no .ucon64rc exists.\n+    inreplace \"src/ucon64_misc.c\", \"~/.ucon64/discmage.dylib\",\n+                                   opt_prefix/\"libexec/libdiscmage.dylib\"\n+\n+    cd \"src\" do\n+      system \"./configure\", \"--disable-debug\",\n+                            \"--disable-dependency-tracking\",\n+                            \"--disable-silent-rules\",\n+                            \"--prefix=#{prefix}\"\n+      system \"make\"\n+      bin.install \"ucon64\"\n+      libexec.install \"libdiscmage/discmage.so\" => \"libdiscmage.dylib\"\n+    end\n+  end\n+\n+  def caveats\n+    <<-EOS.undent\n+      You can copy/move your DAT file collection to $HOME/.ucon64/dat\n+      Be sure to check $HOME/.ucon64rc for some options after you've run uCON64 once.\n+    EOS\n+  end\n+\n+  test do\n+    system \"#{bin}/ucon64\", \"--help\", \"--snes\"","path":"Library/Formula/ucon64.rb","position":35,"original_position":35,"commit_id":"1965e230b0d0d3c20456c5fd8be67ef91215c434","original_commit_id":"1965e230b0d0d3c20456c5fd8be67ef91215c434","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":"You could create a resource and only `stage` it during the `test` block; that's essentially equivalent. Good idea!","created_at":"2015-06-15T20:17:50Z","updated_at":"2015-06-15T20:17:50Z","html_url":"https://github.com/Homebrew/homebrew/pull/40170#discussion_r32461767","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/32461767"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/40170#discussion_r32461767"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170","id":36459534,"html_url":"https://github.com/Homebrew/homebrew/pull/40170","diff_url":"https://github.com/Homebrew/homebrew/pull/40170.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/40170.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/40170","number":40170,"state":"open","locked":false,"title":"ucon64 2.0.0 (new formula)","user":{"login":"parashep","id":4998133,"avatar_url":"https://avatars.githubusercontent.com/u/4998133?v=3","gravatar_id":"","url":"https://api.github.com/users/parashep","html_url":"https://github.com/parashep","followers_url":"https://api.github.com/users/parashep/followers","following_url":"https://api.github.com/users/parashep/following{/other_user}","gists_url":"https://api.github.com/users/parashep/gists{/gist_id}","starred_url":"https://api.github.com/users/parashep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parashep/subscriptions","organizations_url":"https://api.github.com/users/parashep/orgs","repos_url":"https://api.github.com/users/parashep/repos","events_url":"https://api.github.com/users/parashep/events{/privacy}","received_events_url":"https://api.github.com/users/parashep/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-28T22:58:02Z","updated_at":"2015-06-15T20:17:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6acc08444ec45a0258c7e3d4ef627344d324d98c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/40170/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/1965e230b0d0d3c20456c5fd8be67ef91215c434","head":{"label":"parashep:ucon64","ref":"ucon64","sha":"1965e230b0d0d3c20456c5fd8be67ef91215c434","user":{"login":"parashep","id":4998133,"avatar_url":"https://avatars.githubusercontent.com/u/4998133?v=3","gravatar_id":"","url":"https://api.github.com/users/parashep","html_url":"https://github.com/parashep","followers_url":"https://api.github.com/users/parashep/followers","following_url":"https://api.github.com/users/parashep/following{/other_user}","gists_url":"https://api.github.com/users/parashep/gists{/gist_id}","starred_url":"https://api.github.com/users/parashep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parashep/subscriptions","organizations_url":"https://api.github.com/users/parashep/orgs","repos_url":"https://api.github.com/users/parashep/repos","events_url":"https://api.github.com/users/parashep/events{/privacy}","received_events_url":"https://api.github.com/users/parashep/received_events","type":"User","site_admin":false},"repo":{"id":36470286,"name":"homebrew","full_name":"parashep/homebrew","owner":{"login":"parashep","id":4998133,"avatar_url":"https://avatars.githubusercontent.com/u/4998133?v=3","gravatar_id":"","url":"https://api.github.com/users/parashep","html_url":"https://github.com/parashep","followers_url":"https://api.github.com/users/parashep/followers","following_url":"https://api.github.com/users/parashep/following{/other_user}","gists_url":"https://api.github.com/users/parashep/gists{/gist_id}","starred_url":"https://api.github.com/users/parashep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parashep/subscriptions","organizations_url":"https://api.github.com/users/parashep/orgs","repos_url":"https://api.github.com/users/parashep/repos","events_url":"https://api.github.com/users/parashep/events{/privacy}","received_events_url":"https://api.github.com/users/parashep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parashep/homebrew","description":":beer: The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/parashep/homebrew","forks_url":"https://api.github.com/repos/parashep/homebrew/forks","keys_url":"https://api.github.com/repos/parashep/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parashep/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parashep/homebrew/teams","hooks_url":"https://api.github.com/repos/parashep/homebrew/hooks","issue_events_url":"https://api.github.com/repos/parashep/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/parashep/homebrew/events","assignees_url":"https://api.github.com/repos/parashep/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/parashep/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/parashep/homebrew/tags","blobs_url":"https://api.github.com/repos/parashep/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parashep/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parashep/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/parashep/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parashep/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/parashep/homebrew/languages","stargazers_url":"https://api.github.com/repos/parashep/homebrew/stargazers","contributors_url":"https://api.github.com/repos/parashep/homebrew/contributors","subscribers_url":"https://api.github.com/repos/parashep/homebrew/subscribers","subscription_url":"https://api.github.com/repos/parashep/homebrew/subscription","commits_url":"https://api.github.com/repos/parashep/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/parashep/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/parashep/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/parashep/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/parashep/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/parashep/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parashep/homebrew/merges","archive_url":"https://api.github.com/repos/parashep/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parashep/homebrew/downloads","issues_url":"https://api.github.com/repos/parashep/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/parashep/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/parashep/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/parashep/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parashep/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/parashep/homebrew/releases{/id}","created_at":"2015-05-28T22:44:54Z","updated_at":"2015-05-28T22:45:10Z","pushed_at":"2015-06-14T05:37:32Z","git_url":"git://github.com/parashep/homebrew.git","ssh_url":"git@github.com:parashep/homebrew.git","clone_url":"https://github.com/parashep/homebrew.git","svn_url":"https://github.com/parashep/homebrew","homepage":"http://brew.sh","size":46864,"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":"55db010a193d4a2ce8b5e3701985d6649779b752","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-15T19:22:58Z","pushed_at":"2015-06-15T20:14:59Z","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":1530372,"stargazers_count":23629,"watchers_count":23629,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":11839,"mirror_url":null,"open_issues_count":364,"forks":11839,"open_issues":364,"watchers":23629,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/40170"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/40170"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/40170/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40170/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/1965e230b0d0d3c20456c5fd8be67ef91215c434"}}}}