homebrew-core/Formula/elinks.rb

52 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2009-08-29 17:22:57 +00:00
2011-03-10 05:11:03 +00:00
class Elinks < Formula
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'
revision 2
2009-08-29 17:22:57 +00:00
bottle do
2014-08-25 10:54:13 +00:00
revision 1
sha1 "97954464d63684d343152aa3dbb7bd5384d8e56d" => :mavericks
sha1 "882e21d742e1f373b9403ef932bddc855430948e" => :mountain_lion
sha1 "ce8f6c3521d89ed3c0e3f09813934154ec6b4bcb" => :lion
end
devel do
url 'http://elinks.cz/download/elinks-0.12pre6.tar.bz2'
version '0.12pre6'
sha1 '3517795e8a390cb36ca249a5be6514b9784520a5'
end
2013-09-20 15:15:52 +00:00
head do
url 'http://elinks.cz/elinks.git'
2014-06-02 02:38:17 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
2014-04-08 03:12:46 +00:00
depends_on "openssl"
2009-08-29 17:22:57 +00:00
def install
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?
system "./configure", "--prefix=#{prefix}", "--without-spidermonkey",
"--enable-256-colors"
2009-08-29 17:22:57 +00:00
system "make install"
end
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")
end
2009-08-29 17:22:57 +00:00
end