2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
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'
|
2013-11-19 17:40:40 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.9/asciidoc-8.6.9.tar.gz'
|
|
|
|
sha1 '82e574dd061640561fa0560644bc74df71fb7305'
|
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
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-10-29 16:21:52 +00:00
|
|
|
depends_on 'docbook'
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2012-08-09 23:21:05 +00:00
|
|
|
system "autoconf" if build.head?
|
2011-09-04 19:12:43 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2011-10-29 16:21:52 +00:00
|
|
|
|
|
|
|
# otherwise OS X's xmllint bails out
|
|
|
|
inreplace 'Makefile', '-f manpage', '-f manpage -L'
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2013-05-07 00:06:49 +00:00
|
|
|
|
|
|
|
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
|