cdecl: fix build on Lion
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
311882f26a
commit
0d567da312
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue