2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-29 02:58:37 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lynx < Formula
|
2009-09-29 02:58:37 +00:00
|
|
|
homepage 'http://lynx.isc.org/release/'
|
2013-01-29 05:11:30 +00:00
|
|
|
url 'http://lynx.isc.org/release/lynx2.8.7.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a34978f7f83cd46bd857cb957faa5a9120458afa'
|
2009-09-29 02:58:37 +00:00
|
|
|
|
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2010-03-08 11:33:43 +00:00
|
|
|
"--mandir=#{man}",
|
2009-09-29 02:58:37 +00:00
|
|
|
"--disable-echo",
|
2014-02-09 15:39:03 +00:00
|
|
|
"--enable-default-colors",
|
2009-09-29 02:58:37 +00:00
|
|
|
"--with-zlib",
|
2010-03-01 17:11:57 +00:00
|
|
|
"--with-bzlib",
|
2013-10-21 20:52:23 +00:00
|
|
|
"--with-ssl=#{MacOS.sdk_path}/usr",
|
2010-03-01 17:11:57 +00:00
|
|
|
"--enable-ipv6"
|
2009-09-29 02:58:37 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2014-01-16 01:40:09 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/lynx", '-dump', 'http://checkip.dyndns.org'
|
|
|
|
end
|
2009-09-29 02:58:37 +00:00
|
|
|
end
|