aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnu-indent.rb
diff options
context:
space:
mode:
authorJack Nagel2012-09-06 17:49:56 -0500
committerJack Nagel2012-09-06 17:49:56 -0500
commit88ea00556cf99c084c03b0eb5186b4fd85e9bc54 (patch)
treed1536ad85947ff193e5d24c45166592842345812 /Library/Formula/gnu-indent.rb
parent6f9ef11e8097d26cf9c794e5e453ecabe35c452b (diff)
downloadhomebrew-88ea00556cf99c084c03b0eb5186b4fd85e9bc54.tar.bz2
gnu-indent: clean up build
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/gnu-indent.rb')
-rw-r--r--Library/Formula/gnu-indent.rb40
1 files changed, 35 insertions, 5 deletions
diff --git a/Library/Formula/gnu-indent.rb b/Library/Formula/gnu-indent.rb
index 33bc82e86..259bcb3b6 100644
--- a/Library/Formula/gnu-indent.rb
+++ b/Library/Formula/gnu-indent.rb
@@ -10,16 +10,46 @@ class GnuIndent < Formula
option 'default-names', "Do not prepend 'g' to the binary"
+ # Fix broken include and missing build dependency
+ def patches; DATA end
+
def install
- args = ["--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--mandir=#{man}"]
+ args = %W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --mandir=#{man}
+ ]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
- system "touch man/malloc.h"
- system "make"
system "make install"
end
end
+
+__END__
+diff --git a/man/Makefile.in b/man/Makefile.in
+index 76839bc..8a5fc6e 100644
+--- a/man/Makefile.in
++++ b/man/Makefile.in
+@@ -507,7 +507,7 @@ uninstall-man: uninstall-man1
+ uninstall-man uninstall-man1
+
+
+-@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man.c Makefile.am
++@PACKAGE@.1: ${srcdir}/@PACKAGE@.1.in ${srcdir}/../doc/@PACKAGE@.texinfo texinfo2man.c Makefile.am texinfo2man
+ ./texinfo2man ${srcdir}/@PACKAGE@.1.in ${srcdir}/../doc/@PACKAGE@.texinfo > $@
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+diff --git a/man/texinfo2man.c b/man/texinfo2man.c
+index e7d82e1..c95266f 100644
+--- a/man/texinfo2man.c
++++ b/man/texinfo2man.c
+@@ -1,6 +1,5 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ #include <string.h>
+ #include <ctype.h>
+