Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1ea3635545
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (20 sloc) 0.669 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
require 'formula'

class GnuIndent < Formula
  url 'http://ftpmirror.gnu.org/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
Something went wrong with that request. Please try again.