GNU Indent 2.2.10

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Diego de Estrada 2011-03-08 23:32:58 -03:00 committed by Adam Vandenberg
parent 0433675adf
commit 765c2a388e
1 changed files with 26 additions and 0 deletions

26
Formula/gnu-indent.rb Normal file
View File

@ -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