homebrew-core/Formula/cdecl.rb
Jack Nagel f0f4f4188c cdecl: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-12 22:22:38 -06:00

22 lines
563 B
Ruby

require 'formula'
class Cdecl < Formula
homepage 'http://cdecl.org/'
url 'http://cdecl.org/files/cdecl-blocks-2.5.tar.gz'
md5 'c1927e146975b1c7524cbaf07a7c10f8'
def install
# Fix namespace clash with Lion's getline
inreplace "cdecl.c", "getline", "cdecl_getline"
bin.mkpath
man1.mkpath
system "make", "CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags} -DBSD -DUSE_READLINE",
"LIBS=-lreadline",
"BINDIR=#{bin}",
"MANDIR=#{man1}",
"install"
end
end