aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-10-29 11:21:52 -0500
committerJack Nagel2011-10-29 11:23:52 -0500
commitd6186d59d0c7a280429227e11e7ebec7fabc6c6d (patch)
treeeb86bfcf7402b1a3f6f6ddb26eae83870d3d7f34 /Library/Formula
parent9a6bd3473936175163a642e28f6ce0b8a659cf6d (diff)
downloadhomebrew-d6186d59d0c7a280429227e11e7ebec7fabc6c6d.tar.bz2
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>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/asciidoc.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/asciidoc.rb b/Library/Formula/asciidoc.rb
index 06758b95a..1303be870 100644
--- a/Library/Formula/asciidoc.rb
+++ b/Library/Formula/asciidoc.rb
@@ -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