homebrew-core/Formula/asciidoc.rb

22 lines
602 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Asciidoc < Formula
2012-07-07 18:08:22 +00:00
homepage 'http://www.methods.co.nz/asciidoc'
url 'http://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.7/asciidoc-8.6.7.tar.gz'
2012-07-07 18:08:22 +00:00
sha1 '5fc55496b2a23e2cc1dcc1f6b1f75dd06fcdefa1'
head 'https://code.google.com/p/asciidoc/', :using => :hg
2012-07-07 18:08:22 +00:00
depends_on :autoconf if ARGV.build_head?
depends_on 'docbook'
def install
system "autoconf" if ARGV.build_head?
system "./configure", "--prefix=#{prefix}"
# otherwise OS X's xmllint bails out
inreplace 'Makefile', '-f manpage', '-f manpage -L'
system "make install"
end
2009-11-21 06:38:52 +00:00
end