2011-03-10 05:11:03 +00:00
|
|
|
class Elinks < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Text mode web browser"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://elinks.or.cz/"
|
|
|
|
url "http://elinks.or.cz/download/elinks-0.11.7.tar.bz2"
|
|
|
|
sha256 "456db6f704c591b1298b0cd80105f459ff8a1fc07a0ec1156a36c4da6f898979"
|
2014-08-22 14:08:15 +00:00
|
|
|
revision 2
|
2009-08-29 17:22:57 +00:00
|
|
|
|
2014-04-01 15:21:21 +00:00
|
|
|
bottle do
|
2014-08-25 10:54:13 +00:00
|
|
|
revision 1
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "4a4ba514c46b18fa2925bb28cb83eebe085ad6795ed84bdd411a2bedae2ee4d0" => :mavericks
|
|
|
|
sha256 "06842f124db95b48c26f071419bd12f88a25c5b08ae519d22453971d5d4feea4" => :mountain_lion
|
|
|
|
sha256 "f54731731b2422afc2ecb1021f7e9d5b152479480fb93856aae8510091210ebb" => :lion
|
2014-04-01 15:21:21 +00:00
|
|
|
end
|
|
|
|
|
2012-03-09 02:43:58 +00:00
|
|
|
devel do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "http://elinks.cz/download/elinks-0.12pre6.tar.bz2"
|
|
|
|
version "0.12pre6"
|
|
|
|
sha256 "383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada"
|
2012-03-09 02:43:58 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:52 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "http://elinks.cz/elinks.git"
|
2013-09-20 15:15:52 +00:00
|
|
|
|
2014-06-02 02:38:17 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-02-28 15:39:22 +00:00
|
|
|
end
|
|
|
|
|
2014-04-08 03:12:46 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
|
2009-08-29 17:22:57 +00:00
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV.deparallelize
|
2015-08-03 12:55:31 +00:00
|
|
|
ENV.delete("LD")
|
2012-08-28 04:38:10 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2012-11-27 05:07:36 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--without-spidermonkey",
|
|
|
|
"--enable-256-colors"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-08-29 17:22:57 +00:00
|
|
|
end
|
2014-04-01 15:07:05 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.html").write <<-EOS.undent
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<title>elinks test</title>
|
|
|
|
Hello world!
|
|
|
|
<ol><li>one</li><li>two</li></ol>
|
|
|
|
EOS
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_match /^\s*Hello world!\n+ *1. one\n *2. two\s*$/,
|
|
|
|
shell_output("elinks test.html")
|
2014-04-01 15:07:05 +00:00
|
|
|
end
|
2009-08-29 17:22:57 +00:00
|
|
|
end
|