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'
|
2012-03-19 15:52:24 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.7/asciidoc-8.6.7.tar.gz'
|
2012-07-07 18:08:22 +00:00
|
|
|
sha1 '5fc55496b2a23e2cc1dcc1f6b1f75dd06fcdefa1'
|
|
|
|
|
2011-08-16 09:43:20 +00:00
|
|
|
head 'https://code.google.com/p/asciidoc/', :using => :hg
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2012-08-09 23:21:05 +00:00
|
|
|
depends_on :autoconf if build.head?
|
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
|
2009-11-21 06:38:52 +00:00
|
|
|
end
|