2011-08-30 11:48:46 +00:00
|
|
|
class Asciitex < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generate ASCII-art representations of mathematical equations"
|
2015-07-31 15:30:48 +00:00
|
|
|
homepage "http://asciitex.sourceforge.net"
|
|
|
|
url "https://downloads.sourceforge.net/project/asciitex/asciiTeX-0.21.tar.gz"
|
|
|
|
sha256 "abf964818833d8b256815eb107fb0de391d808fe131040fb13005988ff92a48d"
|
2011-08-30 11:48:46 +00:00
|
|
|
|
2015-07-31 16:19:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "e9eadc960e449db67f305c3e1cc8d4f025288967bb8b6a37f5ba4bf5ad58493d" => :yosemite
|
|
|
|
sha256 "31518a63d9b06f8e47ff57c5d6d22ca838abc2c1366d59db2bb8967971134d52" => :mavericks
|
|
|
|
sha256 "cfcef4a17d2194a111da39891f06694d2056082915858d3cf938d3659b2d1a64" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2011-08-30 11:48:46 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-gtk"
|
2015-07-31 15:30:48 +00:00
|
|
|
inreplace "Makefile", "man/asciiTeX_gui.1", ""
|
|
|
|
system "make", "install"
|
|
|
|
pkgshare.install "EXAMPLES"
|
2011-08-30 11:48:46 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-07-31 15:30:48 +00:00
|
|
|
system "#{bin}/asciiTeX", "-f", "#{pkgshare}/EXAMPLES"
|
2011-08-30 11:48:46 +00:00
|
|
|
end
|
|
|
|
end
|