homebrew-core/Formula/asciidoc.rb

38 lines
980 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.8/asciidoc-8.6.8.tar.gz'
sha1 '2fd88f6ca9d2a5e09045fb300f4a908fe6eeb092'
2012-07-07 18:08:22 +00:00
2013-09-22 00:27:25 +00:00
head do
url 'https://code.google.com/p/asciidoc/', :using => :hg
depends_on :autoconf
end
depends_on 'docbook'
def install
2012-08-09 23:21:05 +00:00
system "autoconf" if build.head?
system "./configure", "--prefix=#{prefix}"
# otherwise OS X's xmllint bails out
inreplace 'Makefile', '-f manpage', '-f manpage -L'
system "make install"
end
def caveats; <<-EOS.undent
If you intend to process AsciiDoc files through an XML stage
(such as a2x for manpage generation) you need to add something
like:
export XML_CATALOG_FILES=#{HOMEBREW_PREFIX}/etc/xml/catalog
to your shell rc file so that xmllint can find AsciiDoc's
catalog files.
See `man 1 xmllint' for more.
EOS
end
2009-11-21 06:38:52 +00:00
end