2010-09-20 09:43:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Blahtexml < Formula
|
2010-09-20 09:43:45 +00:00
|
|
|
homepage 'http://gva.noekeon.org/blahtexml/'
|
2012-02-13 05:40:53 +00:00
|
|
|
url 'http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3961f5f388cbc2426aeffd9639a154d5e1690345'
|
2010-09-20 09:43:45 +00:00
|
|
|
|
2012-08-09 05:15:01 +00:00
|
|
|
option 'blahtex-only', "Build only blahtex, not blahtexml"
|
2011-11-21 09:23:54 +00:00
|
|
|
|
2012-08-09 15:51:54 +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"
|
|
|
|
sha1 "9f9312930fed9d8b99ddfceb638f0cdfebfc5b73"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/119768/trunk/dports/tex/blahtexml/files/patch-main.cpp.diff"
|
|
|
|
sha1 "aae4d3f03f450aa09a722b4f3fb4b64de9c62a82"
|
|
|
|
end
|
|
|
|
|
2010-09-20 09:43:45 +00:00
|
|
|
def install
|
2011-11-21 09:23:54 +00:00
|
|
|
system "make blahtex-mac"
|
|
|
|
bin.install 'blahtex'
|
2012-08-09 15:51:54 +00:00
|
|
|
unless build.include? 'blahtex-only'
|
2011-11-21 09:23:54 +00:00
|
|
|
system "make blahtexml-mac"
|
|
|
|
bin.install 'blahtexml'
|
|
|
|
end
|
2010-09-20 09:43:45 +00:00
|
|
|
end
|
|
|
|
end
|