{"action":"created","comment":{"url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/comments/44879793","id":44879793,"diff_hunk":"@@ -0,0 +1,79 @@\n+class Symphony < Formula\n+  desc \"Framework for solving mixed integer linear programs\"\n+  homepage \"https://projects.coin-or.org/SYMPHONY\"\n+  url \"http://www.coin-or.org/download/pkgsource/SYMPHONY/SYMPHONY-5.6.13.tgz\"\n+  sha256 \"62353422dae24c24fe02b41ba9ffeecbcda2940b68cf477c2867df0aebaa6812\"\n+  head \"https://projects.coin-or.org/svn/SYMPHONY/trunk\"\n+\n+  depends_on \"homebrew/science/asl\" => :optional\n+  depends_on \"homebrew/science/glpk\" => :optional\n+  depends_on \"homebrew/science/openblas\" => :optional\n+\n+  option \"without-openmp\", \"Disable openmp support\"\n+\n+  asl_dep = (build.with? \"asl\") ? [\"with-asl\"] : []\n+  openblas_dep = (build.with? \"openblas\") ? [\"with-openblas\"] : []\n+  option \"with-gmpl\", \"GNU Modeling Language support via GLPK\"\n+\n+  depends_on \"homebrew/science/mumps\" => [:optional, \"without-mpi\"] + openblas_dep\n+  depends_on \"homebrew/science/suite-sparse\" => [:optional] + openblas_dep\n+\n+  mumps_dep = (build.with? \"mumps\") ? [\"with-mumps\"] : []\n+  suite_sparse_dep = (build.with? \"suite-sparse\") ? [\"with-suite-sparse\"] : []\n+\n+  depends_on \"mysql\" => :build if build.with? \"gmpl\"\n+  depends_on \"readline\" => :recommended\n+\n+  depends_on \"clp\" => (asl_dep + openblas_dep + mumps_dep + suite_sparse_dep)\n+  depends_on \"cgl\"\n+  depends_on :fortran\n+\n+  def install\n+    args = [\"--disable-debug\",\n+            \"--disable-dependency-tracking\",\n+            \"--prefix=#{prefix}\",\n+            \"--datadir=#{pkgshare}\",\n+            \"--includedir=#{include}/cbc\",\n+            \"--with-sample-datadir=#{Formula[\"coin_data_sample\"].opt_pkgshare}/coin/Data/Sample\",\n+            \"--with-netlib-datadir=#{Formula[\"coin_data_netlib\"].opt_pkgshare}/coin/Data/Netlib\",\n+            \"--with-dot\",\n+\t    \"--enable-gnu-packages\",\n+\t    \"--with-application\",\n+           ]\n+\n+    if build.with? \"readline\"\n+      ENV.append \"CXXFLAGS\", \"-I#{Formula[\"readline\"].opt_include}\"\n+      ENV.append \"LDFLAGS\",  \"-L#{Formula[\"readline\"].opt_lib} -lreadline\"\n+    end\n+\n+    if build.with? \"gmpl\"\n+      # Symphony uses a patched version of GLPK for reading MPL files.\n+      # Use a private version rather than require the Homebrew version of GLPK.\n+      cd \"ThirdParty/Glpk\" do\n+        system \"./get.Glpk\"\n+      end","path":"symphony.rb","position":54,"original_position":54,"commit_id":"73efb9d950361eecb54b8fd13a3c3a5099e58bf5","original_commit_id":"73efb9d950361eecb54b8fd13a3c3a5099e58bf5","user":{"login":"dpo","id":38760,"avatar_url":"https://avatars.githubusercontent.com/u/38760?v=3","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"body":"This is too bad. Shouldn't we instead patch the \"official\" `glpk`?","created_at":"2015-11-15T23:28:59Z","updated_at":"2015-11-15T23:28:59Z","html_url":"https://github.com/coin-or-tools/homebrew-coinor/pull/19#discussion_r44879793","pull_request_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/comments/44879793"},"html":{"href":"https://github.com/coin-or-tools/homebrew-coinor/pull/19#discussion_r44879793"},"pull_request":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19","id":50739128,"html_url":"https://github.com/coin-or-tools/homebrew-coinor/pull/19","diff_url":"https://github.com/coin-or-tools/homebrew-coinor/pull/19.diff","patch_url":"https://github.com/coin-or-tools/homebrew-coinor/pull/19.patch","issue_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/19","number":19,"state":"open","locked":false,"title":"Adding recipe for SYMPHONY","user":{"login":"tkralphs","id":4942502,"avatar_url":"https://avatars.githubusercontent.com/u/4942502?v=3","gravatar_id":"","url":"https://api.github.com/users/tkralphs","html_url":"https://github.com/tkralphs","followers_url":"https://api.github.com/users/tkralphs/followers","following_url":"https://api.github.com/users/tkralphs/following{/other_user}","gists_url":"https://api.github.com/users/tkralphs/gists{/gist_id}","starred_url":"https://api.github.com/users/tkralphs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkralphs/subscriptions","organizations_url":"https://api.github.com/users/tkralphs/orgs","repos_url":"https://api.github.com/users/tkralphs/repos","events_url":"https://api.github.com/users/tkralphs/events{/privacy}","received_events_url":"https://api.github.com/users/tkralphs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-15T04:06:25Z","updated_at":"2015-11-15T23:28:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e279ca0d928886a0cc9781f77919d8373ccbca1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19/commits","review_comments_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19/comments","review_comment_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/19/comments","statuses_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/statuses/73efb9d950361eecb54b8fd13a3c3a5099e58bf5","head":{"label":"tkralphs:symphony2","ref":"symphony2","sha":"73efb9d950361eecb54b8fd13a3c3a5099e58bf5","user":{"login":"tkralphs","id":4942502,"avatar_url":"https://avatars.githubusercontent.com/u/4942502?v=3","gravatar_id":"","url":"https://api.github.com/users/tkralphs","html_url":"https://github.com/tkralphs","followers_url":"https://api.github.com/users/tkralphs/followers","following_url":"https://api.github.com/users/tkralphs/following{/other_user}","gists_url":"https://api.github.com/users/tkralphs/gists{/gist_id}","starred_url":"https://api.github.com/users/tkralphs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkralphs/subscriptions","organizations_url":"https://api.github.com/users/tkralphs/orgs","repos_url":"https://api.github.com/users/tkralphs/repos","events_url":"https://api.github.com/users/tkralphs/events{/privacy}","received_events_url":"https://api.github.com/users/tkralphs/received_events","type":"User","site_admin":false},"repo":{"id":29953217,"name":"homebrew-coinor","full_name":"tkralphs/homebrew-coinor","owner":{"login":"tkralphs","id":4942502,"avatar_url":"https://avatars.githubusercontent.com/u/4942502?v=3","gravatar_id":"","url":"https://api.github.com/users/tkralphs","html_url":"https://github.com/tkralphs","followers_url":"https://api.github.com/users/tkralphs/followers","following_url":"https://api.github.com/users/tkralphs/following{/other_user}","gists_url":"https://api.github.com/users/tkralphs/gists{/gist_id}","starred_url":"https://api.github.com/users/tkralphs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkralphs/subscriptions","organizations_url":"https://api.github.com/users/tkralphs/orgs","repos_url":"https://api.github.com/users/tkralphs/repos","events_url":"https://api.github.com/users/tkralphs/events{/privacy}","received_events_url":"https://api.github.com/users/tkralphs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tkralphs/homebrew-coinor","description":"A Repository of Homebrew Formulae for COIN-OR Projects","fork":true,"url":"https://api.github.com/repos/tkralphs/homebrew-coinor","forks_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/forks","keys_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/teams","hooks_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/hooks","issue_events_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/issues/events{/number}","events_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/events","assignees_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/assignees{/user}","branches_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/branches{/branch}","tags_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/tags","blobs_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/git/refs{/sha}","trees_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/statuses/{sha}","languages_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/languages","stargazers_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/stargazers","contributors_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/contributors","subscribers_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/subscribers","subscription_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/subscription","commits_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/commits{/sha}","git_commits_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/git/commits{/sha}","comments_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/comments{/number}","issue_comment_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/issues/comments{/number}","contents_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/contents/{+path}","compare_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/merges","archive_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/downloads","issues_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/issues{/number}","pulls_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/pulls{/number}","milestones_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/milestones{/number}","notifications_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/labels{/name}","releases_url":"https://api.github.com/repos/tkralphs/homebrew-coinor/releases{/id}","created_at":"2015-01-28T05:59:53Z","updated_at":"2015-01-28T05:59:53Z","pushed_at":"2015-11-15T04:05:41Z","git_url":"git://github.com/tkralphs/homebrew-coinor.git","ssh_url":"git@github.com:tkralphs/homebrew-coinor.git","clone_url":"https://github.com/tkralphs/homebrew-coinor.git","svn_url":"https://github.com/tkralphs/homebrew-coinor","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coin-or-tools:master","ref":"master","sha":"739efe21044a9a48bbbf11677fafa1275d890ee1","user":{"login":"coin-or-tools","id":10873596,"avatar_url":"https://avatars.githubusercontent.com/u/10873596?v=3","gravatar_id":"","url":"https://api.github.com/users/coin-or-tools","html_url":"https://github.com/coin-or-tools","followers_url":"https://api.github.com/users/coin-or-tools/followers","following_url":"https://api.github.com/users/coin-or-tools/following{/other_user}","gists_url":"https://api.github.com/users/coin-or-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/coin-or-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coin-or-tools/subscriptions","organizations_url":"https://api.github.com/users/coin-or-tools/orgs","repos_url":"https://api.github.com/users/coin-or-tools/repos","events_url":"https://api.github.com/users/coin-or-tools/events{/privacy}","received_events_url":"https://api.github.com/users/coin-or-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":16879113,"name":"homebrew-coinor","full_name":"coin-or-tools/homebrew-coinor","owner":{"login":"coin-or-tools","id":10873596,"avatar_url":"https://avatars.githubusercontent.com/u/10873596?v=3","gravatar_id":"","url":"https://api.github.com/users/coin-or-tools","html_url":"https://github.com/coin-or-tools","followers_url":"https://api.github.com/users/coin-or-tools/followers","following_url":"https://api.github.com/users/coin-or-tools/following{/other_user}","gists_url":"https://api.github.com/users/coin-or-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/coin-or-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coin-or-tools/subscriptions","organizations_url":"https://api.github.com/users/coin-or-tools/orgs","repos_url":"https://api.github.com/users/coin-or-tools/repos","events_url":"https://api.github.com/users/coin-or-tools/events{/privacy}","received_events_url":"https://api.github.com/users/coin-or-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coin-or-tools/homebrew-coinor","description":"A Repository of Homebrew Formulae for COIN-OR Projects","fork":false,"url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor","forks_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/forks","keys_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/teams","hooks_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/hooks","issue_events_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/events{/number}","events_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/events","assignees_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/assignees{/user}","branches_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/branches{/branch}","tags_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/tags","blobs_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/git/refs{/sha}","trees_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/statuses/{sha}","languages_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/languages","stargazers_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/stargazers","contributors_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/contributors","subscribers_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/subscribers","subscription_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/subscription","commits_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/commits{/sha}","git_commits_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/git/commits{/sha}","comments_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/comments{/number}","issue_comment_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/comments{/number}","contents_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/contents/{+path}","compare_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/merges","archive_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/downloads","issues_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues{/number}","pulls_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls{/number}","milestones_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/milestones{/number}","notifications_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/labels{/name}","releases_url":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/releases{/id}","created_at":"2014-02-16T05:31:10Z","updated_at":"2015-11-05T15:26:58Z","pushed_at":"2015-11-15T23:25:19Z","git_url":"git://github.com/coin-or-tools/homebrew-coinor.git","ssh_url":"git@github.com:coin-or-tools/homebrew-coinor.git","clone_url":"https://github.com/coin-or-tools/homebrew-coinor.git","svn_url":"https://github.com/coin-or-tools/homebrew-coinor","homepage":null,"size":241,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19"},"html":{"href":"https://github.com/coin-or-tools/homebrew-coinor/pull/19"},"issue":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/19"},"comments":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/coin-or-tools/homebrew-coinor/statuses/73efb9d950361eecb54b8fd13a3c3a5099e58bf5"}}}}