From e9cc2a5d88da6d1719763a26c1fc455c51e2c3db Mon Sep 17 00:00:00 2001
From: Elliot Saba <staticfloat@gmail.com>
Date: Sat, 11 Jun 2016 17:03:08 -0700
Subject: [PATCH] Add "build_dependencies" key to JSON output (#340)

This gives the JSON output the same type of information as
`recommended_dependencies` or `optional_dependencies`, but for those
marked `:build` in the formula.
---
 Library/Homebrew/formula.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c621d6c37c..ebd23768de 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -1256,6 +1256,7 @@ class Formula
       "dependencies" => deps.map(&:name).uniq,
       "recommended_dependencies" => deps.select(&:recommended?).map(&:name).uniq,
       "optional_dependencies" => deps.select(&:optional?).map(&:name).uniq,
+      "build_dependencies" => deps.select(&:build?).map(&:name).uniq,
       "conflicts_with" => conflicts.map(&:name),
       "caveats" => caveats
     }
-- 
GitLab