diff options
| author | Jack Nagel | 2012-02-12 22:13:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-12 22:22:38 -0600 |
| commit | 0cef455f5c3cbee66c76f10c38290cbc833d1be2 (patch) | |
| tree | ea3366b1f273700e36bb65c3d6bdfbf8f2f74aa1 /Library | |
| parent | ffb2574b72f41a0e0e27cbf80a750521a8411c0a (diff) | |
| download | homebrew-0cef455f5c3cbee66c76f10c38290cbc833d1be2.tar.bz2 | |
cdecl: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cdecl.rb | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Library/Formula/cdecl.rb b/Library/Formula/cdecl.rb index 687415141..4889c123b 100644 --- a/Library/Formula/cdecl.rb +++ b/Library/Formula/cdecl.rb @@ -1,25 +1,22 @@ require 'formula' class Cdecl < Formula - url 'http://cdecl.org/files/cdecl-blocks-2.5.tar.gz' 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" - inreplace "Makefile" do |s| - s.change_make_var! "CC", ENV.cc - s.change_make_var! "CFLAGS", "#{ENV.cflags} -DBSD -DUSE_READLINE" - s.change_make_var! "LIBS", "-lreadline" - s.change_make_var! "BINDIR", bin - s.change_make_var! "MANDIR", man1 - end - - system "make" - bin.mkdir + bin.mkpath man1.mkpath - system "make install" + + system "make", "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags} -DBSD -DUSE_READLINE", + "LIBS=-lreadline", + "BINDIR=#{bin}", + "MANDIR=#{man1}", + "install" end end |
