diff --git a/Formula/choose-gui.rb b/Formula/choose-gui.rb new file mode 100644 index 0000000000..5fa3765706 --- /dev/null +++ b/Formula/choose-gui.rb @@ -0,0 +1,20 @@ +class ChooseGui < Formula + desc "Fuzzy matcher that uses std{in,out} and a native GUI" + homepage "https://github.com/sdegutis/choose" + url "https://github.com/sdegutis/choose/archive/1.0.tar.gz" + sha256 "b1d16c6e143e2a9e9b306cd169ce54535689321d8f016308ff26c82c3d2931bf" + + depends_on :macos => :yosemite + depends_on :xcode => :build + + conflicts_with "choose", :because => "both install a `choose` binary" + + def install + xcodebuild "SDKROOT=", "SYMROOT=build" + bin.install "build/Release/choose" + end + + test do + system "#{bin}/choose", "-h" + end +end