2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-29 17:22:57 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Elinks < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://elinks.or.cz/'
|
|
|
|
url 'http://elinks.or.cz/download/elinks-0.11.7.tar.bz2'
|
2012-07-07 18:08:22 +00:00
|
|
|
sha1 'd13edc1477d0ab32cafe7d3c1f3a23ae1c0a5c54'
|
2014-04-09 10:25:20 +00:00
|
|
|
revision 1
|
2009-08-29 17:22:57 +00:00
|
|
|
|
2014-04-01 15:21:21 +00:00
|
|
|
bottle do
|
2014-04-09 11:00:24 +00:00
|
|
|
sha1 "583e1341f43122ae82e2f1432c2a836d33450fc5" => :mavericks
|
|
|
|
sha1 "326f4f9c079d42c11463b224d1a33e1b74705505" => :mountain_lion
|
|
|
|
sha1 "069240528115caa0885c2ead5f83515dbab6a3f8" => :lion
|
2014-04-01 15:21:21 +00:00
|
|
|
end
|
|
|
|
|
2012-03-09 02:43:58 +00:00
|
|
|
devel do
|
2012-11-27 05:07:36 +00:00
|
|
|
url 'http://elinks.cz/download/elinks-0.12pre6.tar.bz2'
|
|
|
|
version '0.12pre6'
|
2012-12-07 13:27:41 +00:00
|
|
|
sha1 '3517795e8a390cb36ca249a5be6514b9784520a5'
|
2012-03-09 02:43:58 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:52 +00:00
|
|
|
head do
|
|
|
|
url 'http://elinks.cz/elinks.git'
|
|
|
|
|
2013-11-13 16:52:55 +00:00
|
|
|
depends_on :autoconf
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
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
|
2009-10-02 20:40:32 +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"
|
2009-08-29 17:22:57 +00:00
|
|
|
system "make install"
|
|
|
|
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
|
|
|
|
assert_match /^\s*Hello world!\n+ *1. one\n *2. two\s*$/, `elinks test.html`
|
|
|
|
end
|
2009-08-29 17:22:57 +00:00
|
|
|
end
|