homebrew-core/Formula/asciidoc.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

37 lines
981 B
Ruby

require 'formula'
class Asciidoc < Formula
homepage 'http://www.methods.co.nz/asciidoc'
url 'https://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.9/asciidoc-8.6.9.tar.gz'
sha1 '82e574dd061640561fa0560644bc74df71fb7305'
head do
url 'https://code.google.com/p/asciidoc/', :using => :hg
depends_on :autoconf
end
depends_on 'docbook'
def install
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
end