2011-08-30 11:48:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Asciitex < Formula
|
|
|
|
homepage 'http://asciitex.sourceforge.net'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/asciitex/asciiTeX-0.21.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b37d300910952c117f82f77dd2da99a7b9a79db7'
|
2011-08-30 11:48:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-gtk"
|
|
|
|
inreplace 'Makefile', 'man/asciiTeX_gui.1', ''
|
|
|
|
system "make install"
|
|
|
|
prefix.install 'EXAMPLES'
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 18:31:21 +00:00
|
|
|
system "#{bin}/asciiTeX", "-f", "#{prefix}/EXAMPLES"
|
2011-08-30 11:48:46 +00:00
|
|
|
end
|
|
|
|
end
|