aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cdecl.rb
blob: 19152a0cd24086f75238ad444570849bee8a8dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Cdecl <Formula
  url 'http://cdecl.org/files/cdecl-blocks-2.5.tar.gz'
  homepage 'http://cdecl.org/'
  md5 'c1927e146975b1c7524cbaf07a7c10f8'

  def install
    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
    man1.mkpath
    system "make install"
  end
end