class GitExtras < Formula desc "Small git utilities" homepage "https://github.com/tj/git-extras" url "https://github.com/tj/git-extras/archive/3.0.0.tar.gz" sha256 "490742428824d6e807e894c3b6612be37a9a9a4e8fbea747d1813e5d62b2a807" head "https://github.com/tj/git-extras.git" bottle do cellar :any sha256 "3eabd97b6e574274665ed178b72076648ed03da53c7dd29425835331592c3378" => :yosemite sha256 "14471fe41a1162813ed803fe9edc91aca493d7529340e8f15e2cea9aa269d586" => :mavericks sha256 "7655c7e7f926d58b28a8ef503b406ff2c0f6fb2102a2915cb7d05b36b26f9d9b" => :mountain_lion end def install inreplace "Makefile", %r{\$\(DESTDIR\)(?=/etc/bash_completion\.d)}, "$(DESTDIR)$(PREFIX)" system "make", "PREFIX=#{prefix}", "install" end test do cd HOMEBREW_PREFIX do system "#{bin}/git-root" end end end