homebrew-core/Formula/itex2mml.rb
2018-06-26 00:29:44 -07:00

31 lines
1.1 KiB
Ruby

# From: Jacques Distler <distler@golem.ph.utexas.edu>
# You can always find the latest version by checking
# https://golem.ph.utexas.edu/~distler/code/itexToMML/view/head:/itex-src/itex2MML.h
# The corresponding versioned archive is
# https://golem.ph.utexas.edu/~distler/blog/files/itexToMML-x.x.x.tar.gz
class Itex2mml < Formula
desc "Text filter to convert itex equations to MathML"
homepage "https://golem.ph.utexas.edu/~distler/blog/itex2MML.html"
url "https://golem.ph.utexas.edu/~distler/blog/files/itexToMML-1.5.7.tar.gz"
sha256 "3e0435c3ebcd5366d0d285ca194cfccc0b9c28e3e3ae5d92c9d1b47c854a5d7a"
bottle do
cellar :any_skip_relocation
sha256 "571c1069b19131d921c7b07ea4a4a055d33e9d5ff861787d5abd794773a2a87d" => :high_sierra
sha256 "08b3ab528d7fc4d010cfa95bae7f6c1bb087e4304e0eeedfbdfc44b20cca11fd" => :sierra
sha256 "f7a80cfc09e71828c01e5526912e4b49136d31e7134b95928dfb39dc6d6b5259" => :el_capitan
end
def install
bin.mkpath
cd "itex-src" do
system "make"
system "make", "install", "prefix=#{prefix}", "BINDIR=#{bin}"
end
end
test do
system "#{bin}/itex2MML", "--version"
end
end