2010-03-01 08:54:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-11-11 20:42:55 +00:00
|
|
|
class TexInstalled < Requirement
|
|
|
|
def message; <<-EOS.undent
|
|
|
|
A TeX/LaTeX installation is required to install.
|
|
|
|
You can obtain the TeX distribution for Mac OS X from:
|
|
|
|
http://www.tug.org/mactex/
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
def satisfied?
|
|
|
|
which 'latex'
|
|
|
|
end
|
|
|
|
def fatal?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Chktex < Formula
|
2012-09-05 16:03:40 +00:00
|
|
|
homepage 'http://www.nongnu.org/chktex/'
|
|
|
|
url 'http://download.savannah.gnu.org/releases/chktex/chktex-1.7.1.tar.gz'
|
|
|
|
sha1 'ed94b96ed8ce65fb1cef1b5fc019045c5b2dd8a8'
|
2010-03-01 08:54:28 +00:00
|
|
|
|
2012-11-11 20:42:55 +00:00
|
|
|
depends_on TexInstalled.new
|
|
|
|
env :userpaths # To find TeX
|
2012-10-02 13:12:26 +00:00
|
|
|
|
2010-03-01 08:54:28 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|