2011-08-30 11:48:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Asciitex < Formula
|
|
|
|
url 'http://downloads.sourceforge.net/project/asciitex/asciiTeX-0.21.tar.gz'
|
|
|
|
homepage 'http://asciitex.sourceforge.net'
|
|
|
|
md5 'b894d924880a5659d9637f30ed5a3bb0'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-gtk"
|
|
|
|
inreplace 'Makefile', 'man/asciiTeX_gui.1', ''
|
|
|
|
system "make install"
|
|
|
|
prefix.install 'EXAMPLES'
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 18:31:21 +00:00
|
|
|
system "#{bin}/asciiTeX", "-f", "#{prefix}/EXAMPLES"
|
2011-08-30 11:48:46 +00:00
|
|
|
end
|
|
|
|
end
|