diff options
| author | Richard Osborn | 2011-08-28 21:02:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-08-28 21:26:23 -0500 |
| commit | ebae3a781341b444c6522cae895b17beb0f36590 (patch) | |
| tree | fd6773aed4707879c651633144bb35c8641dbc2c /Library/Formula | |
| parent | 7b47cb41134d5d1436ae4e0374152f2ef8d6e09b (diff) | |
| download | homebrew-ebae3a781341b444c6522cae895b17beb0f36590.tar.bz2 | |
cdecl: fix build on Lion
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cdecl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/cdecl.rb b/Library/Formula/cdecl.rb index 69b7448b0..687415141 100644 --- a/Library/Formula/cdecl.rb +++ b/Library/Formula/cdecl.rb @@ -6,6 +6,9 @@ class Cdecl < Formula md5 'c1927e146975b1c7524cbaf07a7c10f8' def install + # Fix namespace clash with Lion's getline + inreplace "cdecl.c", "getline", "cdecl_getline" + inreplace "Makefile" do |s| s.change_make_var! "CC", ENV.cc s.change_make_var! "CFLAGS", "#{ENV.cflags} -DBSD -DUSE_READLINE" @@ -13,6 +16,7 @@ class Cdecl < Formula s.change_make_var! "BINDIR", bin s.change_make_var! "MANDIR", man1 end + system "make" bin.mkdir man1.mkpath |
