aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2014-12-29 15:09:57 +0800
committerMike McQuaid2014-12-29 07:48:51 +0000
commit737fba39e878ad75fa0ff48c94e0847236c072b4 (patch)
tree4f419efdd6816a453d10140e5aba25def639f400 /Library/Formula
parentc34a3a15e28551bd22d38befbb0d543e1524e841 (diff)
downloadhomebrew-737fba39e878ad75fa0ff48c94e0847236c072b4.tar.bz2
asciidoc: modernize
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/asciidoc.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/asciidoc.rb b/Library/Formula/asciidoc.rb
index b4409a96a..36720fe66 100644
--- a/Library/Formula/asciidoc.rb
+++ b/Library/Formula/asciidoc.rb
@@ -1,9 +1,7 @@
-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'
+ 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"
bottle do
cellar :any
@@ -14,19 +12,19 @@ class Asciidoc < Formula
end
head do
- url 'https://code.google.com/p/asciidoc/', :using => :hg
+ url "https://code.google.com/p/asciidoc/", :using => :hg
depends_on "autoconf" => :build
end
- depends_on 'docbook'
+ 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"
+ inreplace "Makefile", "-f manpage", "-f manpage -L"
+ system "make", "install"
end
def caveats; <<-EOS.undent