diff options
| author | Dominyk Tiller | 2015-01-13 14:30:24 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-13 15:05:40 +0000 |
| commit | 129db3e320f446979676316a2242617b75bc6528 (patch) | |
| tree | 11541ec314daf539c1f041eb370114fc01bffdda /Library/Formula | |
| parent | d1c87e10ab282719b0d789aba7884668b87f70a2 (diff) | |
| download | homebrew-129db3e320f446979676316a2242617b75bc6528.tar.bz2 | |
autogen: style fix-up and added test
There’s not a huge amount we can do with autogen in the way of testing
without writing and generating files for it to compile, but I’ve added
a simple test, and fixed the style nits.
Closes #35822.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/autogen.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/autogen.rb b/Library/Formula/autogen.rb index 2138047c2..10b7bbc3a 100644 --- a/Library/Formula/autogen.rb +++ b/Library/Formula/autogen.rb @@ -1,10 +1,8 @@ -require 'formula' - class Autogen < Formula - homepage 'http://autogen.sourceforge.net' - url 'http://ftpmirror.gnu.org/autogen/rel5.18.4/autogen-5.18.4.tar.xz' - mirror 'http://ftp.gnu.org/gnu/autogen/rel5.18.4/autogen-5.18.4.tar.xz' - sha1 '3d5aa8d99742e92098bb438c684bee5e978a8dd7' + homepage "http://autogen.sourceforge.net" + url "http://ftpmirror.gnu.org/autogen/rel5.18.4/autogen-5.18.4.tar.xz" + mirror "https://ftp.gnu.org/gnu/autogen/rel5.18.4/autogen-5.18.4.tar.xz" + sha1 "3d5aa8d99742e92098bb438c684bee5e978a8dd7" bottle do sha1 "f5f1c973b425a97b41899d7b57bea1c263c58bb1" => :mavericks @@ -12,16 +10,21 @@ class Autogen < Formula sha1 "c6ba1e2ac9781b558f4f40389d40ba6f89451c01" => :lion end - depends_on 'pkg-config' => :build - depends_on 'guile' + depends_on "pkg-config" => :build + depends_on "guile" def install system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--disable-silent-rules", "--prefix=#{prefix}" # make and install must be separate steps for this formula system "make" - system "make install" + system "make", "install" + end + + test do + system bin/"autogen", "-v" end end |
