c4d9c2a99c
a2ps: migrate patches argp-standalone: migrate patch autotrace: migrate patches avidemux: reference secure link bibtex2html: migrate patches bsdmake: migrate patches cctools: migrate patches cdparanoia: migrate patches cdrdao: reference secure links center-im: migrate patch clisp: migrate patch clucene: migrate patches cvs: migrate to sha256 daemon: migrate patch dvdrtools: migrate patches exim: style nits exim: migrate option ghostscript: migrate patch glib: migrate patch gpsd: migrate patch graphviz: migrate patch gtkglext: migrate patches gupnp: migrate patch hping: migrate patches id3lib: migrate patches jigdo: migrate patch jove: migrate patch ld64: migrate patches libcanberra: migrate patch libgcrypt: migrate patch libinfinity: migrate patch liblinear: migrate patch libmms: migrate patch libnet: migrate patch lsdvd: migrate patches
31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class Blahtexml < Formula
|
|
desc "Converts equations into Math ML"
|
|
homepage "http://gva.noekeon.org/blahtexml/"
|
|
url "http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz"
|
|
sha256 "c5145b02bdf03cd95b7b136de63286819e696639824961d7408bec4591bc3737"
|
|
|
|
deprecated_option "blahtex-only" => "without-blahtexml"
|
|
option "without-blahtexml", "Build only blahtex, not blahtexml"
|
|
|
|
depends_on "xerces-c" if build.with? "blahtexml"
|
|
|
|
# Add missing unistd.h includes, taken from MacPorts
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/0632225f/blahtexml/patch-mainPng.cpp.diff"
|
|
sha256 "7d4bce5630881099b71beedbbc09b64c61849513b4ac00197b349aab2eba1687"
|
|
end
|
|
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/0632225f/blahtexml/patch-main.cpp.diff"
|
|
sha256 "d696d10931f2c2ded1cef50842b78887dba36679fbb2e0abc373e7b6405b8468"
|
|
end
|
|
|
|
def install
|
|
system "make", "blahtex-mac"
|
|
bin.install "blahtex"
|
|
if build.with? "blahtexml"
|
|
system "make", "blahtexml-mac"
|
|
bin.install "blahtexml"
|
|
end
|
|
end
|
|
end
|