homebrew-core/Formula/surfraw.rb
Viktor Szakats e710046467 surfraw: use https urls
* also update test to use duckduckgo

Closes Homebrew/homebrew#41330.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-03 17:22:01 +01:00

29 lines
1,003 B
Ruby

class Surfraw < Formula
desc "Shell Users' Revolutionary Front Rage Against the Web"
homepage "https://surfraw.alioth.debian.org/"
url "https://surfraw.alioth.debian.org/dist/surfraw-2.2.9.tar.gz"
sha256 "aa97d9ac24ca4299be39fcde562b98ed556b3bf5ee9a1ae497e0ce040bbcc4bb"
head "git://git.debian.org/surfraw/surfraw.git", :shallow => false
bottle do
sha1 "6c592c99adf6c1a0bb4993a36e4392bce6e24eaa" => :yosemite
sha1 "8ca477ffd5f157aa40b258d66e2536691d769921" => :mavericks
sha1 "b17ead2b3f8030e659d0af4b44332f76397607f5" => :mountain_lion
end
def install
system "./prebuild" if build.head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-graphical-browser=open"
system "make"
ENV.j1
system "make", "install"
end
test do
output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
assert_equal "https://www.duckduckgo.com/lite/?q=homebrew\n", output
end
end