2014-08-12 05:43:54 +00:00
|
|
|
require "formula"
|
2010-06-09 15:06:07 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hevea < Formula
|
2014-08-12 05:43:54 +00:00
|
|
|
homepage "http://hevea.inria.fr/"
|
2014-11-13 02:26:02 +00:00
|
|
|
url "http://hevea.inria.fr/distri/hevea-2.19.tar.gz"
|
|
|
|
sha1 "59c0d35819c83b6558490b36f1113cdb4d49e919"
|
2014-03-21 21:08:16 +00:00
|
|
|
|
2014-09-19 18:25:14 +00:00
|
|
|
bottle do
|
2014-11-13 02:58:11 +00:00
|
|
|
sha1 "85895fc6d991f57fe1a0e9ecbc083d335c7cf704" => :yosemite
|
|
|
|
sha1 "d45bb32ad08211b304ae6c87f49727505ad81d33" => :mavericks
|
|
|
|
sha1 "85d66fad38057feaa11c615dfdd7be4c921baca5" => :mountain_lion
|
2014-09-19 18:25:14 +00:00
|
|
|
end
|
|
|
|
|
2014-08-12 05:43:54 +00:00
|
|
|
depends_on "objective-caml"
|
|
|
|
depends_on "ghostscript" => :optional
|
2010-06-09 15:06:07 +00:00
|
|
|
|
|
|
|
def install
|
2014-09-21 05:01:06 +00:00
|
|
|
ENV["PREFIX"] = prefix
|
2010-06-09 15:06:07 +00:00
|
|
|
system "make"
|
2014-09-19 18:18:00 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.tex").write <<-EOS.undent
|
|
|
|
\\documentclass{article}
|
|
|
|
\\begin{document}
|
|
|
|
\\end{document}
|
|
|
|
EOS
|
|
|
|
system "#{bin}/hevea", "test.tex"
|
2010-06-09 15:06:07 +00:00
|
|
|
end
|
|
|
|
end
|