asciidoc: add missing docbook dependency
Docbook is a run-time dep and is also a build-time dep of asciidoc's HEAD, since it has to build its own documentation. Also, fix a breakage in the HEAD build caused by OS X's xmllint being too old or broken and remove a useless `ohai` call. Signed-off-by: Jack Nagel <jacknagel@gmail.com>master
parent
27815a2f02
commit
07f14d8327
|
@ -6,12 +6,14 @@ class Asciidoc < Formula
|
|||
head 'https://code.google.com/p/asciidoc/', :using => :hg
|
||||
homepage 'http://www.methods.co.nz/asciidoc'
|
||||
|
||||
depends_on 'docbook'
|
||||
|
||||
def install
|
||||
if ARGV.build_head? and not File.exists? "./configure"
|
||||
ohai "Creating configure file"
|
||||
system "autoconf"
|
||||
end
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue