2011-03-10 05:11:03 +00:00
|
|
|
class Blahtexml < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Converts equations into Math ML"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://gva.noekeon.org/blahtexml/"
|
|
|
|
url "http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz"
|
|
|
|
sha256 "c5145b02bdf03cd95b7b136de63286819e696639824961d7408bec4591bc3737"
|
2010-09-20 09:43:45 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
option "blahtex-only", "Build only blahtex, not blahtexml"
|
2011-11-21 09:23:54 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "xerces-c" unless build.include? "blahtex-only"
|
2010-09-20 09:43:45 +00:00
|
|
|
|
2014-05-06 06:14:35 +00:00
|
|
|
# Add missing unistd.h includes, taken from MacPorts
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/119768/trunk/dports/tex/blahtexml/files/patch-mainPng.cpp.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "7d4bce5630881099b71beedbbc09b64c61849513b4ac00197b349aab2eba1687"
|
2014-05-06 06:14:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/119768/trunk/dports/tex/blahtexml/files/patch-main.cpp.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "d696d10931f2c2ded1cef50842b78887dba36679fbb2e0abc373e7b6405b8468"
|
2014-05-06 06:14:35 +00:00
|
|
|
end
|
|
|
|
|
2010-09-20 09:43:45 +00:00
|
|
|
def install
|
2011-11-21 09:23:54 +00:00
|
|
|
system "make blahtex-mac"
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.install "blahtex"
|
|
|
|
unless build.include? "blahtex-only"
|
2011-11-21 09:23:54 +00:00
|
|
|
system "make blahtexml-mac"
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.install "blahtexml"
|
2011-11-21 09:23:54 +00:00
|
|
|
end
|
2010-09-20 09:43:45 +00:00
|
|
|
end
|
|
|
|
end
|