forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
cc6b6a3
commit 11a6743
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |