PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/Library/Formula/vcprompt.rb

https://bitbucket.org/JoshHagins/homebrew
Ruby | 36 lines | 28 code | 8 blank | 0 comment | 1 complexity | 73b1634ca6f041376ffb33522d1307e1 MD5 | raw file
  1. require 'formula'
  2. class Vcprompt < Formula
  3. homepage 'https://bitbucket.org/gward/vcprompt'
  4. url 'https://bitbucket.org/gward/vcprompt/downloads/vcprompt-1.2.1.tar.gz'
  5. sha1 'fb623e6183b8e5ccbbe5cf7d135a04e727c9b402'
  6. bottle do
  7. cellar :any
  8. sha1 "609b05ec156a7b5b154150800dfefd1adcbef0df" => :mavericks
  9. sha1 "b20758412be3d8abc8d99a055f34da5c94861280" => :mountain_lion
  10. sha1 "f7618134adfd9bd57011eabd66278f8c8918fca0" => :lion
  11. end
  12. head do
  13. url 'https://bitbucket.org/gward/vcprompt', :using => :hg
  14. depends_on "autoconf" => :build
  15. end
  16. depends_on 'sqlite'
  17. def install
  18. system "autoconf" if build.head?
  19. system "./configure", "--disable-dependency-tracking",
  20. "--prefix=#{prefix}"
  21. system "make", "PREFIX=#{prefix}",
  22. "MANDIR=#{man1}",
  23. "install"
  24. end
  25. test do
  26. system "#{bin}/vcprompt"
  27. end
  28. end