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

class Asciidoc < Formula
  url 'http://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.6/asciidoc-8.6.6.tar.gz'
  md5 '44b872d9c300ffa5a8fe8b3c4d10957c'
  head 'https://code.google.com/p/asciidoc/', :using => :hg
  homepage 'http://www.methods.co.nz/asciidoc'

  depends_on 'docbook'

  def install
    system "autoconf" if ARGV.build_head? and not File.exists? "./configure"
    system "./configure", "--prefix=#{prefix}"

    # otherwise OS X's xmllint bails out
    inreplace 'Makefile', '-f manpage', '-f manpage -L'
    system "make install"
  end
end