require 'formula' # From: Jacques Distler # You can always find the latest version by checking # http://golem.ph.utexas.edu/~distler/code/itexToMML/view/head:/itex-src/itex2MML.h # The corresponding versioned archive is # http://golem.ph.utexas.edu/~distler/blog/files/itexToMML-x.x.x.tar.gz class Itex2mml < Formula homepage 'http://golem.ph.utexas.edu/~distler/blog/itex2MML.html' url 'http://golem.ph.utexas.edu/~distler/blog/files/itexToMML-1.4.11.tar.gz' sha1 '92092f1448374743158939538b039c05b4b9d764' 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