Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Make chktex use TeX requirement.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
manphiz authored and adamv committed Jan 14, 2013
1 parent 73b51da commit b9c63ec
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Library/Formula/chktex.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
require 'formula'

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

class Chktex < Formula
homepage 'http://www.nongnu.org/chktex/'
url 'http://download.savannah.gnu.org/releases/chktex/chktex-1.7.1.tar.gz'
sha1 'ed94b96ed8ce65fb1cef1b5fc019045c5b2dd8a8'

depends_on TexInstalled.new
env :userpaths # To find TeX
depends_on :tex

def install
system "./configure", "--prefix=#{prefix}"
Expand Down

0 comments on commit b9c63ec

Please sign in to comment.