PageRenderTime 180ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Formula/surfraw.rb

https://gitlab.com/jcsilkey/homebrew-core
Ruby | 37 lines | 37 code | 0 blank | 0 comment | 0 complexity | 8e6c87d5c98fe658c0327546d4cc34c7 MD5 | raw file
  1. class Surfraw < Formula
  2. desc "Shell Users' Revolutionary Front Rage Against the Web"
  3. homepage "https://surfraw.alioth.debian.org/"
  4. url "https://surfraw.alioth.debian.org/dist/surfraw-2.2.9.tar.gz"
  5. sha256 "aa97d9ac24ca4299be39fcde562b98ed556b3bf5ee9a1ae497e0ce040bbcc4bb"
  6. bottle do
  7. cellar :any_skip_relocation
  8. revision 1
  9. sha256 "df27f0dc82f9f2f4efa5fc33244d66063592d0c7afd3d2dd8db0466ec10492d0" => :el_capitan
  10. sha256 "cf0dd3b14c4e8034f0d0766fb09978eac0f19fa41730d72ed1422a67c0b0d0b3" => :yosemite
  11. sha256 "1291ba20882c2dc1fbb092782e943ab0b99ad3642fb73db207dadff1fc00c5fc" => :mavericks
  12. sha256 "30b885dc5908318868da2739f36834ce071bc7bff1a761fdc395afe82f75efa8" => :mountain_lion
  13. end
  14. head do
  15. url "https://anonscm.debian.org/git/surfraw/surfraw.git", :shallow => false
  16. depends_on "autoconf" => :build
  17. depends_on "automake" => :build
  18. end
  19. def install
  20. system "./prebuild" if build.head?
  21. system "./configure", "--prefix=#{prefix}",
  22. "--sysconfdir=#{etc}",
  23. "--with-graphical-browser=open"
  24. system "make"
  25. ENV.j1
  26. system "make", "install"
  27. end
  28. test do
  29. output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
  30. assert_equal "https://www.duckduckgo.com/lite/?q=homebrew\n", output
  31. end
  32. end