diff options
| author | Diego de Estrada | 2011-03-08 23:32:58 -0300 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-19 10:10:08 -0700 |
| commit | 6f88f1a1b278e425a95d4262513e1e60db647ffb (patch) | |
| tree | 1f831cd08c483b181ad046266111adb688df3ee4 | |
| parent | 8e4a6c49c8dccfa0673742cc9cf1a01d5fe2a631 (diff) | |
| download | homebrew-6f88f1a1b278e425a95d4262513e1e60db647ffb.tar.bz2 | |
GNU Indent 2.2.10
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/gnu-indent.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/gnu-indent.rb b/Library/Formula/gnu-indent.rb new file mode 100644 index 000000000..20c003982 --- /dev/null +++ b/Library/Formula/gnu-indent.rb @@ -0,0 +1,26 @@ +require 'formula' + +class GnuIndent <Formula + url 'http://mirrors.kernel.org/gnu/indent/indent-2.2.10.tar.gz' + homepage 'http://www.gnu.org/software/indent/' + md5 'be35ea62705733859fbf8caf816d8959' + + depends_on "gettext" + + def options + [['--default-names', "Do not prepend 'g' to the binary (will override system indent)"]] + end + + def install + args = ["--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--mandir=#{man}"] + + args << "--program-prefix=g" unless ARGV.include? '--default-names' + + system "./configure", *args + system "touch man/malloc.h" + system "make" + system "make install" + end +end |
