homebrew-core/Formula/lynx.rb
Ted Pennings 7b6cf8b5fc lynx: a test
Closes Homebrew/homebrew#25937.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-17 10:26:52 +00:00

23 lines
719 B
Ruby

require 'formula'
class Lynx < Formula
homepage 'http://lynx.isc.org/release/'
url 'http://lynx.isc.org/release/lynx2.8.7.tar.bz2'
sha1 'a34978f7f83cd46bd857cb957faa5a9120458afa'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-echo",
"--with-zlib",
"--with-bzlib",
"--with-ssl=#{MacOS.sdk_path}/usr",
"--enable-ipv6"
system "make install"
end
test do
system "#{bin}/lynx", '-dump', 'http://checkip.dyndns.org'
end
end