homebrew-core/Formula/asciitex.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

18 lines
488 B
Ruby

require 'formula'
class Asciitex < Formula
homepage 'http://asciitex.sourceforge.net'
url 'http://downloads.sourceforge.net/project/asciitex/asciiTeX-0.21.tar.gz'
sha1 'b37d300910952c117f82f77dd2da99a7b9a79db7'
def install
system "./configure", "--prefix=#{prefix}", "--disable-gtk"
inreplace 'Makefile', 'man/asciiTeX_gui.1', ''
system "make install"
prefix.install 'EXAMPLES'
end
test do
system "#{bin}/asciiTeX", "-f", "#{prefix}/EXAMPLES"
end
end