aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/blahtexml.rb
blob: c0863e1445639be95e5dc9d4344f90595aa89197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Blahtexml < Formula
  homepage 'http://gva.noekeon.org/blahtexml/'
  url 'http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz'
  sha1 '3961f5f388cbc2426aeffd9639a154d5e1690345'

  option 'blahtex-only', "Build only blahtex, not blahtexml"

  depends_on 'xerces-c' unless build.include? 'blahtex-only'

  def install
    system "make blahtex-mac"
    bin.install 'blahtex'
    unless build.include? 'blahtex-only'
      system "make blahtexml-mac"
      bin.install 'blahtexml'
    end
  end
end